]> Pileus Git - ~andy/freeotp/blob - res/layout/common.xml
d5866480ad876aa6dfc437bd4912f25fad385a8b
[~andy/freeotp] / res / layout / common.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    - see file 'COPYING' for use and warranty information
9    -
10    - This program is free software you can redistribute it and/or modify
11    - it under the terms of the GNU General Public License as published by
12    - the Free Software Foundation, either version 3 of the License, or
13    - (at your option) any later version.
14    -
15    - This program is distributed in the hope that it will be useful,
16    - but WITHOUT ANY WARRANTY; without even the implied warranty of
17    - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18    - GNU General Public License for more details.
19    -
20    - You should have received a copy of the GNU General Public License
21    - along with this program.  If not, see <http://www.gnu.org/licenses/>.
22   -->
23
24 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
25     android:layout_width="0dp"
26     android:layout_height="72dp"
27     android:layout_weight="1"
28     android:orientation="vertical" >
29
30     <TextView
31         android:id="@+id/title"
32         android:layout_width="match_parent"
33         android:layout_height="26dp"
34         android:gravity="center_vertical|left"
35         android:paddingTop="4dp"
36         android:paddingLeft="8dp"
37         android:text="Example: example@example.com"
38         android:textSize="14sp" />
39     
40     <LinearLayout
41             android:layout_width="match_parent"
42             android:layout_height="46dp"
43             android:orientation="horizontal" >
44             <ImageButton
45                 android:id="@+id/button"
46             android:layout_width="46dp"
47             android:layout_height="46dp"
48             android:layout_marginLeft="8dp"
49             android:src="@drawable/delete"
50             style="?android:attr/borderlessButtonStyle"
51             android:layout_gravity="center" />
52             
53             <TextView
54                 android:id="@+id/code"
55                 android:layout_width="match_parent"
56                 android:layout_height="46dp"
57                 android:gravity="center_vertical|left"
58                 android:padding="0dp"
59                 android:text="00000000"
60                 android:textSize="34sp"
61                 android:typeface="monospace" />
62         </LinearLayout>
63     
64 </LinearLayout>