oathcell.xml revision 0040712a8beeb4903e52791db304c51f62487ec3
0N/A<?xml version="1.0" encoding="utf-8"?>
579N/A<!--
0N/A The contents of this file are subject to the terms of the Common Development and
0N/A Distribution License (the License). You may not use this file except in compliance with the
0N/A License.
0N/A
0N/A You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
0N/A specific language governing permission and limitations under the License.
0N/A
0N/A When distributing Covered Software, include this CDDL Header Notice in each file and include
0N/A the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
0N/A Header, with the fields enclosed by brackets [] replaced by your own identifying
0N/A information: "Portions copyright [year] [name of copyright owner]".
0N/A
0N/A Copyright 2015-2016 ForgeRock AS.
0N/A
0N/A Portions Copyright 2013 Nathaniel McCallum, Red Hat
0N/A-->
0N/A<com.forgerock.authenticator.mechanisms.oath.OathLayout 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="96dp"
0N/A xmlns:tools="http://schemas.android.com/tools"
0N/A android:background="@drawable/token">
0N/A <RelativeLayout
0N/A android:layout_width="match_parent"
0N/A android:layout_height="match_parent">
0N/A <com.forgerock.authenticator.ui.MechanismIcon
0N/A android:id="@+id/icon"
0N/A android:layout_width="wrap_content"
0N/A android:layout_height="wrap_content"
0N/A android:layout_gravity="center_vertical"
0N/A android:layout_centerVertical="true" />
0N/A
0N/A <com.forgerock.authenticator.ui.ProgressCircle
0N/A android:id="@+id/progressOuter"
0N/A android:layout_width="48dp"
0N/A android:layout_height="48dp"
0N/A android:padding="5dp"
0N/A android:layout_alignParentRight="true"
0N/A android:layout_alignParentEnd="true"
0N/A android:layout_marginRight="16dp"
0N/A android:layout_marginEnd="16dp"
0N/A android:layout_centerVertical="true"
0N/A freeotp:hollow="true"
0N/A freeotp:max="1000"
0N/A />
0N/A
0N/A <ImageButton
0N/A android:id="@+id/refresh"
0N/A android:layout_width="48dp"
0N/A android:layout_height="48dp"
0N/A android:padding="5dp"
0N/A android:background="@color/white"
0N/A android:layout_alignParentRight="true"
0N/A android:layout_alignParentEnd="true"
0N/A android:layout_marginRight="16dp"
0N/A android:layout_marginEnd="16dp"
0N/A android:layout_centerVertical="true"
0N/A android:src="@drawable/forgerock_icon_refresh"
0N/A />
0N/A
0N/A <LinearLayout
0N/A android:layout_width="wrap_content"
0N/A android:layout_height="wrap_content"
710N/A android:layout_centerVertical="true"
0N/A android:orientation="vertical"
132N/A android:layout_marginLeft="60dp">
132N/A
132N/A <TextView
132N/A android:layout_width="match_parent"
132N/A android:layout_height="32dp"
132N/A android:paddingLeft="8dp"
132N/A android:paddingRight="8dp"
132N/A android:gravity="left|center"
132N/A android:text="@string/oath_mechanism_title"
132N/A android:textSize="20sp"
132N/A />
132N/A
132N/A <TextView
132N/A android:id="@+id/code"
132N/A android:layout_width="match_parent"
132N/A android:layout_height="40dp"
132N/A android:paddingLeft="8dp"
132N/A android:paddingRight="8dp"
132N/A android:gravity="left|bottom"
132N/A tools:text="123 456"
132N/A android:textSize="34sp"
132N/A android:textColor="#4d4d4d"
132N/A android:textStyle="bold"
132N/A android:typeface="monospace"
132N/A />
132N/A </LinearLayout>
132N/A
132N/A </RelativeLayout>
132N/A</com.forgerock.authenticator.mechanisms.oath.OathLayout>
132N/A