styled list article
This commit is contained in:
@@ -2,10 +2,11 @@
|
|||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_marginBottom="4dp"
|
||||||
android:layout_marginLeft="4dp"
|
android:layout_marginLeft="4dp"
|
||||||
android:layout_marginRight="4dp"
|
android:layout_marginRight="4dp"
|
||||||
android:layout_marginTop="4dp"
|
android:layout_marginTop="4dp"
|
||||||
android:layout_marginBottom="4dp"
|
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:foreground="?selectableItemBackground">
|
android:foreground="?selectableItemBackground">
|
||||||
@@ -18,35 +19,36 @@
|
|||||||
<!--suppress AndroidLintContentDescription -->
|
<!--suppress AndroidLintContentDescription -->
|
||||||
<com.example.xyzreader.ui.DynamicHeightNetworkImageView
|
<com.example.xyzreader.ui.DynamicHeightNetworkImageView
|
||||||
android:id="@+id/thumbnail"
|
android:id="@+id/thumbnail"
|
||||||
android:layout_width="100dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="100dp"
|
android:layout_height="100dp"
|
||||||
android:background="@color/photo_placeholder" />
|
android:background="@color/photo_placeholder" />
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:id="@+id/article_title"
|
android:padding="16dp"
|
||||||
style="@style/TextAppearance.AppCompat.Subhead"
|
android:orientation="vertical"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:paddingLeft="16dp"
|
|
||||||
android:paddingTop="16dp"
|
|
||||||
android:paddingRight="16dp"
|
|
||||||
android:paddingBottom="4dp"
|
|
||||||
android:textColor="@color/ltgray"
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:maxLines="4" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/article_subtitle"
|
tools:text="Some title that might span multiple lines stands here"
|
||||||
style="@style/TextAppearance.AppCompat.Body1"
|
android:id="@+id/article_title"
|
||||||
android:layout_width="match_parent"
|
style="@style/TextAppearance.AppCompat.Title"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:paddingLeft="16dp"
|
android:layout_height="wrap_content"
|
||||||
android:paddingRight="16dp"
|
android:ellipsize="end"
|
||||||
android:paddingBottom="16dp"
|
android:maxLines="4"
|
||||||
android:textColor="#6000"
|
android:layout_marginBottom="8dp" />
|
||||||
android:maxLines="1"
|
|
||||||
android:singleLine="true"
|
<TextView
|
||||||
android:ellipsize="end" />
|
tools:text="Some date and author that is single lined"
|
||||||
|
android:id="@+id/article_subtitle"
|
||||||
|
style="@style/TextAppearance.AppCompat.Caption"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:singleLine="true" />
|
||||||
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</android.support.v7.widget.CardView>
|
</android.support.v7.widget.CardView>
|
||||||
|
|||||||
Reference in New Issue
Block a user