简体   繁体   English

多屏安卓应用(手机和平板)

[英]Android app for multiple screen(Phones and Tablet)

I have to develop the attached screen for phones,7'' tablet and 10'' tablet.我必须为手机、7 英寸平板电脑和 10 英寸平板电脑开发附加屏幕。 安卓屏幕

Please tell me the following things.请告诉我以下几点。

1.what should be size of background image(in pixels) for phone? 1.手机背景图片的大小(以像素为单位)应该是多少?

2.In which drawable folder i have to keep the background images for phone? 2.在哪个drawable文件夹中我必须保留手机的背景图片?

3.what should be size of background image(in pixels) for 7'' tablet 3. 7 英寸平板电脑的背景图像大小(以像素为单位)应该是多少

4.In which drawable folder i have to keep the background image for 7'' tablet? 4.我必须在哪个可绘制文件夹中保留 7 英寸平板电脑的背景图像?

5.what should be size of background image(in pixels) for 10'' tablet? 5. 10 英寸平板电脑的背景图像大小(以像素为单位)应该是多少?

6.In which drawable folder i have to keep the background image(in pixels) for 7'' tablet? 6.我必须在哪个可绘制文件夹中保留 7 英寸平板电脑的背景图像(以像素为单位)?

since there is same layout(final output same) for phone ,7'' tablet and 10'' tablet so i am using the one single layout file(activity_main.xml) which is kept inside layout folder if i also need to make change here then please suggest.因为手机、7'' 平板电脑和 10'' 平板电脑有相同的布局(最终输出相同),所以我使用一个单独的布局文件(activity_main.xml),如果我还需要在此处进行更改,该文件保存在布局文件夹中那么请建议。

Use size qualifiers to support multiple devices使用大小限定符来支持多个设备

For your layouts
For phone layout-sw320dp
For 7 inch tablet layout-sw600dp
For 10 inch tablet layout-sw720dp

For your images
For phone drawable-sw320dp
For 7 inch tablet drawable-sw600dp
For 10 inch tablet drawable-sw720dp

For your string,dimen,theme etc
For phone values-sw320dp
For 7 inch tablet values-sw600dp
For 10 inch tablet values-sw720dp

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

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