Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
569 views
in Technique[技术] by (71.8m points)

layout - Why does Android app run in small window on tablet emulator?

I have an Android App, it works properly on android phones. I've downloaded Android 3.0 sdk and created a tablet emulator at 1024x600, using Android 3.0. When I test my app it runs in a small window centered at the top, using about 1/4 of the screen.

What do I have to change in the app, xml files, or manifest to get it to use the whole tablet screen?

As a side note I also have icons for drawable-ldpi, hdpi and mdpi.

Thanks, Gerry

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The earlier sdk's did not have support for the extra large screens, so you need to specify in the manifest a new sdk version. I'll look up the details, but for now a quick fix is to add:

<uses-sdk android:targetSdkVersion="4"/>

to your manifest.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...