1 <?xml version="1.0" encoding="utf-8"?>
5 - Authors: Nathaniel McCallum <npmccallum@redhat.com>
7 - Copyright (C) 2013 Nathaniel McCallum, Red Hat
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
13 - http://www.apache.org/licenses/LICENSE-2.0
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.
22 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
23 android:layout_width="match_parent"
24 android:layout_height="wrap_content"
25 android:layout_marginTop="4dp"
26 android:layout_marginBottom="4dp"
27 android:layout_marginLeft="8dp"
28 android:layout_marginRight="8dp"
29 android:background="@drawable/token" >
32 android:layout_width="match_parent"
33 android:layout_height="96dp"
34 android:orientation="vertical" >
37 android:id="@+id/code"
38 android:layout_width="match_parent"
39 android:layout_height="48dp"
40 android:gravity="center|left"
41 android:text="01234567"
42 android:textSize="38sp"
43 android:textStyle="bold"
44 android:typeface="monospace" />
47 android:layout_width="match_parent"
48 android:layout_height="48dp"
49 android:paddingTop="4dp"
50 android:paddingBottom="4dp"
51 android:orientation="vertical" >
53 android:id="@+id/issuer"
54 android:layout_width="match_parent"
55 android:layout_height="0dp"
56 android:layout_weight="3"
57 android:layout_marginRight="48dp"
58 android:ellipsize="end"
59 android:gravity="left|center"
60 android:singleLine="true"
61 android:text="example@example.com"
62 android:textColor="@android:color/primary_text_light"
63 android:textSize="16sp"
64 android:textStyle="bold" />
67 android:id="@+id/label"
68 android:layout_width="match_parent"
69 android:layout_height="0dp"
70 android:layout_weight="2"
71 android:layout_marginRight="48dp"
72 android:ellipsize="end"
73 android:gravity="left|center"
74 android:singleLine="true"
75 android:text="1FMAS0M43MF98ASMDMF10MF0M"
76 android:textColor="@android:color/secondary_text_light"
77 android:textSize="12sp"
78 android:textStyle="normal" />
83 android:id="@+id/image"
84 android:layout_width="48dp"
85 android:layout_height="48dp"
86 android:layout_gravity="top|right"
88 android:src="@drawable/generate" />
90 <org.fedorahosted.freeotp.CircleProgressBar
91 android:id="@+id/progress"
92 style="?android:attr/progressBarStyleHorizontal"
93 android:layout_width="48dp"
94 android:layout_height="48dp"
95 android:layout_gravity="top|right"
98 android:progress="750" />
101 android:id="@+id/checkBox"
102 android:layout_width="40dp"
103 android:layout_height="48dp"
104 android:layout_gravity="bottom|right"
105 android:background="?android:attr/selectableItemBackground"
106 android:gravity="center_vertical" />