|
|
@ -1,14 +1,13 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<androidx.cardview.widget.CardView |
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
|
<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:orientation="vertical" |
|
|
|
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" |
|
|
@ -19,34 +18,36 @@ |
|
|
|
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:textColor="@color/accent" |
|
|
|
android:textStyle="bold" |
|
|
|
android:ellipsize="end" |
|
|
|
android:maxLines="1" |
|
|
|
tools:text="author"/> |
|
|
|
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:textSize="11sp" |
|
|
|
android:textColor="@color/primary_text" |
|
|
|
tools:text="date & time"/> |
|
|
|
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_marginBottom="9dp" |
|
|
|
android:layout_marginLeft="16dp" |
|
|
|
android:layout_marginRight="16dp" |
|
|
|
android:layout_marginTop="5dp" |
|
|
|
android:layout_marginRight="16dp" |
|
|
|
android:layout_marginBottom="9dp" |
|
|
|
android:background="@color/divider" /> |
|
|
|
|
|
|
|
<WebView |
|
|
@ -59,8 +60,13 @@ |
|
|
|
android:background="@color/card_background" |
|
|
|
android:clickable="true" |
|
|
|
android:focusable="true" |
|
|
|
android:scrollbars="none" |
|
|
|
android:text="@string/post" |
|
|
|
tools:ignore="WebViewLayout"/> |
|
|
|
tools:ignore="WebViewLayout" /> |
|
|
|
|
|
|
|
<View |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="9dp" /> |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView> |