item_facility.xml 1.55 KB
Newer Older
Robert Hitt's avatar
Robert Hitt committed
1
2
3
4
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="horizontal"
              android:layout_width="match_parent"
5
              android:layout_height="wrap_content"
6
              android:elevation="2dp">
Robert Hitt's avatar
Robert Hitt committed
7

8
    <RelativeLayout android:id="@+id/text_layout"
9
10
11
12
13
14
                    android:paddingTop="15dp"
                    android:paddingBottom="15dp"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:background="?android:attr/selectableItemBackground"
                    android:layout_weight="1">
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

        <TextView android:id="@+id/facility_name"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:textColor="@color/facilityText"
                  android:paddingLeft="10dp"/>
    </RelativeLayout>

    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="match_parent">

        <ImageButton android:id="@+id/favorite_button"
                     android:layout_width="wrap_content"
                     android:layout_height="match_parent"
Robert Hitt's avatar
Robert Hitt committed
30
31
                     android:src="@drawable/ic_fav_button_off_24dp"
                     android:background="#00FFFFFF"
32
33
34
35
                     android:elevation="2dp"
                     android:paddingLeft="16dp"
                     android:paddingRight="16dp"/>
    </RelativeLayout>
36
</LinearLayout>