Created
April 26, 2019 00:32
-
-
Save graffiti75/af627d940584d1543aea3817a4739dc7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="4dp" | |
android:layout_marginTop="4dp" | |
android:layout_marginRight="4dp" | |
android:layout_marginBottom="4dp" | |
android:clickable="true" | |
android:focusable="true" | |
android:foreground="?selectableItemBackground"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<!--suppress AndroidLintContentDescription --> | |
<com.example.xyzreader.ui.DynamicHeightNetworkImageView | |
android:id="@+id/thumbnail" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:background="@color/photo_placeholder" | |
android:scaleType="centerCrop" /> | |
<TextView | |
android:id="@+id/article_title" | |
style="@style/TextAppearance.AppCompat.Subhead" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:ellipsize="end" | |
android:maxLines="4" | |
android:paddingLeft="16dp" | |
android:paddingTop="16dp" | |
android:paddingRight="16dp" | |
android:paddingBottom="4dp" | |
android:textColor="@color/text_color" /> | |
<TextView | |
android:id="@+id/article_subtitle" | |
style="@style/TextAppearance.AppCompat.Body1" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:ellipsize="end" | |
android:maxLines="2" | |
android:paddingLeft="16dp" | |
android:paddingRight="16dp" | |
android:paddingBottom="16dp" | |
android:textColor="#6000" /> | |
</LinearLayout> | |
</android.support.v7.widget.CardView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment