![]() Here is an example for backwards compatibility which includes states and no default background (Transparent):Ĭreate two drawable xml files with the same name, one will be placed in the drawable-v21 folder, and the other in the normal drawable folder. Ripple is only available from Lollipop (Android API 21). Ripple_effect_square2.xml from drawable resource ID #0x7f02017dĪt .loadDrawable(Resources.java:2101)Īt .getDrawable(Resources.java:700)Īt (View.java:15303)Ĭaused by: 1.XmlPullParserException: Binary XML file line # 2: invalid drawable tag rippleĪt .createFromXmlInner(Drawable.java: 933)Īt .createFromXml(Drawable.java: 877)Īt .loadDrawable(Resources.java: 2097)Īt .getDrawable(Resources.java: 700)Īt (View.java: 15303) But it crashes the app on API 19 $NotFoundException: File res / drawable /
0 Comments
Leave a Reply. |