mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -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"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/container"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
@ -10,12 +11,20 @@
|
||||
android:id="@+id/message_list_container"
|
||||
android:layout_width="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
|
||||
android:id="@+id/message_view_container"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="1" />
|
||||
android:layout_weight="3" />
|
||||
|
||||
</LinearLayout>
|
@ -235,6 +235,7 @@ public class MessageList extends K9FragmentActivity implements MessageListFragme
|
||||
break;
|
||||
}
|
||||
case SPLIT_VIEW: {
|
||||
findViewById(R.id.message_list_divider).setVisibility(View.VISIBLE);
|
||||
if (mMessageViewFragment == null) {
|
||||
showMessageViewPlaceHolder();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user