navasmdc / MaterialDesignLibrary

This is a library with components of Android L to you use in android 2.2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot solve symbol @drawable/ic_action_new

tkdals1119 opened this issue · comments

I want to make float button

So I add ( compile 'com.github.navasmdc:MaterialDesign:1.4@aar' ) in my gradle.

And add

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:materialdesign="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <com.gc.materialdesign.views.ButtonFloat
            android:id="@+id/buttonFloat"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_alignParentBottom="true"
            android:layout_marginRight="24dp"
            android:background="#1E88E5"
            materialdesign:animate="true"
            materialdesign:iconDrawable="@drawable/ic_action_new"/>
    </RelativeLayout>

but 'ic_action_new' is not found..

How can I solve this?

Solved

  • I solved it by adding 'ic_action_new' image in 'drawble' folder