开发者

ListFragment in Tablet app for android, not using full screen?

Example image here:

ListFragment in Tablet app for android, not using full screen?

Used the tutorial from here:

http://www.kaloer.com/making-your-app-tablet-friendly-3-steps

So I am sure I am missing some setting or line that I just didn't see. So the sides of the image开发者_如何学编程 are right its a tablet emulator skin. Though the main view looks like it is insisting on some lower res version in landscape mode. The really odd thing is I have a layout-xlarge folder that is getting utilized so it "knows" its a large screen to use but isn't using it. Any ideas what I did wrong? Ideally the list would be on the far left and wider and the other side would be much larger as well?

oh and the StudioTab Icon and title would be on the far left too, just cannot figure out what little bit I am missing to make that happen?


Add the following to your maifest.xml file

<supports-screens 
    android:resizeable="true"
    android:smallScreens = "true"
    android:normalScreens = "true"
    android:largeScreens = "true"
    android:xlargeScreens ="true"
    android:anyDensity = "true"/>

Also worth making sure that your layout dimensions units are dp instead of px


Make sure you haven't missed anything from tutorial.

Also, Emulators are not reliable. Views with fragments on emulators doesn't show up as it should. See if you can run it on a real-device.


you have to add

<uses-sdk android:minSdkVersion="8" /> 

to the manifest.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜