|
@ -1,14 +1,13 @@ |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<androidx.cardview.widget.CardView |
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
|
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto" |
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto" |
|
|
xmlns:tools="http://schemas.android.com/tools" |
|
|
xmlns:tools="http://schemas.android.com/tools" |
|
|
android:orientation="vertical" |
|
|
|
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_marginStart="8dp" |
|
|
android:layout_marginStart="8dp" |
|
|
android:layout_marginEnd="8dp" |
|
|
android:layout_marginEnd="8dp" |
|
|
android:foreground="?android:attr/selectableItemBackground" |
|
|
android:foreground="?android:attr/selectableItemBackground" |
|
|
|
|
|
android:orientation="vertical" |
|
|
card_view:cardBackgroundColor="@color/card_background" |
|
|
card_view:cardBackgroundColor="@color/card_background" |
|
|
card_view:cardCornerRadius="5dp" |
|
|
card_view:cardCornerRadius="5dp" |
|
|
card_view:cardElevation="2dp" |
|
|
card_view:cardElevation="2dp" |
|
@ -19,15 +18,17 @@ |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:orientation="vertical"> |
|
|
android:orientation="vertical"> |
|
|
|
|
|
|
|
|
<TextView |
|
|
<TextView |
|
|
android:id="@+id/author_textview" |
|
|
android:id="@+id/author_textview" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_marginStart="16dp" |
|
|
android:layout_marginStart="16dp" |
|
|
android:textColor="@color/accent" |
|
|
|
|
|
android:textStyle="bold" |
|
|
|
|
|
android:ellipsize="end" |
|
|
android:ellipsize="end" |
|
|
android:maxLines="1" |
|
|
android:maxLines="1" |
|
|
|
|
|
android:paddingTop="9dp" |
|
|
|
|
|
android:textColor="@color/accent" |
|
|
|
|
|
android:textStyle="bold" |
|
|
tools:text="author" /> |
|
|
tools:text="author" /> |
|
|
|
|
|
|
|
|
<TextView |
|
|
<TextView |
|
@ -35,18 +36,18 @@ |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_marginStart="16dp" |
|
|
android:layout_marginStart="16dp" |
|
|
android:textSize="11sp" |
|
|
|
|
|
android:textColor="@color/primary_text" |
|
|
android:textColor="@color/primary_text" |
|
|
|
|
|
android:textSize="11sp" |
|
|
tools:text="date & time" /> |
|
|
tools:text="date & time" /> |
|
|
|
|
|
|
|
|
<View |
|
|
<View |
|
|
android:id="@+id/header_body_divider" |
|
|
android:id="@+id/header_body_divider" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="1dp" |
|
|
android:layout_height="1dp" |
|
|
android:layout_marginBottom="9dp" |
|
|
|
|
|
android:layout_marginLeft="16dp" |
|
|
android:layout_marginLeft="16dp" |
|
|
android:layout_marginRight="16dp" |
|
|
|
|
|
android:layout_marginTop="5dp" |
|
|
android:layout_marginTop="5dp" |
|
|
|
|
|
android:layout_marginRight="16dp" |
|
|
|
|
|
android:layout_marginBottom="9dp" |
|
|
android:background="@color/divider" /> |
|
|
android:background="@color/divider" /> |
|
|
|
|
|
|
|
|
<WebView |
|
|
<WebView |
|
@ -59,8 +60,13 @@ |
|
|
android:background="@color/card_background" |
|
|
android:background="@color/card_background" |
|
|
android:clickable="true" |
|
|
android:clickable="true" |
|
|
android:focusable="true" |
|
|
android:focusable="true" |
|
|
|
|
|
android:scrollbars="none" |
|
|
android:text="@string/post" |
|
|
android:text="@string/post" |
|
|
tools:ignore="WebViewLayout" /> |
|
|
tools:ignore="WebViewLayout" /> |
|
|
|
|
|
|
|
|
|
|
|
<View |
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
android:layout_height="9dp" /> |
|
|
</LinearLayout> |
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView> |
|
|
</androidx.cardview.widget.CardView> |