mirror of https://github.com/ThmmyNoLife/mTHMMY
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.7 KiB
72 lines
2.7 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
android:orientation="vertical"
|
|
card_view:cardBackgroundColor="@color/card_background"
|
|
card_view:cardCornerRadius="5dp"
|
|
card_view:cardElevation="2dp"
|
|
card_view:cardPreventCornerOverlap="false"
|
|
card_view:cardUseCompatPadding="true">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/author_textview"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:paddingTop="9dp"
|
|
android:textColor="@color/accent"
|
|
android:textStyle="bold"
|
|
tools:text="author" />
|
|
|
|
<TextView
|
|
android:id="@+id/date_time_textview"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:textColor="@color/primary_text"
|
|
android:textSize="11sp"
|
|
tools:text="date & time" />
|
|
|
|
<View
|
|
android:id="@+id/header_body_divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginBottom="9dp"
|
|
android:background="@color/divider" />
|
|
|
|
<WebView
|
|
android:id="@+id/shout_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:background="@color/card_background"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:scrollbars="none"
|
|
android:text="@string/post"
|
|
tools:ignore="WebViewLayout" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="9dp" />
|
|
</LinearLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|