64 lines
2.1 KiB
XML
64 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<!-- focusable and related properties to workaround http://stackoverflow.com/q/16182331-->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:descendantFocusability="beforeDescendants"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp">
|
|
|
|
<TextView
|
|
style="@style/SectionHeader"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/section_keys" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/view_key_subkeys"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
<ViewAnimator
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:id="@+id/view_key_subkey_fab_layout"
|
|
android:inAnimation="@anim/fab_slide_in"
|
|
android:outAnimation="@anim/fab_slide_down">
|
|
|
|
<Space
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/view_key_subkey_fab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="24dp"
|
|
android:src="@drawable/ic_add_white_24dp"
|
|
android:visibility="invisible"
|
|
android:layout_gravity="bottom"
|
|
tools:visibility="visible" />
|
|
|
|
</ViewAnimator>
|
|
|
|
</RelativeLayout>
|