Skip to content

Instantly share code, notes, and snippets.

@ashishkudale
Last active May 13, 2018 10:29
Show Gist options
  • Save ashishkudale/8015fd0ba39d57e0a49b8a8b8bc22289 to your computer and use it in GitHub Desktop.
Save ashishkudale/8015fd0ba39d57e0a49b8a8b8bc22289 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="wrap_content"
android:layout_height="wrap_content">
<android.support.v7.widget.CardView
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/card_view"
android:layout_margin="5dp"
android:layout_gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
card_view:cardCornerRadius="4dp">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="2dp">
<ImageView
android:layout_width="100dp"
android:layout_height="80dp"
android:id="@+id/ivChapter"
android:layout_margin="10dp" />
<TextView
android:id="@+id/tvChapterName"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="5dp"
android:ellipsize="end"
android:singleLine="true" />
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment