Witam
Stworzyłem fragment w którym jest Bottom navigation View i osobny plik XML z przyciskami:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<item
android:id="@+id/action_item1"
android:icon="@drawable-hdpi/right"
android:title="item_1"
/>
<item
android:id="@+id/action_item2"
android:title="item_2"
/>
</menu>
I oczywiście musiał mi wywalić błąd:
error: '@drawable-hdpi/right' is incompatible with attribute android:icon (attr) reference.
Message{kind=ERROR, text=error: '@drawable-hdpi/right' is incompatible with attribute android:icon (attr) reference., sources=[C:\projekty\Mp3Player\app\src\main\res\layout\bottom_navigation_items.xml:5], original message=, tool name=Optional.of(AAPT)}
nie wiem o co w tym chodzi