mirror of https://github.com/beemdevelopment/Aegis
Replace the FAB with a bottom sheet dialog
This also removes the dependency on ``com.getbase:floatingactionbutton``.pull/651/head
parent
dea13f56f5
commit
e324f649ee
@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:background="?attr/background">
|
||||
<LinearLayout
|
||||
android:id="@+id/fab_scan"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="65dp"
|
||||
android:paddingHorizontal="15dp"
|
||||
android:paddingTop="15dp"
|
||||
android:paddingBottom="7.5dp"
|
||||
android:orientation="horizontal"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:background="?android:attr/selectableItemBackground">
|
||||
<ImageView
|
||||
android:layout_width="25dp"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/ic_qrcode_scan"
|
||||
app:tint="?attr/iconColorPrimary" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/scan"
|
||||
android:textSize="17sp"
|
||||
android:textColor="?attr/primaryText"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginStart="20dp" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/fab_scan_image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="65dp"
|
||||
android:paddingHorizontal="15dp"
|
||||
android:paddingTop="7.5dp"
|
||||
android:paddingBottom="7.5dp"
|
||||
android:orientation="horizontal"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:background="?android:attr/selectableItemBackground">
|
||||
<ImageView
|
||||
android:layout_width="25dp"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/ic_add_photo_24px"
|
||||
app:tint="?attr/iconColorPrimary" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/scan_image"
|
||||
android:textSize="17sp"
|
||||
android:textColor="?attr/primaryText"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginStart="20dp" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/fab_enter"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="65dp"
|
||||
android:paddingHorizontal="15dp"
|
||||
android:paddingTop="7.5dp"
|
||||
android:paddingBottom="15dp"
|
||||
android:orientation="horizontal"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:background="?android:attr/selectableItemBackground">
|
||||
<ImageView
|
||||
android:layout_width="25dp"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/ic_create_black_24dp"
|
||||
app:tint="?attr/iconColorPrimary" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/enter_manually"
|
||||
android:textSize="17sp"
|
||||
android:textColor="?attr/primaryText"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginStart="20dp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="FloatingActionButton">
|
||||
<item name="fab_labelsPosition">right</item>
|
||||
</style>
|
||||
</resources>
|
Loading…
Reference in New Issue