greenfablab

GreenFabLab Android App
Log | Files | Refs

activity_listitem.xml (1676B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      3     android:layout_width="fill_parent"
      4     android:layout_height="?android:attr/listPreferredItemHeight"
      5     android:background="@color/green"
      6     android:id="@+id/listview"
      7     android:padding="6dip">
      8 
      9     <ImageView
     10         android:id="@+id/icon"
     11         android:layout_width="wrap_content"
     12         android:layout_height="fill_parent"
     13         android:layout_alignParentBottom="true"
     14         android:layout_alignParentTop="true"
     15         android:layout_marginRight="6dip"
     16         android:contentDescription="TODO"
     17         android:src="@drawable/ic_launcher_foreground"/>
     18 
     19     <TextView
     20         android:id="@+id/secondLine"
     21         android:layout_width="fill_parent"
     22         android:layout_height="26dip"
     23         android:layout_alignParentBottom="true"
     24         android:layout_alignParentRight="true"
     25         android:layout_toRightOf="@id/icon"
     26         android:singleLine="true"
     27         android:maxLines="1"
     28         android:text="Description"
     29         android:textColor="@color/white"
     30         android:textSize="12sp" />
     31 
     32     <TextView
     33         android:id="@+id/firstLine"
     34         android:layout_width="fill_parent"
     35         android:layout_height="wrap_content"
     36         android:layout_above="@id/secondLine"
     37         android:layout_alignParentRight="true"
     38         android:layout_alignParentTop="true"
     39         android:layout_alignWithParentIfMissing="true"
     40         android:layout_toRightOf="@id/icon"
     41         android:gravity="center_vertical"
     42         android:text="Exhibit 1"
     43         android:textColor="@color/white"
     44         android:textSize="16sp" />
     45 
     46 </RelativeLayout>