2016-08-29 12:50:41 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-11-04 09:13:19 +00:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2016-08-29 12:50:41 +00:00
|
|
|
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"
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
tools:context="org.y20k.trackbook.MainActivity">
|
|
|
|
|
2018-03-15 12:28:52 +00:00
|
|
|
|
2018-11-04 09:13:19 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2017-11-28 21:02:45 +00:00
|
|
|
android:id="@+id/container"
|
2016-08-29 12:50:41 +00:00
|
|
|
android:layout_width="match_parent"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
|
|
<!-- BUTTON MY LOCATION -->
|
2018-11-04 09:13:19 +00:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2018-01-16 13:27:50 +00:00
|
|
|
android:id="@+id/fabLocationButton"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
2016-12-12 17:52:01 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:clickable="true"
|
2018-01-16 13:27:50 +00:00
|
|
|
android:contentDescription="@string/descr_fab_my_location"
|
2018-03-15 11:11:04 +00:00
|
|
|
android:focusable="true"
|
2018-05-23 09:32:30 +00:00
|
|
|
app:backgroundTint="@color/location_button_background"
|
2017-11-28 21:02:45 +00:00
|
|
|
app:fabSize="mini"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/fabMainButton"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/fabMainButton"
|
2018-02-21 10:47:09 +00:00
|
|
|
app:srcCompat="@drawable/ic_my_location_24dp" />
|
2016-08-29 12:50:41 +00:00
|
|
|
|
|
|
|
|
2018-03-15 12:28:52 +00:00
|
|
|
<!-- SAVE RESUME -->
|
2018-11-04 09:13:19 +00:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2018-03-15 12:28:52 +00:00
|
|
|
android:id="@+id/fabSubMenuButtonSave"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-03-15 11:11:04 +00:00
|
|
|
android:layout_marginBottom="28dp"
|
|
|
|
android:clickable="true"
|
2018-03-15 12:28:52 +00:00
|
|
|
android:contentDescription="@string/descr_fab_sub_menu_button_save"
|
2018-03-15 11:11:04 +00:00
|
|
|
android:focusable="true"
|
2018-03-15 12:28:52 +00:00
|
|
|
app:backgroundTint="@color/trackbook_green"
|
2018-03-15 11:11:04 +00:00
|
|
|
app:fabSize="mini"
|
2018-03-15 12:28:52 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/fabSubMenuButtonClear"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/fabSubMenuButtonClear"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/fabSubMenuButtonClear"
|
|
|
|
app:srcCompat="@drawable/ic_save_white_24dp" />
|
2018-03-15 11:11:04 +00:00
|
|
|
|
2018-11-04 09:13:19 +00:00
|
|
|
<androidx.cardview.widget.CardView
|
2018-03-15 12:28:52 +00:00
|
|
|
android:id="@+id/fabSubMenuLabelSave"
|
2018-03-15 11:11:04 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom|end"
|
2018-03-16 15:34:13 +00:00
|
|
|
android:layout_marginEnd="8dp"
|
2018-01-16 13:27:50 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2018-03-15 11:11:04 +00:00
|
|
|
app:cardBackgroundColor="@color/fab_button_card_background"
|
|
|
|
app:cardCornerRadius="4dp"
|
|
|
|
app:cardElevation="4dp"
|
|
|
|
app:cardUseCompatPadding="true"
|
2018-03-15 12:28:52 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/fabSubMenuButtonSave"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/fabSubMenuButtonSave"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/fabSubMenuButtonSave">
|
2018-03-15 11:11:04 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:paddingBottom="2dp"
|
|
|
|
android:paddingLeft="6dp"
|
|
|
|
android:paddingRight="6dp"
|
|
|
|
android:paddingTop="2dp"
|
2018-03-15 12:28:52 +00:00
|
|
|
android:text="@string/fab_sub_menu_save"
|
2018-03-15 11:11:04 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
android:textColor="@color/fab_button_card_text"
|
|
|
|
android:textStyle="bold" />
|
2018-11-04 09:13:19 +00:00
|
|
|
</androidx.cardview.widget.CardView>
|
2018-03-15 11:11:04 +00:00
|
|
|
|
|
|
|
|
2018-03-15 12:28:52 +00:00
|
|
|
<!-- BUTTON CLEAR -->
|
2018-11-04 09:13:19 +00:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2018-03-15 12:28:52 +00:00
|
|
|
android:id="@+id/fabSubMenuButtonClear"
|
2018-03-15 11:11:04 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="28dp"
|
|
|
|
android:clickable="true"
|
2018-03-15 12:28:52 +00:00
|
|
|
android:contentDescription="@string/descr_fab_sub_menu_button_clear"
|
2018-03-15 11:11:04 +00:00
|
|
|
android:focusable="true"
|
2018-03-15 12:28:52 +00:00
|
|
|
app:backgroundTint="@color/trackbook_blue"
|
2017-11-28 21:02:45 +00:00
|
|
|
app:fabSize="mini"
|
2018-03-15 12:28:52 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/fabSubMenuButtonResume"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/fabSubMenuButtonResume"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/fabSubMenuButtonResume"
|
|
|
|
app:srcCompat="@drawable/ic_clear_white_24dp" />
|
2016-09-16 15:45:10 +00:00
|
|
|
|
2018-11-04 09:13:19 +00:00
|
|
|
<androidx.cardview.widget.CardView
|
2018-03-15 12:28:52 +00:00
|
|
|
android:id="@+id/fabSubMenuLabelClear"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom|end"
|
|
|
|
android:layout_marginEnd="8dp"
|
2018-01-16 13:27:50 +00:00
|
|
|
android:clickable="true"
|
2018-03-15 11:11:04 +00:00
|
|
|
android:focusable="true"
|
2018-02-21 10:47:09 +00:00
|
|
|
app:cardBackgroundColor="@color/fab_button_card_background"
|
2017-11-28 21:02:45 +00:00
|
|
|
app:cardCornerRadius="4dp"
|
|
|
|
app:cardElevation="4dp"
|
|
|
|
app:cardUseCompatPadding="true"
|
2018-03-15 12:28:52 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/fabSubMenuButtonClear"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/fabSubMenuButtonClear"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/fabSubMenuButtonClear">
|
2017-11-28 21:02:45 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="2dp"
|
|
|
|
android:paddingLeft="6dp"
|
|
|
|
android:paddingRight="6dp"
|
|
|
|
android:paddingTop="2dp"
|
2018-03-15 12:28:52 +00:00
|
|
|
android:text="@string/fab_sub_menu_clear"
|
2018-02-21 10:47:09 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
android:textColor="@color/fab_button_card_text"
|
2018-03-15 11:11:04 +00:00
|
|
|
android:textStyle="bold" />
|
2018-11-04 09:13:19 +00:00
|
|
|
</androidx.cardview.widget.CardView>
|
2016-12-12 17:52:01 +00:00
|
|
|
|
2016-09-16 15:45:10 +00:00
|
|
|
|
2018-03-15 12:28:52 +00:00
|
|
|
<!-- BUTTON RESUME -->
|
2018-11-04 09:13:19 +00:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2018-03-15 12:28:52 +00:00
|
|
|
android:id="@+id/fabSubMenuButtonResume"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="16dp"
|
2018-01-16 13:27:50 +00:00
|
|
|
android:clickable="true"
|
2018-03-15 12:28:52 +00:00
|
|
|
android:contentDescription="@string/descr_fab_sub_menu_button_resume"
|
2018-03-15 11:11:04 +00:00
|
|
|
android:focusable="true"
|
2017-11-28 21:02:45 +00:00
|
|
|
app:backgroundTint="@color/trackbook_blue"
|
|
|
|
app:fabSize="mini"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/fabMainButton"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/fabMainButton"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/fabMainButton"
|
2018-03-15 12:28:52 +00:00
|
|
|
app:srcCompat="@drawable/ic_fiber_manual_record_white_24dp" />
|
2017-11-28 21:02:45 +00:00
|
|
|
|
2018-11-04 09:13:19 +00:00
|
|
|
<androidx.cardview.widget.CardView
|
2018-03-15 12:28:52 +00:00
|
|
|
android:id="@+id/fabSubMenuLabelResume"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="8dp"
|
2018-01-16 13:27:50 +00:00
|
|
|
android:clickable="true"
|
2018-03-15 11:11:04 +00:00
|
|
|
android:focusable="true"
|
2018-02-21 10:47:09 +00:00
|
|
|
app:cardBackgroundColor="@color/fab_button_card_background"
|
2017-11-28 21:02:45 +00:00
|
|
|
app:cardCornerRadius="4dp"
|
|
|
|
app:cardElevation="4dp"
|
|
|
|
app:cardUseCompatPadding="true"
|
2018-03-15 12:28:52 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/fabSubMenuButtonResume"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/fabSubMenuButtonResume"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/fabSubMenuButtonResume">
|
2017-11-28 21:02:45 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="2dp"
|
|
|
|
android:paddingLeft="6dp"
|
|
|
|
android:paddingRight="6dp"
|
|
|
|
android:paddingTop="2dp"
|
2018-03-15 12:28:52 +00:00
|
|
|
android:text="@string/fab_sub_menu_resume"
|
2018-02-21 10:47:09 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
android:textColor="@color/fab_button_card_text"
|
2018-03-15 11:11:04 +00:00
|
|
|
android:textStyle="bold" />
|
2018-11-04 09:13:19 +00:00
|
|
|
</androidx.cardview.widget.CardView>
|
2017-11-28 21:02:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- MAIN BUTTON -->
|
2018-11-04 09:13:19 +00:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2017-11-28 21:02:45 +00:00
|
|
|
android:id="@+id/fabMainButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
2018-01-16 13:27:50 +00:00
|
|
|
android:clickable="true"
|
2019-03-05 16:40:13 +00:00
|
|
|
android:contentDescription="@string/descr_fab_main_start"
|
2018-03-15 11:11:04 +00:00
|
|
|
android:focusable="true"
|
2017-11-28 21:02:45 +00:00
|
|
|
app:backgroundTint="@color/trackbook_blue"
|
|
|
|
app:fabSize="normal"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/navigation"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:srcCompat="@drawable/ic_fiber_manual_record_white_24dp" />
|
|
|
|
|
|
|
|
|
|
|
|
<!-- BOTTOM NAVIGATION -->
|
2018-11-04 09:13:19 +00:00
|
|
|
<com.google.android.material.bottomnavigation.BottomNavigationView
|
2017-11-28 21:02:45 +00:00
|
|
|
android:id="@+id/navigation"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2018-02-21 10:47:09 +00:00
|
|
|
android:background="@color/bottom_navigation_background"
|
2018-01-16 13:27:50 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2019-02-06 15:46:18 +00:00
|
|
|
app:elevation="4dp"
|
2017-11-28 21:02:45 +00:00
|
|
|
app:itemIconTint="@drawable/selector_bottom_navigation"
|
|
|
|
app:itemTextColor="@drawable/selector_bottom_navigation"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:menu="@menu/menu_main" />
|
|
|
|
|
2018-03-15 11:11:04 +00:00
|
|
|
|
2018-01-12 16:42:47 +00:00
|
|
|
<org.y20k.trackbook.layout.NonSwipeableViewPager
|
2018-03-20 18:56:00 +00:00
|
|
|
android:id="@+id/fragmentContainer"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/navigation"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2018-01-12 16:42:47 +00:00
|
|
|
|
2018-03-15 12:28:52 +00:00
|
|
|
|
2018-11-04 09:13:19 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2018-03-15 12:28:52 +00:00
|
|
|
|
|
|
|
|
2018-11-04 09:13:19 +00:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
2016-08-29 12:50:41 +00:00
|
|
|
|
|
|
|
|