Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / remoting / android / java / res / layout / main.xml
blob7b3f2e9073e7686dcc4a37ae79ea113543b1be76
1 <?xml version="1.0" encoding="utf-8"?>
3 <!-- Copyright 2014 The Chromium Authors. All rights reserved.
4      Use of this source code is governed by a BSD-style license that can be
5      found in the LICENSE file.
6 -->
8 <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
9     android:id="@+id/drawer_layout"
10     android:layout_width="match_parent"
11     android:layout_height="match_parent"
12     android:fitsSystemWindows="true">
13     <!-- The main content view. -->
14     <LinearLayout
15         android:layout_width="match_parent"
16         android:layout_height="wrap_content"
17         android:orientation="vertical">
18         <android.support.v7.widget.Toolbar
19             android:id="@+id/toolbar"
20             android:layout_width="match_parent"
21             android:layout_height="wrap_content"
22             android:background="?attr/colorPrimary"
23             android:elevation="4dp"/>
24         <FrameLayout
25             android:layout_height="match_parent"
26             android:layout_width="match_parent">
27             <ListView
28                 android:id="@+id/hostList_chooser"
29                 android:layout_height="match_parent"
30                 android:layout_width="match_parent"/>
31             <LinearLayout
32                 android:id="@+id/hostList_empty"
33                 android:gravity="center"
34                 android:layout_height="match_parent"
35                 android:layout_width="match_parent"
36                 android:orientation="vertical"
37                 android:visibility="gone">
38                 <ImageView
39                     android:layout_height="wrap_content"
40                     android:layout_width="wrap_content"
41                     android:src="@drawable/empty_host_list"
42                     android:contentDescription="@null"/>
43                 <TextView
44                     android:gravity="center"
45                     android:layout_height="wrap_content"
46                     android:layout_width="match_parent"
47                     android:text="@string/host_list_empty_android"
48                     style="@style/EmptyStateText"/>
49                 <TextView
50                     android:id="@+id/host_setup_link_android"
51                     android:gravity="center"
52                     android:layout_height="wrap_content"
53                     android:layout_width="match_parent"
54                     android:text="@string/host_setup_link_android"
55                     style="@style/EmptyStateText.Hyperlink"/>
56             </LinearLayout>
57             <ProgressBar
58                 android:id="@+id/hostList_progress"
59                 android:layout_height="wrap_content"
60                 android:layout_width="wrap_content"
61                 android:layout_gravity="center"
62                 android:visibility="gone"
63                 style="@android:style/Widget.Holo.ProgressBar.Large"/>
64         </FrameLayout>
65     </LinearLayout>
66     <!-- The navigation drawer. The account-switcher and navigation menu will be programmatically
67          added to this view. -->
68     <LinearLayout
69         android:id="@+id/navigation_drawer"
70         android:layout_width="300dp"
71         android:layout_height="match_parent"
72         android:orientation="vertical"
73         android:layout_gravity="start"
74         android:padding="16dp"
75         android:background="@android:color/background_light">
76     </LinearLayout>
77 </android.support.v4.widget.DrawerLayout>