permission_activity.xml revision 826aa7f01d059b6764002fa0fba236d7aeafee39
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:tools="http://schemas.android.com/tools"
19    android:id="@+id/content"
20    android:layout_width="fill_parent"
21    android:layout_height="fill_parent"
22    tools:context=".MainActivity"
23    android:orientation="vertical" >
24
25
26    <FrameLayout
27        android:layout_width="fill_parent"
28        android:layout_height="?android:attr/actionBarSize"
29        android:background="@drawable/header_background"
30        android:theme="@android:style/Theme.Material.Settings" >
31
32        <TextView
33            android:layout_height="wrap_content"
34            android:layout_width="wrap_content"
35            android:layout_gravity="center"
36            android:textAppearance="@android:style/TextAppearance.Material.Medium"
37            android:textColor="@android:color/white"
38            android:text="@string/list_title">
39        </TextView>
40
41    </FrameLayout>
42
43    <ListView
44        android:id="@+id/list"
45        android:layout_width="wrap_content"
46        android:layout_height="fill_parent"
47        android:layout_weight="1"
48        android:orientation="vertical">
49    </ListView>
50
51    <FrameLayout
52         android:id="@+id/empty_state"
53         android:layout_width="fill_parent"
54         android:layout_height="fill_parent"
55         android:visibility="gone">
56
57        <TextView
58            android:layout_width="wrap_content"
59            android:layout_height="wrap_content"
60            android:layout_gravity="center"
61            android:textAppearance="?android:attr/textAppearanceLarge"
62            android:textColor="?android:attr/textColorSecondary"
63            android:text="@string/action_prompt">
64        </TextView>
65
66    </FrameLayout>
67
68</LinearLayout>
69