Advertisement
Guest User

Untitled

a guest
May 26th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.55 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v7.widget.CardView
  3.        xmlns:android="http://schemas.android.com/apk/res/android"
  4.        android:layout_width="250dp"
  5.        android:layout_height="wrap_content"
  6.        xmlns:app="http://schemas.android.com/apk/res-auto"
  7.        xmlns:tools="http://schemas.android.com/tools"
  8.        android:layout_marginBottom="5dp"
  9.        android:layout_marginTop="5dp"
  10.        android:layout_marginRight="10dp"
  11.        android:layout_marginLeft="10dp"
  12.        app:cardElevation="3dp"
  13.        app:cardCornerRadius="5dp">
  14.    
  15.     <LinearLayout
  16.            android:layout_width="match_parent"
  17.            android:layout_height="wrap_content"
  18.            android:orientation="vertical">
  19.         <ImageView
  20.                android:layout_width="match_parent"
  21.                android:layout_height="100dp"
  22.                android:src="@color/colorPrimary"/>
  23.         <LinearLayout
  24.                android:layout_width="match_parent"
  25.                android:layout_height="wrap_content"
  26.                android:orientation="vertical"
  27.                android:layout_margin="10dp">
  28.             <TextView
  29.                    android:layout_width="match_parent"
  30.                    android:layout_height="wrap_content"
  31.                    tools:text="Puzzle Dazzle: Edisi Ramadhan"
  32.                    android:textStyle="bold"
  33.                    android:textSize="16sp"
  34.                    android:textColor="@android:color/black"/>
  35.             <TextView
  36.                    android:layout_width="match_parent"
  37.                    android:layout_height="wrap_content"
  38.                    tools:text="5400 played this"
  39.                    android:layout_marginBottom="5dp"/>
  40.             <TextView
  41.                    android:layout_width="match_parent"
  42.                    android:layout_height="wrap_content"
  43.                    tools:text="Sambil ngabuburit, main puzzle dulu yuk biar santai!"
  44.                    android:layout_marginBottom="10dp"/>
  45.            
  46.             <TextView
  47.                    android:layout_width="match_parent"
  48.                    android:layout_height="wrap_content"
  49.                    android:gravity="center"
  50.                    android:textColor="@color/colorPrimary"
  51.                    tools:text="Yuk Main"
  52.                    android:textStyle="bold"
  53.                    android:layout_marginBottom="10dp"/>
  54.             <View
  55.                    android:layout_width="match_parent"
  56.                    android:layout_height="0.5dp"
  57.                    android:background="@android:color/darker_gray"
  58.                    android:layout_marginBottom="10dp"/>
  59.             <LinearLayout
  60.                    android:layout_width="match_parent"
  61.                    android:layout_height="wrap_content"
  62.                    android:orientation="horizontal">
  63.                 //Ganti dengan imagenya
  64.                 <ImageView
  65.                        android:layout_width="24dp"
  66.                        android:layout_height="24dp"
  67.                        android:src="@color/colorPrimary"
  68.                        android:contentDescription="@string/app_name"/>
  69.                 <TextView
  70.                        android:layout_width="wrap_content"
  71.                        android:layout_height="match_parent"
  72.                        android:gravity="center"
  73.                        android:layout_marginStart="5dp"
  74.                        tools:text="2.92k"/>
  75.                
  76.             </LinearLayout>
  77.         </LinearLayout>
  78.     </LinearLayout>
  79.  
  80. </android.support.v7.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement