Advertisement
Guest User

row_layout

a guest
Oct 1st, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.98 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    android:layout_width="100dp"
  5.    android:layout_height="100dp"
  6.    android:orientation="vertical"
  7.    android:id="@+id/rel_layout"
  8.    android:padding="16dp"
  9.    android:gravity="center_vertical|center_horizontal">
  10.     <ImageView
  11.        android:layout_width="wrap_content"
  12.        android:layout_height="wrap_content"
  13.        app:srcCompat="@drawable/lock_level"
  14.        android:id="@+id/level_bg" />
  15.  
  16.     <TextView
  17.        android:text="1"
  18.        android:layout_width="match_parent"
  19.        android:layout_height="wrap_content"
  20.        android:layout_centerVertical="true"
  21.        android:layout_centerHorizontal="true"
  22.        android:id="@+id/level_title"
  23.        android:textColor="@color/colorPrimary"
  24.        android:textAlignment="center"
  25.        android:textSize="30sp" />
  26. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement