I'm working on a project that unfortunately hasn't been migrated to Android Studio yet. I want to utilize the floating action button in Google's new support.design library but I can't manage to get it included in my project.
I updated the support libraries in the Android SDK Manager.
First, I tried importing the library into Eclipse and adding it as a dependency using Project → Properties → Android on my app but the design project isn't showing up as a library project.
Then I tried copying the .jar form the
/libs/
directory of the design library and including that in my project. That allowed me toimport android.support.design.widget.FloatingActionButton;
but when I ran the app it crashed because it could not find the resourceandroid.support.design.widget.FloatingActionButton
and couldn't inflate the XML.Next, I tried adding the imported design project to the build path of the app but I had the same issue as above.
Then I tried adding the JAR from the build path tool, but again I ran into the XML issue.
I tried adding project from my Android SDK's folder as an external class folder but that didn't work.
I'm out of ideas. I realize we should be using Android Studio by now but there's nothing I can do about that. Does anyone know how I could get this working in Eclipse?