Change Upload way

- Add FloatingActionButton for Upload
- Delete Upload Tab
This commit is contained in:
lionel
2021-01-12 12:26:07 +01:00
parent 5c42862398
commit 86ab1ff32f
5 changed files with 62 additions and 128 deletions

View File

@ -31,4 +31,12 @@
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/flotUpload"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@drawable/ic_upload_24" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@ -1,26 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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"
tools:context=".fragment.UploadFragment">
<Button
android:id="@+id/upload"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableStart="@drawable/ic_upload_32"
android:drawablePadding="10dp"
android:paddingLeft="70dp"
android:paddingTop="50dp"
android:paddingRight="70dp"
android:paddingBottom="50dp"
android:text="@string/upload"
android:textSize="18sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.39" />
</androidx.constraintlayout.widget.ConstraintLayout>