1
0
Fork 0

Add image and summary to article card

This commit is contained in:
Alex Kotov 2021-08-15 08:23:11 +05:00
parent 75a3543a35
commit f40fea9f93
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 25 additions and 4 deletions

View file

@ -1,14 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:orientation="vertical"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/rvitem_article_card__title_text_view"
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="Hello, World!"/>
android:contentDescription="@string/article_cover"
app:srcCompat="@drawable/ic_launcher_foreground"/>
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/rvitem_article_card__title_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="Hello, World!"/>
<TextView
android:id="@+id/rvitem_article_card__summary_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a massa nulla."/>
</LinearLayout>
</LinearLayout>

View file

@ -1,3 +1,4 @@
<resources>
<string name="app_name">Causa Arcana</string>
<string name="article_cover">Article cover</string>
</resources>