简体   繁体   English

Android 手机和平板电脑应用屏幕支持

[英]Android Application Screen Support for Phones and Tablets

I am quite new to Android Development.我对 Android 开发很陌生。 I am developing an application that should run on Android-based phones as well as on Android-based Tablets.我正在开发一个应在基于 Android 的手机和基于 Android 的平板电脑上运行的应用程序。 My Question is that how to support multiple screens.我的问题是如何支持多个屏幕。 I have developed a simple list-view application that I am testing on my Galaxy Tab but it is appearing quite smaller on the screen and not coming as a full-screen.我开发了一个简单的列表视图应用程序,我正在我的 Galaxy Tab 上进行测试,但它在屏幕上显得非常小,而不是全屏显示。 I have tried making changes in the manifest file and declared minSdkVersion as 7.. Any advices or examples would be appreciated????我已经尝试在清单文件中进行更改并将 minSdkVersion 声明为 7.. 任何建议或示例将不胜感激????

The Supporting Multiple Screens section of the SDK docs should help you out. SDK 文档的支持多个屏幕部分应该可以帮助您。 Have you looked at it?你看过吗? Pay special attention to the Best Practices section and remember to use wrap_content, fill_parent, or the dp unit for layout dimensions in your views.请特别注意“最佳实践”部分,并记住在视图中使用 wrap_content、fill_parent 或 dp 单位作为布局尺寸。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM