token.xml revision 86e135c855819d5be9f078716baf68756f747460
<?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.
-->
<org.fedorahosted.freeotp.TokenLayout
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:background="@drawable/token"
>
<ImageView
android:id="@+id/image"
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_gravity="left"
android:src="@drawable/forgerock_logo"
android:scaleType="fitCenter"
/>
<org.fedorahosted.freeotp.ProgressCircle
android:id="@+id/progressInner"
android:layout_width="96dp"
android:layout_height="96dp"
android:padding="28dp"
freeotp:hollow="false"
freeotp:max="1000"
/>
<org.fedorahosted.freeotp.ProgressCircle
android:id="@+id/progressOuter"
android:layout_width="96dp"
android:layout_height="96dp"
android:padding="24dp"
freeotp:hollow="true"
freeotp:max="1000"
/>
<TextView
android:id="@+id/code"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginLeft="96dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:gravity="left|center"
android:text="01234567"
android:textSize="34sp"
android:textStyle="bold"
android:typeface="monospace"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginLeft="96dp"
android:layout_marginTop="48dp"
android:paddingLeft="8dp"
android:paddingRight="32dp"
android:orientation="vertical">
<include layout="@layout/titles" />
</LinearLayout>
<ImageView
android:id="@+id/menu"
android:layout_width="32dp"
android:layout_height="48dp"
android:layout_gravity="bottom|right"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:src="@drawable/menu"
/>
</org.fedorahosted.freeotp.TokenLayout>