android-compatibility

Difference between android-support-v7-appcompat and android-support-v4

烈酒焚心 提交于 2019-11-26 04:30:32
问题 I wanted to know the difference between android-support-v4.jar and android-support-v7-appcompat.jar . If I want to add appcompat Action Bar in my application do I need to add both android-support-v7-appcompat.jar and android-support-v4.jar or only android-support-v7-appcompat.jar . Also, does android-support-v13.jar has appcompat? 回答1: UPDATE There are many changes done into support library since this question was answered. Good thing is, it is very well documented also. So you must read

Using android vector Drawables on pre Lollipop crash

落花浮王杯 提交于 2019-11-26 03:08:24
问题 I\'m using vector drawables in android prior to Lollipop and these are of some of my libraries and tool versions: Android Studio : 2.0 Android Gradle Plugin : 2.0.0 Build Tools : 23.0.2 Android Support Library : 23.3.0 I added this property in my app level Build.Gradle android { defaultConfig { vectorDrawables.useSupportLibrary = true } } It is also worth mentioning that I use an extra drawable such as LayerDrawable(layer_list) as stated in Android official Blog (link here) for setting