mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-25 11:22:25 +00:00
412 lines
22 KiB
XML
412 lines
22 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
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:fitsSystemWindows="true"
|
|
tools:context="com.beemdevelopment.aegis.ui.EditEntryActivity">
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fitsSystemWindows="true">
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize" />
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="?attr/actionBarSize">
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
android:isScrollContainer="true"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:descendantFocusability="beforeDescendants"
|
|
android:focusableInTouchMode="true">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="250dp">
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
android:id="@+id/profile_drawable"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Aegis.ImageView.Circle" />
|
|
|
|
<com.avito.android.krop.KropView
|
|
android:id="@+id/krop_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:visibility="invisible"
|
|
app:krop_aspectX="1"
|
|
app:krop_aspectY="1"
|
|
app:krop_offset="70dp"
|
|
app:krop_overlayColor="#aadddddd">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_saveImage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|end"
|
|
android:layout_margin="15dp"
|
|
android:src="@drawable/ic_outline_check_24"
|
|
app:tint="?attr/colorOnSurface" />
|
|
|
|
</com.avito.android.krop.KropView>
|
|
|
|
</RelativeLayout>
|
|
<com.google.android.material.divider.MaterialDivider
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
<LinearLayout
|
|
android:id="@+id/layout_basic"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_margin="10dp">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_outline_person_24"
|
|
app:tint="?attr/colorOnSurface"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginEnd="15dp"
|
|
android:layout_gravity="center_vertical"/>
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:hint="@string/name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/text_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textCapSentences"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginStart="44.5dp">
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:hint="@string/issuer"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1">
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/text_issuer"
|
|
android:maxLines="1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textCapSentences"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_outline_group_24"
|
|
app:tint="?attr/colorOnSurface"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginEnd="15dp"
|
|
android:layout_gravity="center_vertical"/>
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/text_group_layout"
|
|
android:hint="@string/group"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/text_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:cursorVisible="false"
|
|
android:inputType="none"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_outline_notes_24"
|
|
app:tint="?attr/colorOnSurface"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginEnd="15dp"
|
|
android:layout_gravity="center_vertical"/>
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:hint="@string/note"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/text_note"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="text|textMultiLine|textCapSentences"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:id="@+id/layout_secret"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_outline_key_24"
|
|
app:tint="?attr/colorOnSurface"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginEnd="15dp"
|
|
android:layout_gravity="center_vertical"/>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
app:passwordToggleTint="?attr/colorOnSurface"
|
|
app:passwordToggleEnabled="true">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/text_secret"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/secret"
|
|
android:inputType="textPassword | textMultiLine"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:id="@+id/layout_pin"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:orientation="horizontal"
|
|
tools:visibility="visible">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_outline_fiber_pin_24"
|
|
app:tint="?attr/colorOnSurface"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginEnd="15dp"
|
|
android:layout_gravity="center_vertical"/>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
app:passwordToggleTint="?attr/colorOnSurface"
|
|
app:passwordToggleEnabled="true">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/text_pin"
|
|
android:maxLength="16"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="numberPassword"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/accordian_header"
|
|
android:focusable="true"
|
|
android:clickable="true">
|
|
|
|
<ImageView
|
|
android:id="@+id/down_btn"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginStart="14dp"
|
|
android:src="@drawable/ic_outline_expand_more_24"
|
|
app:tint="?attr/colorOnSurface" />
|
|
|
|
<TextView
|
|
android:id="@+id/accordian_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_toEndOf="@+id/down_btn"
|
|
android:padding="16dp"
|
|
android:text="@string/advanced"
|
|
android:textStyle="bold" />
|
|
|
|
</RelativeLayout>
|
|
<LinearLayout
|
|
android:id="@+id/layout_advanced"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:visibility="gone"
|
|
android:alpha="0"
|
|
android:layout_marginHorizontal="10dp">
|
|
<LinearLayout
|
|
android:id="@+id/layout_type_algo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_outline_info_24"
|
|
app:tint="?attr/colorOnSurface"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginEnd="15dp"
|
|
android:layout_gravity="center_vertical"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="5dp"
|
|
android:layout_weight="2"
|
|
android:hint="@string/type"
|
|
style="?attr/dropdownStyle">
|
|
<AutoCompleteTextView
|
|
android:id="@+id/dropdown_type"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="none"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/dropdown_algo_layout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="2"
|
|
android:hint="@string/algorithm_hint"
|
|
style="?attr/dropdownStyle">
|
|
<AutoCompleteTextView
|
|
android:id="@+id/dropdown_algo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="none" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginStart="44.5dp">
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/text_period_counter_layout"
|
|
android:hint="@string/period_hint"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="5dp"
|
|
android:layout_weight="1">
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/text_period_counter"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="text"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/text_digits_layout"
|
|
android:hint="@string/digits"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1">
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/text_digits"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="text"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:id="@+id/layout_usage_count"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:weightSum="2"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_counter_black_24"
|
|
app:tint="?attr/colorOnSurface"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginEnd="15dp"
|
|
android:layout_gravity="center_vertical"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:hint="@string/usage_count"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="5dp">
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/text_usage_count"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:enabled="false"
|
|
android:inputType="number"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<TextView
|
|
android:id="@+id/text_last_used"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="16dp"
|
|
android:layout_centerInParent="true"
|
|
android:layout_gravity="bottom|center"
|
|
android:textSize="14sp" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</FrameLayout>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|