nafiefn_10

custom_grid.xml

May 1st, 2021
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.15 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    xmlns:tools="http://schemas.android.com/tools"
  6.    tools:ignore="UseCompoundDrawables,UselessParent,HardcodedText">
  7.     <LinearLayout
  8.        android:layout_width="match_parent"
  9.        android:layout_height="wrap_content"
  10.        android:gravity="center"
  11.        android:orientation="vertical">
  12.         <ImageView
  13.            android:id="@+id/gambar"
  14.            android:layout_width="50dp"
  15.            android:layout_height="50dp"
  16.            android:layout_gravity="center"
  17.            android:layout_marginBottom="10dp"
  18.            tools:ignore="ContentDescription"/>
  19.         <TextView
  20.            android:id="@+id/nama"
  21.            android:layout_width="wrap_content"
  22.            android:layout_height="wrap_content"
  23.            android:layout_gravity="center"
  24.            android:fontFamily="monospace"
  25.            android:text="Nama"
  26.            android:textStyle="bold"
  27.            android:textSize="10sp"/>
  28.     </LinearLayout>
  29. </RelativeLayout>
Add Comment
Please, Sign In to add comment