Add image and summary to article card
This commit is contained in:
parent
75a3543a35
commit
f40fea9f93
2 changed files with 25 additions and 4 deletions
|
@ -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>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<resources>
|
||||
<string name="app_name">Causa Arcana</string>
|
||||
<string name="article_cover">Article cover</string>
|
||||
</resources>
|
||||
|
|
Reference in a new issue