How to code fast

format_list_category.xml
<?xml version=”1.0″ encoding=”utf-8″?>
<android.support.v7.widget.CardView xmlns:android=”http://schemas.android.com/apk/res/android&#8221;
android:layout_width=”match_parent”
android:layout_height=”150dp”
android:layout_margin=”10dp”
xmlns:tools=”http://schemas.android.com/tools&#8221;
>

<LinearLayout
android:id=”@+id/background_category”
android:layout_width=”match_parent”
android:layout_height=”match_parent”
android:padding=”16dp”
>

<LinearLayout
android:layout_width=”match_parent”
android:layout_height=”match_parent”
android:orientation=”vertical”
>

<de.hdodenhof.circleimageview.CircleImageView
android:id=”@+id/foto_category”
android:layout_width=”80dp”
android:layout_height=”80dp”
android:src=”@mipmap/ic_launcher”
android:layout_gravity=”center”
/>

<TextView
android:id=”@+id/nama_category”
android:layout_width=”wrap_content”
android:layout_height=”wrap_content”
android:fontFamily=”sans-serif-condensed”
android:textSize=”20sp”
android:textStyle=”bold”
tools:text=”Nur Rohman”
android:layout_marginTop=”5dp”
android:layout_gravity=”center”
/>

</LinearLayout>

</LinearLayout>



</android.support.v7.widget.CardView>

Leave a comment