Advertisement
Guest User

Item layout

a guest
Dec 12th, 2015
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.79 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    android:id="@+id/featureLayout"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="wrap_content"
  7.    android:clickable="true"
  8.    android:focusable="true"
  9.    android:background="?attr/selectableItemBackground"
  10.    android:padding="16dp"
  11.    >
  12.  
  13.     <LinearLayout
  14.        android:layout_width="match_parent"
  15.        android:layout_height="wrap_content"
  16.        android:orientation="horizontal"
  17.        android:weightSum="5">
  18.  
  19.         <LinearLayout
  20.            android:layout_width="0dp"
  21.            android:layout_height="wrap_content"
  22.            android:layout_weight="4"
  23.            android:orientation="vertical">
  24.  
  25.             <TextView
  26.                android:id="@+id/featureTitle"
  27.                android:layout_width="wrap_content"
  28.                android:layout_height="wrap_content"
  29.                android:text="Main Road"
  30.                android:textSize="20sp"/>
  31.  
  32.             <TextView
  33.                android:id="@+id/featureValue"
  34.                android:layout_width="wrap_content"
  35.                android:layout_height="wrap_content"
  36.                android:textSize="15sp"
  37.                android:text="Test"
  38.  
  39.                />
  40.  
  41.         </LinearLayout>
  42.  
  43.         <LinearLayout
  44.            android:layout_width="0dp"
  45.            android:layout_height="wrap_content"
  46.            android:layout_weight="1">
  47.  
  48.             <TextView
  49.                android:id="@+id/featureProgress"
  50.                android:layout_width="wrap_content"
  51.                android:layout_height="wrap_content"
  52.                android:textSize="20sp"
  53.                android:text="50%"/>
  54.  
  55.         </LinearLayout>
  56.  
  57.     </LinearLayout>
  58.  
  59. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement