mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 09:08:49 -05:00
Add 1px divider between message list and message view in split view
This commit is contained in:
parent
c5b1e1d0e5
commit
0a14d584e9
@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/container"
|
android:id="@+id/container"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
@ -10,12 +11,20 @@
|
|||||||
android:id="@+id/message_list_container"
|
android:id="@+id/message_list_container"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:layout_weight="2" />
|
android:layout_weight="5" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/message_list_divider"
|
||||||
|
android:layout_width="1px"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:background="#ffcccccc"
|
||||||
|
android:visibility="gone"
|
||||||
|
tools:ignore="PxUsage" />
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/message_view_container"
|
android:id="@+id/message_view_container"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:layout_weight="1" />
|
android:layout_weight="3" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -235,6 +235,7 @@ public class MessageList extends K9FragmentActivity implements MessageListFragme
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SPLIT_VIEW: {
|
case SPLIT_VIEW: {
|
||||||
|
findViewById(R.id.message_list_divider).setVisibility(View.VISIBLE);
|
||||||
if (mMessageViewFragment == null) {
|
if (mMessageViewFragment == null) {
|
||||||
showMessageViewPlaceHolder();
|
showMessageViewPlaceHolder();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user