简体   繁体   English

我可以在Eclipse中使用Android SDK Java开发平板电脑吗?

[英]Can i develop for tablet using the Android SDK Java in Eclipse?

I use the Java Android SDK in Eclipse for mobile development, in which I have to choose different versions of Android. 我在Eclipse中使用Java Android SDK进行移动开发,在其中必须选择不同版本的Android。

Can I also develop for tablets that have android using the version already have for mobiles? 我是否也可以为使用Android版本的平板电脑开发手机版?

Eclipse is the standard IDE for developing all Android applications, including phones and tablets. Eclipse是用于开发所有Android应用程序(包括手机和平板电脑)的标准IDE。

If you have an application designed for phones and run it without changes on the tablet via Eclipse, it will run fine, although the UI may not be appropriate for the bigger size (ie Android will attempt to stretch the layouts to fill the screen, which could look strange). 如果您有一个专为手机设计的应用程序,并且可以通过Eclipse在平板电脑上进行更改而无需更改即可运行,尽管UI可能不适用于较大的尺寸(例如,Android会尝试扩展布局以填充屏幕,可能看起来很奇怪)。

You can specify different layouts to use for different types of devices . 您可以指定不同的布局以用于不同类型的设备

In addition you should investigate fragments . 另外,您应该调查碎片 These allow you to manage lifecycles of child views independently of the parent activity, which is very helpful for tablet UIs. 这些使您可以独立于父活动来管理子视图的生命周期,这对于平板电脑用户界面非常有用。

Other than that development for tablets is just like development for phones. 除此之外,平板电脑的开发就像手机的开发一样。

请参阅满足您需求的这份文件

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

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