]> Pileus Git - ~andy/freeotp/blob - res/layout/main.xml
Tablet UI rewrite
[~andy/freeotp] / res / layout / main.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3    - FreeOTP
4    -
5    - Authors: Nathaniel McCallum <npmccallum@redhat.com>
6    -
7    - Copyright (C) 2013  Nathaniel McCallum, Red Hat
8    -
9    - Licensed under the Apache License, Version 2.0 (the "License");
10    - you may not use this file except in compliance with the License.
11    - You may obtain a copy of the License at
12    -
13    -     http://www.apache.org/licenses/LICENSE-2.0
14    -
15    - Unless required by applicable law or agreed to in writing, software
16    - distributed under the License is distributed on an "AS IS" BASIS,
17    - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18    - See the License for the specific language governing permissions and
19    - limitations under the License.
20    -->
21
22 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
23         android:orientation="vertical"
24         android:layout_width="match_parent"
25         android:layout_height="match_parent"
26         >
27
28     <TextView
29         android:id="@android:id/empty"
30         android:layout_width="match_parent"
31         android:layout_height="match_parent"
32         android:padding="8dp"
33         android:gravity="center"
34         android:text="@string/no_keys"
35         />
36
37         <GridView
38             android:id="@+id/grid"
39             android:layout_width="match_parent"
40         android:layout_height="0dp"
41         android:layout_weight="1"
42             android:columnWidth="250dp"
43             android:gravity="center"
44             android:horizontalSpacing="8dp"
45             android:numColumns="auto_fit"
46             android:padding="8dp"
47             android:stretchMode="columnWidth"
48             android:verticalSpacing="8dp"
49             android:background="#E5E5E5"
50             />
51 </LinearLayout>