Forum Xamarin.Android

error APT2260: resource android:drawable/ic_add_black_24dp not found.

Hi! why do I get an error?
In activity_main.xml
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@android:drawable/ic_add_black_24dp" />

in Resources\drawable\ic_add_black_24dp.xml




But if i change
app:srcCompat="@android:drawable/ic_add_black_24dp"
to
app:srcCompat="@android:drawable/ic_dialog_email"
all work good.

Best Answer

Answers

  • XamarinFollowerXamarinFollower Member ✭✭

    in Resources\drawable\ic_add_black_24dp.xml:
    <vector android:height="24dp" android:tint="#FFFDFE" android:viewportHeight="24.0" android:viewportWidth="24.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> <path android:fillColor="#FF000000" android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/> </vector>

  • XamarinFollowerXamarinFollower Member ✭✭

    Thank You jezh!

Sign In or Register to comment.