78 lines
2.9 KiB
XML
78 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".MainActivity">
|
|
|
|
<TextView
|
|
android:id="@+id/infoTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/info_text"
|
|
android:textSize="14sp"
|
|
android:textColor="@android:color/darker_gray"/>
|
|
|
|
<TextView
|
|
android:id="@+id/passwordTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/infoTextView"
|
|
android:layout_centerHorizontal="true"
|
|
android:gravity="center"
|
|
android:layout_marginTop="16dp"
|
|
android:textSize="24sp"
|
|
android:textColor="@android:color/black"
|
|
android:background="@drawable/password_background"
|
|
android:padding="16dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:textIsSelectable="true"/>
|
|
|
|
<Button
|
|
android:id="@+id/generateButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/generate_button_text"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginBottom="16dp"/>
|
|
|
|
<android.widget.NumberPicker
|
|
android:id="@+id/passwordLengthPicker"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="32dp"/>
|
|
|
|
<android.widget.NumberPicker
|
|
android:id="@+id/numPasswordsPicker"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/passwordLengthPicker"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="16dp"/>
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/switchWithoutSpaces"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/numPasswordsPicker"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="16dp"
|
|
android:text="Copy Without Spaces"/>
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/switchSpecialChars"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/switchWithoutSpaces"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="16dp"
|
|
android:text="Add Special Characters"/>
|
|
|
|
</RelativeLayout>
|