1<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2012 The Android Open Source Project
2
3     Licensed under the Apache License, Version 2.0 (the "License");
4     you may not use this file except in compliance with the License.
5     You may obtain a copy of the License at
6
7          http://www.apache.org/licenses/LICENSE-2.0
8
9     Unless required by applicable law or agreed to in writing, software
10     distributed under the License is distributed on an "AS IS" BASIS,
11     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12     See the License for the specific language governing permissions and
13     limitations under the License.
14-->
15
16<!-- Layout for list item in routes list view. Displays ImageButtons
17     instead to the right of the item for edit and delete. -->
18
19<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:layout_margin="16dp"
22    android:orientation="horizontal"
23    android:layout_width="match_parent"
24    android:layout_height="wrap_content">
25
26    <LinearLayout
27        android:layout_width="0dp"
28        android:layout_weight="1"
29        android:layout_height="match_parent"
30        android:layout_alignParentLeft="true"
31        android:layout_alignParentStart="true"
32        android:orientation="vertical">
33
34        <TextView
35            android:id="@+id/name_textview"
36            android:layout_width="wrap_content"
37            android:layout_height="wrap_content"
38            android:layout_gravity="left"
39            android:layout_marginVertical="2dp"
40            android:gravity="left"
41            android:textSize="18sp" />
42
43        <TextView
44            android:id="@+id/description_textview"
45            android:layout_width="wrap_content"
46            android:layout_height="wrap_content"
47            android:layout_gravity="left"
48            android:layout_marginVertical="2dp"
49            android:gravity="left"
50            android:textSize="14sp" />
51
52    </LinearLayout>
53
54    <LinearLayout
55        android:layout_width="wrap_content"
56        android:layout_height="match_parent"
57        android:layout_alignParentEnd="true"
58        android:layout_alignParentRight="true"
59        android:layout_centerVertical="true"
60        android:orientation="horizontal">
61
62        <ImageButton
63            android:id="@+id/edit_button"
64            android:layout_width="wrap_content"
65            android:layout_height="wrap_content"
66            android:layout_margin="8dp"
67            android:background="@android:color/transparent"
68            app:srcCompat="@drawable/ic_edit" />
69
70        <ImageButton
71            android:id="@+id/delete_button"
72            android:layout_width="wrap_content"
73            android:layout_height="wrap_content"
74            android:layout_margin="8dp"
75            android:background="@android:color/transparent"
76            app:srcCompat="@drawable/ic_delete" />
77
78    </LinearLayout>
79
80</LinearLayout>
81