<android.support.v4.widget.SlidingPaneLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/slidingpanelayout" android:layout_width="match_parent" android:layout_height="match_parent" > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="345dp" android:layout_height="match_parent" android:background="@color/primarybackground" android:orientation="vertical" > <ListView android:id="@+id/list" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@color/primarybackground" android:divider="@color/divider" android:dividerHeight="1dp" /> </LinearLayout> <LinearLayout android:id="@+id/selected_conversation" android:layout_width="fill_parent" android:layout_height="match_parent" android:layout_weight="1" android:orientation="vertical" > </LinearLayout> </android.support.v4.widget.SlidingPaneLayout>