token.xml revision f370eece69b53591e104fab667134cfe8d96fabd
<?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"
>
<org.fedorahosted.freeotp.CardImageView
android:id="@+id/image"
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_gravity="left"
android:src="@drawable/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:layout_marginRight="32dp"
android:paddingLeft="8dp"
android:gravity="left|center"
android:text="01234567"
android:textSize="38sp"
android:textStyle="bold"
android:typeface="monospace"
/>
<TextView
android:id="@+id/issuer"
android:layout_width="match_parent"
android:layout_height="24dp"
android:layout_marginLeft="96dp"
android:layout_marginTop="48dp"
android:paddingLeft="8dp"
android:ellipsize="end"
android:gravity="left|top"
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="24dp"
android:layout_marginLeft="96dp"
android:layout_marginTop="72dp"
android:paddingLeft="8dp"
android:ellipsize="end"
android:gravity="left|top"
android:singleLine="true"
android:text="eb40924b-1d13-4807-9a76-30eb7ffa7eba"
android:textColor="@android:color/secondary_text_light"
android:textSize="12sp"
android:textStyle="normal"
/>
<ImageView
android:id="@+id/menu"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_gravity="top|right"
android:layout_marginTop="8dp"
android:padding="6dp"
android:src="@drawable/menu"
/>
</org.fedorahosted.freeotp.TokenLayout>