Archived
89 lines
3.7 KiB
XML
89 lines
3.7 KiB
XML
<?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"
|
||
|
|
xmlns:tools="http://schemas.android.com/tools"
|
||
|
|
android:id="@+id/root_layout"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:layout_marginHorizontal="8dp"
|
||
|
|
android:layout_marginVertical="8dp"
|
||
|
|
tools:context=".MainActivity"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:backgroundTint="?attr/colorTintBackground">
|
||
|
|
|
||
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/app_title"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="@string/app_name"
|
||
|
|
android:textSize="26sp"
|
||
|
|
android:textColor="?attr/colorPrimary"
|
||
|
|
android:layout_marginVertical="8dp"
|
||
|
|
android:fontFamily="@font/mono_bold_italic"
|
||
|
|
android:layout_gravity="center_horizontal"
|
||
|
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/button_backup_upload"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:src="@drawable/cloud_upload"
|
||
|
|
android:padding="4dp"
|
||
|
|
android:layout_marginEnd="16dp"
|
||
|
|
app:layout_constraintTop_toTopOf="@id/app_title"
|
||
|
|
app:layout_constraintBottom_toBottomOf="@id/app_title"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
android:visibility="gone"/>
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/button_backup_download"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:src="@drawable/cloud_download"
|
||
|
|
android:padding="4dp"
|
||
|
|
android:layout_marginStart="16dp"
|
||
|
|
app:layout_constraintTop_toTopOf="@id/app_title"
|
||
|
|
app:layout_constraintBottom_toBottomOf="@id/app_title"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
android:visibility="gone"/>
|
||
|
|
|
||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
|
||
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
|
android:id="@+id/constraint_layout"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
|
||
|
|
<com.google.android.material.bottomnavigation.BottomNavigationView
|
||
|
|
android:id="@+id/bottom_nav"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
app:menu="@menu/nav_items"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
|
app:labelVisibilityMode="selected"/>
|
||
|
|
|
||
|
|
<!-- android:background="?attr/colorPrimary"-->
|
||
|
|
<!-- app:itemIconTint="@color/bottom_nav_color"-->
|
||
|
|
<!-- app:itemTextColor="@color/bottom_nav_color"-->
|
||
|
|
|
||
|
|
<androidx.fragment.app.FragmentContainerView
|
||
|
|
android:id="@+id/fragment_container"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="0dp"
|
||
|
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
|
app:layout_constraintBottom_toTopOf="@id/bottom_nav"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
||
|
|
|
||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|