item_facility.xml 1.62 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="72dp"
android:orientation="horizontal">

<LinearLayout
    android:id="@+id/text_layout"
    android:layout_width="0dp"
    android:layout_height="match_parent"
11
12
13
    android:clickable="true"
    android:focusable="true"
    android:background="?attr/selectableItemBackground"
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
    android:layout_marginStart="16dp"
    android:layout_weight="1"
    android:gravity="center_vertical"
    android:orientation="vertical">

    <TextView
        android:id="@+id/facility_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Facility Name"
        android:transitionName="facility_name"
        android:textColor="#000000"
        android:textSize="16sp" />

    <TextView
        android:id="@+id/facility_duration"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Facility Duration"
        android:textColor="@color/facilityText"
        android:textSize="16sp" />
</LinearLayout>

<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"
        android:background="#00FFFFFF"
        android:elevation="2dp"
        android:paddingLeft="16dp"
        android:paddingRight="16dp"
        android:src="@drawable/ic_fav_button_off_24dp" />
</RelativeLayout>
</LinearLayout>