mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-21 05:01:54 -05:00
refactor apart the messageview layouts
This commit is contained in:
parent
7ecfb96dea
commit
3d9391cf26
@ -21,6 +21,7 @@
|
|||||||
android:layout_height="0dip"
|
android:layout_height="0dip"
|
||||||
android:layout_weight="1">
|
android:layout_weight="1">
|
||||||
<include layout="@layout/message_view_header" />
|
<include layout="@layout/message_view_header" />
|
||||||
|
<include layout="@layout/message_view_body" />
|
||||||
<View
|
<View
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="0dip"
|
android:layout_height="0dip"
|
||||||
|
29
res/layout/message_view_body.xml
Normal file
29
res/layout/message_view_body.xml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:id="@+id/body_container"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
>
|
||||||
|
<!-- Content area -->
|
||||||
|
<com.fsck.k9.view.MessageWebView
|
||||||
|
android:id="@+id/message_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="fill_parent" />
|
||||||
|
<com.fsck.k9.view.AccessibleWebView
|
||||||
|
android:id="@+id/accessible_message_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="fill_parent" />
|
||||||
|
<!-- Attachments area -->
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/attachments"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:padding="4dip" />
|
||||||
|
<Button android:id="@+id/download_remainder"
|
||||||
|
android:text="@string/message_view_download_remainder"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:layout_width="fill_parent" />
|
||||||
|
</LinearLayout>
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<merge
|
||||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
<!-- Header area -->
|
>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/header_container"
|
android:id="@+id/header_container"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
@ -248,25 +248,4 @@
|
|||||||
android:layout_weight="1"/>
|
android:layout_weight="1"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<!-- Content area -->
|
</merge>
|
||||||
<com.fsck.k9.view.MessageWebView
|
|
||||||
android:id="@+id/message_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="fill_parent" />
|
|
||||||
<com.fsck.k9.view.AccessibleWebView
|
|
||||||
android:id="@+id/accessible_message_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="fill_parent" />
|
|
||||||
<!-- Attachments area -->
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/attachments"
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:padding="4dip" />
|
|
||||||
<Button android:id="@+id/download_remainder"
|
|
||||||
android:text="@string/message_view_download_remainder"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:visibility="gone"
|
|
||||||
android:layout_width="fill_parent" />
|
|
||||||
</merge>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user