Advertisement
Baru_Berbagi

mo_item_list.xml

Dec 22nd, 2021
1,323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.08 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    android:orientation="vertical"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="wrap_content">
  7.  
  8.     <androidx.cardview.widget.CardView
  9.        android:layout_width="match_parent"
  10.        android:layout_height="match_parent"
  11.        app:cardElevation="10dp"
  12.        app:cardCornerRadius="10dp"
  13.        android:layout_margin="10dp"
  14.        app:cardBackgroundColor="#FFFFFF">
  15.  
  16.         <LinearLayout
  17.            android:layout_width="match_parent"
  18.            android:layout_height="wrap_content"
  19.            android:orientation="horizontal">
  20.  
  21.             <ImageView
  22.                android:id="@+id/imageview"
  23.                android:layout_width="120dp"
  24.                android:layout_height="150dp"
  25.                android:layout_margin="10dp"
  26.                android:src="@drawable/ic_add_a_photo_black_24dp"/>
  27.  
  28.             <LinearLayout
  29.                android:layout_width="match_parent"
  30.                android:layout_height="match_parent"
  31.                android:orientation="vertical"
  32.                android:gravity="center"
  33.                android:layout_weight="1">
  34.  
  35.                 <TextView
  36.                    android:id="@+id/textName"
  37.                    android:layout_width="match_parent"
  38.                    android:layout_height="wrap_content"
  39.                    android:text="Nama"
  40.                    android:layout_margin="10dp"
  41.                    android:textSize="25sp"
  42.                    android:textStyle="bold"
  43.                    android:textColor="#000"/>
  44.  
  45.                 <TextView
  46.                    android:id="@+id/textDate"
  47.                    android:layout_width="match_parent"
  48.                    android:layout_height="wrap_content"
  49.                    android:text="2021"
  50.                    android:layout_margin="10dp"/>
  51.  
  52.             </LinearLayout>
  53.  
  54.         </LinearLayout>
  55.  
  56.     </androidx.cardview.widget.CardView>
  57.  
  58. </LinearLayout>
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement