1
0
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:
cketti 2013-01-25 12:19:09 +01:00
parent c5b1e1d0e5
commit 0a14d584e9
2 changed files with 12 additions and 2 deletions

View File

@ -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>

View File

@ -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();
} }