I would like my Android app to be compatible with as many devices as humanly possible, so naturally I would like to try to make it ready for all of the new incoming tablets. Unfortunately when I add :
android:xlargeScreens="true"
To my Manifest, it gives me this error :
error:No resource identifier found for attribute "xlargeScreens" in package 'android'
Now I'm fairly new to all of this yet, but from what I've read this has something to do with my min/target SDK's being too low to support this, being a brand new feature and all. I did try raising my target SDK up since I thought that wasn't a problem, but that made most of my code "unable to be resolved". I'm sure that makes sense to those of you that have been around Android a little longer than myself, but what I'm really wondering is if there is a way for me to enable support for "xlargeScreens".
Perhaps there is some other way, or maybe it's not even necessary to have that line to allow it to work with them. Perhaps because it's a new addition I've h开发者_如何学运维ad trouble finding anything that answered this for me, so any suggestions would be great. Thank you for your help!
This attribute was introduced in API Level 9. Check this link http://developer.android.com/guide/topics/manifest/supports-screens-element.html#xlarge
The android manifest tag android:xlargeScreens="true" does not seem to be recognized anymore, but it does not matter if you have layout-xlarge folder. Also, xlarge is now SDK 11 stuff for honeycomb, so its a whole big new paradigm.
I suggest forgiving google for occasional inconsistencies in a fast moving digital world.
I had a similar problem. My widget was not listed in a 3.2 tablet device.
These following options were sufficient:
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true"
精彩评论