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.
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. -->
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"/>
25 android:layout_height="match_parent"
26 android:layout_width="match_parent">
28 android:id="@+id/hostList_chooser"
29 android:layout_height="match_parent"
30 android:layout_width="match_parent"/>
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">
39 android:layout_height="wrap_content"
40 android:layout_width="wrap_content"
41 android:src="@drawable/empty_host_list"
42 android:contentDescription="@null"/>
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"/>
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"/>
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"/>
66 <!-- The navigation drawer. The account-switcher and navigation menu will be programmatically
67 added to this view. -->
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">
77 </android.support.v4.widget.DrawerLayout>