426 lines
16 KiB
XML
426 lines
16 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/context-auto"
|
|
android:fitsSystemWindows="true"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:background="?android:attr/colorBackground">
|
|
<LinearLayout
|
|
android:id="@+id/top"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:orientation="horizontal" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/bottom_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_alignParentBottom="true"
|
|
android:baselineAligned="false">
|
|
|
|
<Button
|
|
android:id="@+id/insert_element"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:layout_alignParentLeft="true"
|
|
android:text="@string/insert_element_here"
|
|
style="@style/BottomBarButton" />
|
|
<Button
|
|
android:id="@+id/cancel_insert_element"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:layout_alignParentRight="true"
|
|
android:text="@string/cancel"
|
|
style="@style/BottomBarButton" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/autofill_infotext"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<TextView android:id="@+id/myinfotext" android:text="@string/autofill_hint"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:layout_margin="6dp"
|
|
android:layout_marginBottom="2dp"
|
|
/>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/autofill_buttons"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:baselineAligned="false">
|
|
|
|
<Button
|
|
android:id="@+id/enable_autofill"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/autofill_enable"
|
|
style="@style/BottomBarButton" />
|
|
<Button
|
|
android:id="@+id/show_autofill_info"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/show_autofill_help"
|
|
style="@style/BottomBarButton" />
|
|
</RelativeLayout>
|
|
|
|
<Button
|
|
android:id="@+id/info_dont_show_autofill_again"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/dont_show_again"
|
|
style="@style/BottomBarButton" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/fingerprint_infotext"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<TextView android:id="@+id/myinfotext" android:text="@string/enable_fingerprint_hint"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:layout_margin="6dp"
|
|
android:layout_marginBottom="2dp"
|
|
/>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/fingerprint_buttons"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:baselineAligned="false">
|
|
|
|
<Button
|
|
android:id="@+id/enable_fingerprint"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/yes"
|
|
style="@style/BottomBarButton" />
|
|
<Button
|
|
android:id="@+id/hide_fingerprint_info"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/no"
|
|
style="@style/BottomBarButton" />
|
|
</RelativeLayout>
|
|
|
|
<Button
|
|
android:id="@+id/info_dont_show_fingerprint_again"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/dont_show_again"
|
|
style="@style/BottomBarButton" />
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/dbreadonly_infotext"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<TextView android:id="@+id/dbreadonly_infotext_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:layout_margin="6dp"
|
|
android:layout_marginBottom="2dp"
|
|
/>
|
|
|
|
<Button
|
|
android:id="@+id/info_dont_show_dbreadonly_again"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/dont_show_again"
|
|
style="@style/BottomBarButton" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/child_db_infotext"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<TextView android:id="@+id/myinfotext" android:text="@string/unconfigured_child_dbs"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:layout_margin="6dp"
|
|
android:layout_marginBottom="2dp"
|
|
/>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/child_db_buttons"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:baselineAligned="false">
|
|
|
|
<Button
|
|
android:id="@+id/configure_child_db"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/configure_child_dbs"
|
|
style="@style/BottomBarButton" />
|
|
</RelativeLayout>
|
|
|
|
<Button
|
|
android:id="@+id/info_dont_show_child_db_again"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/dont_show_again"
|
|
style="@style/BottomBarButton" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/notification_info_android8_infotext"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<TextView android:id="@+id/myinfotext" android:text="@string/IconVisibilityInfo_Android8_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:layout_margin="6dp"
|
|
android:layout_marginBottom="2dp"
|
|
/>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/notification_channels_buttons"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:baselineAligned="false">
|
|
|
|
<Button
|
|
android:id="@+id/configure_notification_channels"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/IconVisibilityInfo_Android8_btnSettings"
|
|
style="@style/BottomBarButton" />
|
|
<Button
|
|
android:id="@+id/ignore_notification_channel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/DontCare"
|
|
style="@style/BottomBarButton" />
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/notification_permission_infotext"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<TextView android:id="@+id/infotext" android:text="@string/PostNotificationsPermissionInfo_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:layout_margin="6dp"
|
|
android:layout_marginBottom="2dp"
|
|
/>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/notification_permissions_buttons"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:baselineAligned="false">
|
|
|
|
<Button
|
|
android:id="@+id/post_notification_button_allow"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/post_notifications_dialog_allow"
|
|
style="@style/BottomBarButton" />
|
|
<Button
|
|
android:id="@+id/post_notification_button_dont_show_again"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/dont_show_again"
|
|
style="@style/BottomBarButton" />
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/infotext"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:orientation="vertical">
|
|
|
|
<TextView android:id="@+id/info_head"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="18sp"
|
|
android:layout_margin="6dp"
|
|
android:layout_marginBottom="2dp"
|
|
/>
|
|
|
|
<TextView android:id="@+id/info_main"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:layout_margin="6dp"
|
|
android:layout_marginBottom="2dp"
|
|
/>
|
|
|
|
<TextView android:id="@+id/info_additional"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:layout_margin="6dp"
|
|
android:layout_marginBottom="2dp"
|
|
/>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/info_buttons"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:baselineAligned="false">
|
|
|
|
<Button
|
|
android:id="@+id/info_ok"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/understand"
|
|
style="@style/BottomBarButton" />
|
|
<Button
|
|
android:id="@+id/info_dont_show_again"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:paddingTop="4dp"
|
|
android:text="@string/dont_show_again"
|
|
style="@style/BottomBarButton" />
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
|
|
<View
|
|
android:id="@+id/divider2"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_above="@id/bottom_bar"
|
|
android:background="#b8b8b8" />
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
android:id="@+id/main_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_above="@id/divider2"
|
|
android:layout_below="@id/top"
|
|
android:fitsSystemWindows="true">
|
|
<fragment
|
|
android:name="keepass2android.GroupListFragment"
|
|
android:id="@+id/list_fragment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/fabCancelAddNew"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="16dp"
|
|
android:layout_gravity="end|bottom|right"
|
|
android:visibility="gone"
|
|
android:src="@drawable/baseline_close_24" />
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/fabAddNew"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end|bottom|right"
|
|
android:layout_margin="16dp"
|
|
android:src="@drawable/baseline_add_24" />
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
android:id="@+id/fabAddNewGroup"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end|bottom|right"
|
|
app:icon="@drawable/baseline_folder_open_24"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginBottom="88dp"
|
|
android:text="@string/add_group"
|
|
android:contentDescription="@string/add_group"
|
|
android:visibility="gone"/>
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
android:id="@+id/fabAddNewEntry"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end|bottom|right"
|
|
app:icon="@drawable/baseline_assignment_add_24"
|
|
android:text="@string/add_entry"
|
|
android:contentDescription="@string/add_entry"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginBottom="160dp"
|
|
android:visibility="gone"/>
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/fabSearch"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end|bottom|right"
|
|
android:src="@drawable/baseline_search_24"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginBottom="88dp"
|
|
android:visibility="gone"/>
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/fabTotpOverview"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end|bottom|right"
|
|
android:src="@drawable/baseline_access_time_24"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginBottom="160dp"
|
|
android:visibility="gone"/>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
</RelativeLayout> |