add.xml revision eaf6de42255b7dab8d5531d29fffc299b3aaddd4
0N/A<?xml version="1.0" encoding="utf-8"?>
2362N/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-->
2362N/A<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2362N/A android:layout_width="match_parent"
2362N/A android:layout_height="match_parent"
0N/A android:orientation="vertical">
0N/A
0N/A <LinearLayout
0N/A android:layout_width="match_parent"
0N/A android:layout_height="0dp"
0N/A android:layout_margin="16dp"
0N/A android:layout_weight="1"
0N/A android:orientation="vertical">
0N/A
0N/A <include layout="@layout/metadata" />
0N/A
0N/A <View
0N/A style="@style/Divider"
0N/A android:layout_marginBottom="8dp"
0N/A android:layout_marginTop="8dp" />
0N/A
0N/A <ScrollView
0N/A android:layout_width="match_parent"
0N/A android:layout_height="wrap_content"
0N/A android:layout_marginLeft="16dp"
0N/A android:layout_marginRight="16dp">
0N/A
0N/A <TableLayout
0N/A android:layout_width="match_parent"
0N/A android:layout_height="wrap_content">
0N/A
0N/A <TableRow
0N/A android:layout_width="match_parent"
0N/A android:layout_height="48dp">
0N/A
0N/A <TextView
0N/A android:layout_width="wrap_content"
0N/A android:layout_height="match_parent"
0N/A android:gravity="center_vertical|right"
0N/A android:paddingRight="8dp"
0N/A android:text="@string/secret"
0N/A android:textStyle="bold" />
0N/A
0N/A <EditText
0N/A android:id="@+id/secret"
0N/A android:layout_width="match_parent"
0N/A android:layout_height="match_parent"
0N/A android:layout_weight="1"
0N/A android:digits="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ234567="
0N/A android:hint="(Base32)"
0N/A android:inputType="textVisiblePassword|textCapCharacters|textNoSuggestions"
0N/A android:textAppearance="?android:attr/textAppearanceSmall" />
0N/A </TableRow>
0N/A
0N/A <TableRow
0N/A android:layout_width="match_parent"
0N/A android:layout_height="48dp">
0N/A
0N/A <TextView
0N/A android:layout_width="wrap_content"
0N/A android:layout_height="match_parent"
0N/A android:gravity="center_vertical|right"
0N/A android:paddingRight="8dp"
0N/A android:text="@string/type"
0N/A android:textStyle="bold" />
0N/A
0N/A <RadioGroup
0N/A android:layout_width="match_parent"
0N/A android:layout_height="match_parent"
0N/A android:layout_weight="1"
0N/A android:orientation="horizontal">
0N/A
0N/A <RadioButton
0N/A android:id="@+id/totp"
0N/A android:layout_width="match_parent"
0N/A android:layout_height="match_parent"
0N/A android:layout_weight="1"
0N/A android:checked="true"
0N/A android:text="TOTP" />
0N/A
0N/A <RadioButton
0N/A android:id="@+id/hotp"
0N/A android:layout_width="match_parent"
0N/A android:layout_height="match_parent"
0N/A android:layout_weight="1"
0N/A android:text="HOTP" />
0N/A </RadioGroup>
0N/A </TableRow>
0N/A
0N/A <TableRow
0N/A android:layout_width="match_parent"
0N/A android:layout_height="48dp">
0N/A
0N/A <TextView
0N/A android:layout_width="wrap_content"
0N/A android:layout_height="match_parent"
0N/A android:gravity="center_vertical|right"
0N/A android:paddingRight="8dp"
0N/A android:text="@string/digits"
0N/A android:textStyle="bold" />
0N/A
0N/A <RadioGroup
0N/A android:layout_width="match_parent"
0N/A android:layout_height="match_parent"
0N/A android:layout_weight="1"
0N/A android:orientation="horizontal">
0N/A
0N/A <RadioButton
0N/A android:id="@+id/digits6"
0N/A android:layout_width="match_parent"
0N/A android:layout_height="match_parent"
0N/A android:layout_weight="1"
0N/A android:checked="true"
0N/A android:text="6" />
0N/A
0N/A <RadioButton
0N/A android:id="@+id/digits8"
0N/A android:layout_width="match_parent"
0N/A android:layout_height="match_parent"
0N/A android:layout_weight="1"
0N/A android:text="8" />
0N/A </RadioGroup>
0N/A </TableRow>
0N/A
0N/A <TableRow
0N/A android:layout_width="match_parent"
0N/A android:layout_height="48dp">
0N/A
0N/A <TextView
0N/A android:layout_width="wrap_content"
0N/A android:layout_height="match_parent"
android:gravity="center_vertical|right"
android:paddingRight="8dp"
android:text="@string/algorithm"
android:textStyle="bold" />
<Spinner
android:id="@+id/algorithm"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:entries="@array/algorithms" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="48dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical|right"
android:paddingRight="8dp"
android:text="@string/interval"
android:textStyle="bold" />
<EditText
android:id="@+id/interval"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:inputType="number"
android:text="30" />
</TableRow>
<TableRow
android:id="@+id/counter_row"
android:layout_width="match_parent"
android:layout_height="48dp"
android:visibility="gone">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical|right"
android:paddingRight="8dp"
android:text="@string/counter"
android:textStyle="bold" />
<EditText
android:id="@+id/counter"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:inputType="numberDecimal"
android:text="0" />
</TableRow>
</TableLayout>
</ScrollView>
</LinearLayout>
<View style="@style/Divider" />
<LinearLayout style="@style/Dialog.Button.Layout">
<Button
android:id="@+id/cancel"
style="@style/Dialog.Button"
android:text="@android:string/cancel" />
<Button
android:id="@+id/add"
style="@style/Dialog.Button"
android:text="@string/add" />
</LinearLayout>
</LinearLayout>