fauzie811

list_item.xml

Sep 12th, 2017
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.28 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="match_parent"
  5.    android:layout_height="wrap_content"
  6.    android:padding="8dp">
  7.  
  8.     <LinearLayout
  9.        android:padding="@dimen/activity_horizontal_margin"
  10.        android:orientation="vertical"
  11.        android:layout_width="match_parent"
  12.        android:layout_height="match_parent" >
  13.  
  14.         <ImageView
  15.            android:layout_width="80dp"
  16.            android:layout_height="80dp"
  17.            android:id="@+id/imageViewHero" />
  18.  
  19.         <LinearLayout
  20.            android:layout_width="match_parent"
  21.            android:layout_height="wrap_content"
  22.            android:orientation="horizontal">
  23.  
  24.             <TableLayout
  25.                android:layout_width="0dp"
  26.                android:layout_height="wrap_content"
  27.                android:layout_weight="1">
  28.  
  29.                 <TableRow>
  30.  
  31.                     <TextView
  32.                        android:text="Nama :"
  33.                        android:layout_width="wrap_content"
  34.                        android:layout_height="wrap_content"
  35.                        />
  36.  
  37.                     <TextView
  38.                        android:id="@+id/textViewName"
  39.                        android:textStyle="bold"
  40.                        android:layout_width="0dp"
  41.                        android:layout_height="wrap_content"
  42.                        android:layout_weight="1"
  43.                        />
  44.  
  45.                 </TableRow>
  46.  
  47.                 <TableRow>
  48.  
  49.                     <TextView
  50.                        android:text="Harga :"
  51.                        android:layout_width="wrap_content"
  52.                        android:layout_height="wrap_content"
  53.                        />
  54.  
  55.                     <TextView
  56.                        android:id="@+id/textViewPublisher"
  57.                        android:textStyle="bold"
  58.                        android:layout_width="0dp"
  59.                        android:layout_height="wrap_content"
  60.                        android:layout_weight="1"
  61.                        />
  62.  
  63.                 </TableRow>
  64.  
  65.                 <TableRow>
  66.  
  67.                     <TextView
  68.                        android:text="Deskripsi :"
  69.                        android:layout_width="wrap_content"
  70.                        android:layout_height="wrap_content"
  71.                        android:singleLine="true"/>
  72.  
  73.                     <TextView
  74.                        android:id="@+id/textviewDeskripsi"
  75.                        android:textStyle="bold"
  76.                        android:layout_width="0dp"
  77.                        android:layout_height="wrap_content"
  78.                        android:layout_weight="1"
  79.                        android:singleLine="true"/>
  80.  
  81.                 </TableRow>
  82.  
  83.             </TableLayout>
  84.  
  85.             <TextView
  86.                android:id="@+id/textViewOptions"
  87.                android:layout_width="48dp"
  88.                android:layout_height="match_parent"
  89.                android:text="&#8942;"
  90.                android:gravity="center"
  91.                android:textAppearance="@style/TextAppearance.AppCompat.Large"/>
  92.  
  93.         </LinearLayout>
  94.  
  95.     </LinearLayout>
  96.  
  97. </android.support.v7.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment