Re: [android-developers] Re: VectorDrawable/BitmapDrawable in custom view.
This happens because drawable-nodpi is a more specific configuration compared to drawable-v21. (See http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch and qualifier order of precedence in http://developer.android.com/guide/topics/resources/providing-resources.html#table2) I think just naming drawable-v21 to drawable-nodpi-v21 should work as in that case it is more specific than just drawable-nodpi and should be used on API=21. On Wednesday, 25 February 2015 21:45:17 UTC+2, Nathan wrote: Naming the folders drawable-nodpi-v17 and drawable-nodpi-v21 did do what I want it to do. Now it looks so much nicer on Android 5.0 than on 4.4. Nathan On Monday, February 23, 2015 at 2:17:30 PM UTC-8, Sérgio Faria wrote: Maybe if you move face.png to drawable-nodpi-v17 it will work If it doesn't work you can use the inflate method to force it. 2015-02-23 21:44 GMT+00:00 Nathan nathan@gmail.com: No ideas? In Android Wear, it is definitely using the vector drawable. In Nexus, 9, it is definitely using a raster one and there appears to be now way to force it. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Re: VectorDrawable/BitmapDrawable in custom view.
Naming the folders drawable-nodpi-v17 and drawable-nodpi-v21 did do what I want it to do. Now it looks so much nicer on Android 5.0 than on 4.4. Nathan On Monday, February 23, 2015 at 2:17:30 PM UTC-8, Sérgio Faria wrote: Maybe if you move face.png to drawable-nodpi-v17 it will work If it doesn't work you can use the inflate method to force it. 2015-02-23 21:44 GMT+00:00 Nathan nathan@gmail.com javascript:: No ideas? In Android Wear, it is definitely using the vector drawable. In Nexus, 9, it is definitely using a raster one and there appears to be now way to force it. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: VectorDrawable/BitmapDrawable in custom view.
No ideas? In Android Wear, it is definitely using the vector drawable. In Nexus, 9, it is definitely using a raster one and there appears to be now way to force it. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Re: VectorDrawable/BitmapDrawable in custom view.
Maybe if you move face.png to drawable-nodpi-v17 it will work If it doesn't work you can use the inflate method to force it. 2015-02-23 21:44 GMT+00:00 Nathan nathan.d.mel...@gmail.com: No ideas? In Android Wear, it is definitely using the vector drawable. In Nexus, 9, it is definitely using a raster one and there appears to be now way to force it. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.