I'm still getting the following in the Play Store:
Design your app for tabletsYour Production APK needs to meet the following criteria:
Your APK should include custom drawables assets for common tablet screen densities.
My list of drawable resources is:
./app/src/main/res/drawable-mdpi/ic_media_stop.png 32x32
./app/src/main/res/drawable-hdpi/ic_media_stop.png 48x48
./app/src/main/res/drawable-xhdpi/ic_media_stop.png 64x64
./app/src/main/res/drawable-xxhdpi/ic_media_stop.png 96x96
./app/src/main/res/mipmap-mdpi/ic_launcher.png 48x48
./app/src/main/res/mipmap-hdpi/ic_launcher.png 72x72
./app/src/main/res/mipmap-xhdpi/ic_launcher.png 96x96
./app/src/main/res/mipmap-xxhdpi/ic_launcher.png 144x144
./app/src/main/res/mipmap-xxxhdpi/ic_launcher.png 192x192
All images are 32-bit color.
Any idea why this is? I guess I'm missing something else?
Thanks for ideas so far but still not working... I now have the following (part duplicated) resources. It doesn't need qualified tablet layout does it? Docs don't show minimal setup to satisfy 7 and 10 inch tablet requirements afaics.
./app/src/main/res/drawable-hdpi/ic_media_stop.png
./app/src/main/res/drawable-mdpi/ic_media_stop.png
./app/src/main/res/drawable-sw600dp-hdpi/ic_media_stop.png
./app/src/main/res/drawable-sw600dp-mdpi/ic_media_stop.png
./app/src/main/res/drawable-sw600dp-xhdpi/ic_media_stop.png
./app/src/main/res/drawable-sw600dp-xxhdpi/ic_media_stop.png
./app/src/main/res/drawable-sw720dp-hdpi/ic_media_stop.png
./app/src/main/res/drawable-sw720dp-mdpi/ic_media_stop.png
./app/src/main/res/drawable-sw720dp-xhdpi/ic_media_stop.png
./app/src/main/res/drawable-sw720dp-xxhdpi/ic_media_stop.png
./app/src/main/res/drawable-xhdpi/ic_media_stop.png
./app/src/main/res/drawable-xxhdpi/ic_media_stop.png
./app/src/main/res/mipmap-hdpi/ic_launcher.png
./app/src/main/res/mipmap-mdpi/ic_launcher.png
./app/src/main/res/mipmap-xhdpi/ic_launcher.png
./app/src/main/res/mipmap-xxhdpi/ic_launcher.png
./app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
A drawable resource is a general concept for a graphic that can be drawn to the screen and which you can retrieve with APIs such as getDrawable(int) or apply to another XML resource with attributes such as android:drawable and android:icon . There are several different types of drawables: Bitmap File.
Classic drawable resources such as images are stored in the drawable folder. In contrast, vector drawables are stored in drawable-v24 . For this project, keep the drawable default and click OK. You should now see the New File dialog box.
Drawable myImage = ResourcesCompat. getDrawable(res, R. drawable. my_image, null);
Simply go to project Explorer and change your View from Android to project from drop Down and you are good to go. There you can simply create folder like we do in Eclipse. And in android project view it is hidden but when you switch to project. You can create folder like drawable-hdpi,drawable-xhdpi .
Put your images in below folders for tablets . For the 10-inch Tablets
res/drawable-xlarge-mdpi/
For 7-inch Tablets
res/drawable-large-mdpi/ or res/drawable-large
I hope this may solve your issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With