token.xml revision 53e82da7ff6e9834dc9024853ea30689632e8ea4
0N/A<?xml version="1.0" encoding="utf-8"?>
0N/A<!--
0N/A - FreeOTP
0N/A -
0N/A - Authors: Nathaniel McCallum <npmccallum@redhat.com>
0N/A -
0N/A - Copyright (C) 2013 Nathaniel McCallum, Red Hat
0N/A -
0N/A - Licensed under the Apache License, Version 2.0 (the "License");
0N/A - you may not use this file except in compliance with the License.
0N/A - You may obtain a copy of the License at
0N/A -
0N/A - http://www.apache.org/licenses/LICENSE-2.0
0N/A -
0N/A - Unless required by applicable law or agreed to in writing, software
0N/A - distributed under the License is distributed on an "AS IS" BASIS,
0N/A - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0N/A - See the License for the specific language governing permissions and
0N/A - limitations under the License.
0N/A -->
0N/A
0N/A<org.forgerock.authenticator.TokenLayout
0N/A xmlns:android="http://schemas.android.com/apk/res/android"
0N/A xmlns:freeotp="http://schemas.android.com/apk/res-auto"
0N/A android:layout_width="match_parent"
0N/A android:layout_height="wrap_content"
0N/A android:background="@drawable/token"
0N/A >
0N/A <ImageView
0N/A android:id="@+id/image"
0N/A android:layout_width="96dp"
0N/A android:layout_height="96dp"
0N/A android:layout_gravity="left"
0N/A android:src="@drawable/forgerock_logo"
0N/A android:scaleType="fitCenter"
0N/A />
0N/A
<org.forgerock.authenticator.ProgressCircle
android:id="@+id/progressInner"
android:layout_width="96dp"
android:layout_height="96dp"
android:padding="28dp"
freeotp:hollow="false"
freeotp:max="1000"
/>
<org.forgerock.authenticator.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.forgerock.authenticator.TokenLayout>