Skip to content

Instantly share code, notes, and snippets.

@mochadwi
Created November 19, 2016 01:09
Show Gist options
  • Save mochadwi/5afad7feec42edaa134b3a043468a383 to your computer and use it in GitHub Desktop.
Save mochadwi/5afad7feec42edaa134b3a043468a383 to your computer and use it in GitHub Desktop.
Codelabs Workshop #19 - Intro to MVC and RecyclerView
<?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"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:elevation="@dimen/cardview_default_elevation"
app:cardCornerRadius="@dimen/cardview_default_radius">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="8dp">
<TextView
android:id="@+id/txt_judul"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Ini Judul"
android:textSize="24sp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp">
<TextView
android:id="@+id/txt_penerbit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginRight="5dp"
android:text="Penerbit" />
<TextView
android:id="@+id/txt_harga"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="Harga" />
</RelativeLayout>
</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