114 lines
4.7 KiB
XML
114 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout 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:orientation="vertical"
|
|
tools:context=".activity.fragment.CreateEntry">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:hint="@string/title">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/editTextTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:imeOptions="actionNext"
|
|
android:inputType="text"
|
|
android:maxLines="1"
|
|
android:minLines="1" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/codeInputLayout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/code"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/checkboxProtected"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/editTextCode"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:imeOptions="actionDone"
|
|
android:inputType="text"
|
|
android:maxLines="1"
|
|
android:minLines="1" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
android:id="@+id/checkboxProtected"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:button="@drawable/lock_checkbox"
|
|
android:scaleX="0.40"
|
|
android:scaleY="0.40"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/codeInputLayout"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:hint="@string/format"
|
|
android:labelFor="@id/edit_text_format">
|
|
|
|
<AutoCompleteTextView
|
|
android:id="@+id/edit_text_format"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:focusable="false"
|
|
android:inputType="none" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/imageViewPreview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:contentDescription="@string/barcode_preview"
|
|
android:scaleType="fitCenter" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/btnSave"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_margin="24dp"
|
|
android:contentDescription="@string/save"
|
|
app:fabCustomSize="46dp"
|
|
app:maxImageSize="32dp"
|
|
app:srcCompat="@drawable/save" />
|
|
</RelativeLayout>
|