<?
xml version=
"1.0" encoding=
"utf-8"?>
<!--
We explicitly set the background color in case this layout is inflated using a theme different from the app theme (via
the 'message view theme' setting).
-->
<com.fsck.k9.ui.messageview.MessageTopView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:
id=
"@+id/message_view"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:layout_weight=
"1"
android:background=
"?android:attr/windowBackground"
tools:context=
".messageview.MessageViewFragment"
>
<com.fsck.k9.view.NonLockingScrollView
android:
id=
"@+id/message_scrollview"
android:layout_width=
"fill_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
>
<LinearLayout
android:orientation=
"vertical"
android:layout_width=
"fill_parent"
android:layout_height=
"fill_parent"
>
<!-- Header area -->
<
include layout=
"@layout/message_view_header" />
<FrameLayout
android:
id=
"@+id/extra_header_container"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingVertical=
"4dp"
android:visibility=
"gone"
tools:visibility=
"visible"
>
<com.google.android.material.button.MaterialButton
android:
id=
"@+id/show_pictures"
style=
"?attr/materialButtonOutlinedStyle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:text=
"@string/message_view_show_remote_images_action"
app:icon=
"@drawable/ic_image"
/>
</FrameLayout>
<Space
android:
id=
"@+id/line_of_death"
android:layout_width=
"match_parent"
android:layout_height=
"8dp"
/>
<com.fsck.k9.view.ToolableViewAnimator
android:
id=
"@+id/message_layout_animator"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:inAnimation=
"@anim/fade_in"
android:outAnimation=
"@anim/fade_out"
app:previewInitialChild=
"1"
>
<View
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_margin=
"8dp"
>
<ProgressBar
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingTop=
"30dp"
android:paddingBottom=
"30dp"
android:indeterminate=
"false"
android:
id=
"@+id/message_progress"
android:max=
"1000"
tools:progress=
"300"
style=
"@android:style/Widget.Holo.ProgressBar.Horizontal"
/>
<com.google.android.material.textview.MaterialTextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/message_progress"
android:layout_centerInParent=
"true"
android:
id=
"@+id/message_progress_text"
android:text=
"@string/message_progress_text"
/>
</RelativeLayout>
<FrameLayout
android:orientation=
"vertical"
android:
id=
"@+id/message_container"
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
/>
</com.fsck.k9.view.ToolableViewAnimator>
</LinearLayout>
</com.fsck.k9.view.NonLockingScrollView>
<com.google.android.material.button.MaterialButton
android:
id=
"@+id/download_remainder"
style=
"?attr/materialButtonOutlinedStyle"
android:layout_marginHorizontal=
"16dp"
android:text=
"@string/message_view_download_remainder"
android:layout_height=
"wrap_content"
android:visibility=
"gone"
android:layout_width=
"fill_parent"
tools:visibility=
"visible"
/>
<androidx.compose.ui.platform.ComposeView
android:
id=
"@+id/bottom_sheet_compose_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
</com.fsck.k9.ui.messageview.MessageTopView>