Skip to content

Commit

Permalink
Some more sliding pane layout fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Ricci <[email protected]>
  • Loading branch information
daniele-athome committed Sep 7, 2015
1 parent 4fcaa2d commit 435a6fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/org/kontalk/ui/ConversationsActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.conversation_screen);
setContentView(R.layout.conversations_screen);

mFragment = (ConversationListFragment) getSupportFragmentManager()
.findFragmentById(R.id.fragment_conversation_list);
Expand Down Expand Up @@ -146,7 +146,7 @@ public void onPanelSlide(View panel, float slideOffset) {

mSlidingPanel = (SlidingPaneLayout) findViewById(R.id.slider_pane);
mSlidingPanel.setPanelSlideListener(slidingListener);
mSlidingPanel.setParallaxDistance(200);
mSlidingPanel.setParallaxDistance(getResources().getDimensionPixelSize(R.dimen.slidepane_parallax));

// initial menu
if (!mSlidingPanel.isSlideable()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<android.support.v4.widget.SlidingPaneLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent"
<android.support.v4.widget.SlidingPaneLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/slider_pane">

<include layout="@layout/contacts_list_screen"/>

<include layout="@layout/conversation_list_screen"/>

</android.support.v4.widget.SlidingPaneLayout>
</android.support.v4.widget.SlidingPaneLayout>
2 changes: 2 additions & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@
<dimen name="emoji_textview_size">22sp</dimen>
<dimen name="emoji_edittext_size">22sp</dimen>
<dimen name="emoji_listitem_size">18sp</dimen>

<dimen name="slidepane_parallax">200dp</dimen>
</resources>

0 comments on commit 435a6fa

Please sign in to comment.