• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout
3    xmlns:android="http://schemas.android.com/apk/res/android"
4    xmlns:tools="http://schemas.android.com/tools"
5    android:layout_margin="16dp"
6    android:layout_width="match_parent"
7    android:layout_height="match_parent"
8    android:orientation="vertical"
9    android:weightSum="1"
10    android:layout_centerHorizontal="true">
11
12    <TextView
13        android:id="@+id/room_edittext_description"
14        android:layout_width="match_parent"
15        android:layout_height="wrap_content"
16        android:text="@string/room_description"/>
17
18    <LinearLayout
19        android:orientation="horizontal"
20        android:layout_width="match_parent"
21        android:layout_height="wrap_content"
22        android:gravity="center"
23        android:layout_marginBottom="8dp">
24
25        <!-- TODO(crbug.com/900912): Fix and remove lint ignore -->
26        <EditText
27            tools:ignore="LabelFor,Autofill"
28            android:id="@+id/room_edittext"
29            android:layout_width="0dp"
30            android:layout_height="wrap_content"
31            android:layout_weight="1"
32            android:maxLines="1"
33            android:imeOptions="actionDone"
34            android:inputType="text"/>
35
36        <ImageButton
37            android:id="@+id/connect_button"
38            android:layout_width="48dp"
39            android:layout_height="48dp"
40            android:contentDescription="@string/connect_description"
41            android:background="@android:drawable/sym_action_call" />
42
43        <ImageButton
44            android:id="@+id/add_favorite_button"
45            android:layout_width="48dp"
46            android:layout_height="48dp"
47            android:contentDescription="@string/add_favorite_description"
48            android:background="@android:drawable/ic_input_add" />
49    </LinearLayout>
50
51    <TextView
52        android:id="@+id/room_listview_description"
53        android:layout_width="match_parent"
54        android:layout_height="48dp"
55        android:layout_marginTop="8dp"
56        android:lines="1"
57        android:maxLines="1"
58        android:textAppearance="?android:attr/textAppearanceMedium"
59        android:text="@string/favorites"
60        android:gravity="center_vertical"/>
61
62    <FrameLayout
63        android:layout_width="match_parent"
64        android:layout_height="0dp"
65        android:layout_weight="1">
66
67        <ListView
68            android:id="@+id/room_listview"
69            android:layout_width="match_parent"
70            android:layout_height="match_parent"
71            android:drawSelectorOnTop="false" />
72
73        <TextView
74            android:id="@android:id/empty"
75            android:layout_width="match_parent"
76            android:layout_height="match_parent"
77            android:gravity="center"
78            android:text="@string/no_favorites" />
79    </FrameLayout>
80</LinearLayout>
81