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"
|
|
|
|
|
tools:parentTag="android.widget.RelativeLayout">
|
|
|
|
|
|
|
|
|
|
<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"
|
2019-08-29 16:31:11 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-06-06 15:13:50 +00:00
|
|
|
android:layout_alignParentBottom="true"
|
2020-05-04 15:25:14 +00:00
|
|
|
android:layout_alignTop="@id/item_wrapper">
|
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-08-29 16:31:11 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical">
|
2019-06-06 12:33:29 +00:00
|
|
|
<ImageView
|
2019-08-07 08:29:58 +00:00
|
|
|
android:id="@+id/cutout_background"
|
2019-06-06 12:33:29 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/bottom_navigation_inset"/>
|
2019-08-29 16:31:11 +00:00
|
|
|
<View
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="?barColor" />
|
|
|
|
|
</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
|
2019-08-29 16:31:11 +00:00
|
|
|
android:id="@+id/item_wrapper"
|
2019-06-06 12:33:29 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-08-29 16:31:11 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:minHeight="62dp"
|
2019-06-06 15:13:50 +00:00
|
|
|
android:layout_alignParentBottom="true"
|
2019-08-29 16:31:11 +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/tab_habits"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
app:title="@string/habits"
|
|
|
|
|
app:iconDrawable="@drawable/icon_habits_selected"/>
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.navigation.BottomNavigationItem
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:id="@+id/tab_dailies"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
app:title="@string/dailies"
|
|
|
|
|
app:iconDrawable="@drawable/icon_dailies_selected"/>
|
|
|
|
|
<androidx.legacy.widget.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/tab_todos"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
app:title="@string/todos"
|
|
|
|
|
app:iconDrawable="@drawable/icon_todos_selected"/>
|
|
|
|
|
<com.habitrpg.android.habitica.ui.views.navigation.BottomNavigationItem
|
|
|
|
|
android:id="@+id/tab_rewards"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
app:title="@string/rewards"
|
|
|
|
|
app:iconDrawable="@drawable/icon_rewards_selected"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
2019-06-06 20:02:54 +00:00
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/add_wrapper"
|
2019-06-06 12:33:29 +00:00
|
|
|
android:layout_width="80dp"
|
|
|
|
|
android:layout_height="80dp"
|
|
|
|
|
android:layout_centerHorizontal="true"
|
2019-08-29 16:31:11 +00:00
|
|
|
android:layout_alignTop="@id/bottom_navigation_background"
|
2019-08-30 12:25:40 +00:00
|
|
|
android:layout_marginTop="-39dp"
|
2019-06-06 20:02:54 +00:00
|
|
|
android:background="@drawable/fab_background">
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/add"
|
|
|
|
|
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"
|
2019-06-06 20:02:54 +00:00
|
|
|
android:layout_above="@id/add_wrapper"
|
2019-06-06 15:13:50 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:gravity="center_horizontal"/>
|
2019-06-06 12:33:29 +00:00
|
|
|
</merge>
|