Skip to content

Instantly share code, notes, and snippets.

@dilanasslan
Created June 23, 2020 15:45
Show Gist options
  • Save dilanasslan/0788394c0b3860c89ae248b289bf6246 to your computer and use it in GitHub Desktop.
Save dilanasslan/0788394c0b3860c89ae248b289bf6246 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/cardView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="5dp"
app:cardCornerRadius="4dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/film_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:text="Film Name"
android:textSize="20dp"
android:textColor="#212121"
android:textStyle="bold" />
<TextView
android:id="@+id/film_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:text="Film Description"
android:textSize="15dp"
android:textColor="#9e9e9e"
android:textStyle="normal" />
<Button
android:id="@+id/film_detail_button"
android:layout_width="match_parent"
android:layout_height="25dp"
android:text="Click to detail >"
android:textColor="#9e9e9e"
android:textAlignment="center"
android:background="#f5f5f5"
android:textAllCaps="false"
app:strokeColor="#e0e0e0"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment