Finally we had vector support for all Android versions,
- bye bye all different PNG size files in different drawable folders!
- bye bye FontAwesome!
- first of all add these dependencies to your module’s build.gradle:
dependencies { . . . compile 'com.android.support:appcompat-v7:23.3.0' compile 'com.android.support:support-vector-drawable:23.3.0'
- add this to your android defaultConfig tag in your module’s build.gradle:
android { . . . defaultConfig { . . . vectorDrawables.useSupportLibrary = true }
- replace all your ImageView with android.support.v7.widget.AppCompatImageView
and ImageButton with android.support.v7.widget.AppCompatImageButton in all your project’s xml layouts. -
replace all android:src attribute in all ImageView with app:srcCompat.
-
now import your vector image using New -> “Vector Asset” submenu by right clicking on your drawable folder…
That’s it!!!