habitica-android/Habitica/res/layout/main_navigation_view.xml

120 lines
5.2 KiB
XML
Raw Normal View History

2019-06-06 12:33:29 +00:00
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-07-22 13:14:41 +00:00
tools:parentTag="android.widget.RelativeLayout"
2020-09-04 16:17:34 +00:00
tools:background="@color/offset_background">
2019-06-06 12:33:29 +00:00
<LinearLayout
2019-06-06 15:13:50 +00:00
android:id="@+id/bottom_navigation_background"
2019-06-06 12:33:29 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-06-06 15:13:50 +00:00
android:layout_alignParentBottom="true"
2020-12-14 17:21:56 +00:00
android:layout_alignTop="@id/item_wrapper"
android:layoutDirection="ltr">
2019-06-06 12:33:29 +00:00
<View
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
2019-08-07 08:29:58 +00:00
android:background="?barColor" />
<LinearLayout
2021-01-27 14:19:34 +00:00
android:id="@+id/cutout_wrapper"
android:layout_width="wrap_content"
2020-07-22 13:14:41 +00:00
android:layout_height="wrap_content"
android:orientation="vertical">
2020-09-04 16:17:34 +00:00
<ImageView
android:id="@+id/cutout_background"
android:layout_width="wrap_content"
android:layout_height="62dp"
android:src="@drawable/bottom_navigation_inset"
android:layout_gravity="top"/>
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?barColor" />
2020-09-04 16:17:34 +00:00
</LinearLayout>
2019-06-06 12:33:29 +00:00
<View
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
2019-08-07 08:29:58 +00:00
android:background="?barColor" />
2019-06-06 12:33:29 +00:00
</LinearLayout>
<LinearLayout
android:id="@+id/item_wrapper"
2019-06-06 12:33:29 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-07-22 13:14:41 +00:00
android:minHeight="48dp"
2020-09-15 07:28:34 +00:00
android:layout_alignParentBottom="true">
2019-06-06 12:33:29 +00:00
<com.habitrpg.android.habitica.ui.views.navigation.BottomNavigationItem
android:id="@+id/habits_tab"
2019-06-06 12:33:29 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:title="@string/habits"
2020-09-17 11:23:27 +00:00
app:iconDrawable="@drawable/icon_habits"
app:selectedIconDrawable="@drawable/icon_habits_selected"
2020-09-15 07:28:34 +00:00
android:paddingTop="@dimen/spacing_small"
android:paddingBottom="@dimen/spacing_small"/>
2019-06-06 12:33:29 +00:00
<com.habitrpg.android.habitica.ui.views.navigation.BottomNavigationItem
android:layout_width="0dp"
android:id="@+id/dailies_tab"
2019-06-06 12:33:29 +00:00
android:layout_height="wrap_content"
android:layout_weight="1"
app:title="@string/dailies"
2020-09-17 11:23:27 +00:00
app:iconDrawable="@drawable/icon_dailies"
app:selectedIconDrawable="@drawable/icon_dailies_selected"
2020-09-15 07:28:34 +00:00
android:paddingTop="@dimen/spacing_small"
android:paddingBottom="@dimen/spacing_small"/>
2019-06-06 12:33:29 +00:00
<androidx.legacy.widget.Space
2021-01-27 14:19:34 +00:00
android:id="@+id/cutout_space"
2019-06-06 15:13:50 +00:00
android:layout_width="50dp"
2019-06-06 12:33:29 +00:00
android:layout_height="wrap_content" />
<com.habitrpg.android.habitica.ui.views.navigation.BottomNavigationItem
android:id="@+id/todos_tab"
2019-06-06 12:33:29 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:title="@string/todos"
2020-09-17 11:23:27 +00:00
app:iconDrawable="@drawable/icon_todos"
app:selectedIconDrawable="@drawable/icon_todos_selected"
2020-09-15 07:28:34 +00:00
android:paddingTop="@dimen/spacing_small"
android:paddingBottom="@dimen/spacing_small"/>
2019-06-06 12:33:29 +00:00
<com.habitrpg.android.habitica.ui.views.navigation.BottomNavigationItem
android:id="@+id/rewards_tab"
2019-06-06 12:33:29 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
app:title="@string/rewards"
2020-09-17 11:23:27 +00:00
app:iconDrawable="@drawable/icon_rewards"
app:selectedIconDrawable="@drawable/icon_rewards_selected"
2020-09-15 07:28:34 +00:00
android:paddingTop="@dimen/spacing_small"
android:paddingBottom="@dimen/spacing_small"/>
2019-06-06 12:33:29 +00:00
</LinearLayout>
2019-06-06 20:02:54 +00:00
<FrameLayout
android:id="@+id/add_button_background"
2019-06-06 12:33:29 +00:00
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_centerHorizontal="true"
android:layout_alignTop="@id/bottom_navigation_background"
android:layout_marginTop="-39dp"
2019-06-06 20:02:54 +00:00
android:background="@drawable/fab_background">
<ImageButton
android:id="@+id/add_button"
2019-06-06 20:02:54 +00:00
android:layout_width="80dp"
android:layout_height="80dp"
android:src="@drawable/fab_plus"
android:background="@color/transparent"
android:contentDescription="@string/new_task" />
</FrameLayout>
2019-06-06 15:13:50 +00:00
<LinearLayout
android:id="@+id/submenu_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/add_button_background"
2019-06-06 15:13:50 +00:00
android:orientation="vertical"
android:gravity="center_horizontal"/>
2019-06-06 12:33:29 +00:00
</merge>