wulkanowy-mod/app/src/main/res/layout/fragment_message_preview.xml

91 lines
3.5 KiB
XML
Raw Normal View History

2018-12-06 11:35:02 -06:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2019-03-17 15:02:41 -05:00
android:id="@+id/messagePreviewContainer"
2018-12-06 11:35:02 -06:00
android:layout_width="match_parent"
android:layout_height="match_parent">
2019-03-17 15:02:41 -05:00
<androidx.core.widget.NestedScrollView
2018-12-06 11:35:02 -06:00
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
2019-03-31 15:01:04 -05:00
android:id="@+id/messagePreviewContentContainer"
2018-12-06 11:35:02 -06:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
2019-03-17 15:02:41 -05:00
android:id="@+id/messagePreviewSubject"
2018-12-06 11:35:02 -06:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:lineSpacingMultiplier="1.2"
android:textSize="22sp"
tools:text="@tools:sample/lorem" />
<TextView
2019-03-17 15:02:41 -05:00
android:id="@+id/messagePreviewAuthor"
2018-12-06 11:35:02 -06:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:textColor="?android:attr/textColorSecondary"
android:textSize="15sp"
tools:text="@tools:sample/full_names" />
<TextView
2019-03-17 15:02:41 -05:00
android:id="@+id/messagePreviewDate"
2018-12-06 11:35:02 -06:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:textColor="?android:attr/textColorSecondary"
android:textSize="15sp"
tools:text="@tools:sample/date/ddmmyy" />
<TextView
2019-03-17 15:02:41 -05:00
android:id="@+id/messagePreviewContent"
2018-12-06 11:35:02 -06:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autoLink="web"
android:lineSpacingMultiplier="1.2"
android:textIsSelectable="true"
tools:text="@tools:sample/lorem" />
</LinearLayout>
2019-03-17 15:02:41 -05:00
</androidx.core.widget.NestedScrollView>
2018-12-06 11:35:02 -06:00
<LinearLayout
2019-03-17 15:02:41 -05:00
android:id="@+id/messagePreviewError"
2018-12-06 11:35:02 -06:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:padding="10dp"
android:visibility="invisible">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="100dp"
android:minHeight="100dp"
app:srcCompat="@drawable/ic_more_messages_24dp"
app:tint="?android:attr/textColorPrimary"
tools:ignore="contentDescription" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center"
android:text="@string/message_preview_error"
android:textSize="20sp" />
</LinearLayout>
<ProgressBar
2019-03-17 15:02:41 -05:00
android:id="@+id/messagePreviewProgress"
2018-12-06 11:35:02 -06:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:indeterminate="true" />
</FrameLayout>