Я хочу имитировать меню, как показано на рисунке.
Пробовал с помощью компиляции 'com.github.armcha: SpaceNavigationView: 1.6.0', но устарел и не хочу изменять весь код моей активности по умолчанию с видом снизу навигации.
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activities.MainActivity">
<include
layout="@layout/content_main"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/nav_view"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
/>
<!-- app:layout_constraintTop_toBottomOf="@+id/appBarLayout"-->
<android.support.design.widget.BottomNavigationView
android:id="@+id/nav_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginEnd="5dp"
android:layout_marginBottom="5dp"
android:background="@drawable/rett_arr_blu"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/bottom_nav_menu"
app:labelVisibilityMode="unlabeled"
/>
</android.support.constraint.ConstraintLayout>
bottom_nav_menu.xml
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/navigation_home"
android:icon="@drawable/ic_home_black_24dp"
android:iconTint="@android:color/white"
android:title="@string/title_home" />
<item
android:id="@+id/navigation_news"
android:icon="@drawable/ic_notifications_black_24dp"
android:title="@string/title_news" />
<item
android:id="@+id/navigation_mappa"
android:icon="@drawable/ic_map_black_24dp"
android:title="@string/title_mappa" />
<item
android:id="@+id/navigation_convenzioni"
android:icon="@drawable/ic_convention"
android:title="@string/title_convenzioni" />
<item
android:id="@+id/navigation_altro"
android:icon="@drawable/ic_altro"
android:iconTint="@android:color/white"
android:title="@string/title_altro" />
</menu>
Результат должен быть таким, как показано в этом хранилище: armcha / Space-Navigation-View. Поиск по Google и найти его ...