token.xml revision 7e3fa36d69ffee874dd364b8e3d9aa3cab9a273b
<?xml version="1.0" encoding="utf-8"?>
<!--
- FreeOTP
-
- Authors: Nathaniel McCallum <npmccallum@redhat.com>
-
- Copyright (C) 2013 Nathaniel McCallum, Red Hat
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:freeotp="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:background="@drawable/token" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="96dp"
android:orientation="vertical" >
<TextView
android:id="@+id/code"
android:layout_width="match_parent"
android:layout_height="48dp"
android:gravity="center|left"
android:text="01234567"
android:textSize="38sp"
android:textStyle="bold"
android:typeface="monospace" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:orientation="vertical" >
<TextView
android:id="@+id/issuer"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="3"
android:layout_marginRight="48dp"
android:ellipsize="end"
android:gravity="left|center"
android:singleLine="true"
android:text="example@example.com"
android:textColor="@android:color/primary_text_light"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/label"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2"
android:layout_marginRight="48dp"
android:ellipsize="end"
android:gravity="left|center"
android:singleLine="true"
android:text="1FMAS0M43MF98ASMDMF10MF0M"
android:textColor="@android:color/secondary_text_light"
android:textSize="12sp"
android:textStyle="normal" />
</LinearLayout>
</LinearLayout>
<ImageView
android:id="@+id/image"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="top|right"
android:padding="4dp"
android:src="@drawable/ic_action_replay" />
<org.fedorahosted.freeotp.ProgressCircle
android:id="@+id/progress"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="top|right"
android:padding="8dp"
freeotp:max="1000"
/>
<ImageButton
android:id="@+id/menuButton"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="bottom|right"
android:src="@drawable/ic_action_overflow"
android:gravity="center_vertical" />
</FrameLayout>