119 lines
4.4 KiB
XML
119 lines
4.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright 2016 Christian Basler
|
|
~
|
|
~ 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.
|
|
-->
|
|
|
|
<android.support.constraint.ConstraintLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingBottom="18dp"
|
|
android:paddingEnd="24dp"
|
|
android:paddingStart="24dp"
|
|
android:paddingTop="18dp">
|
|
|
|
<TextView
|
|
android:id="@+id/description"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/deterministic_address_warning"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:layout_constraintLeft_creator="1"
|
|
tools:layout_constraintTop_creator="1"/>
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
android:id="@+id/label_wrapper"
|
|
android:layout_marginTop="24dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/description">
|
|
|
|
<EditText
|
|
android:id="@+id/label"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/label"/>
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
android:id="@+id/passphrase_wrapper"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/label_wrapper">
|
|
|
|
<EditText
|
|
android:id="@+id/passphrase"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/passphrase"
|
|
android:inputType="textMultiLine"/>
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
android:id="@+id/number_of_identities_wrapper"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/passphrase_wrapper">
|
|
|
|
<EditText
|
|
android:id="@+id/number_of_identities"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ems="10"
|
|
android:hint="@string/number_of_identities"
|
|
android:inputType="number"
|
|
android:text="1"/>
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<Switch
|
|
android:id="@+id/shorter"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/shorter"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/number_of_identities_wrapper"/>
|
|
|
|
<Button
|
|
android:id="@+id/ok"
|
|
style="?android:attr/borderlessButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:text="@string/ok"
|
|
android:textColor="@color/colorAccent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/shorter"/>
|
|
|
|
<Button
|
|
android:id="@+id/dismiss"
|
|
style="?android:attr/borderlessButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/cancel"
|
|
android:textColor="@color/colorAccent"
|
|
app:layout_constraintBottom_toBottomOf="@id/ok"
|
|
app:layout_constraintRight_toLeftOf="@id/ok"/>
|
|
|
|
</android.support.constraint.ConstraintLayout>
|