简体   繁体   English

将基于标签活动的应用发布到Android 4.0+设备是否明智?

[英]Is it smart to publish tab-activity-based app to Android 4.0+ devices?

I have a TabActivity-based project which I want to publish to Android 4.0+ devices as well. 我有一个TabActivity-based项目,我也想将其发布到Android 4.0+设备上。 When I load it with SDK 4.0+ library, I receive a warning "android.app.TabActivity" is deprecated . 当我用SDK 4.0+库加载它时,我收到一条警告"android.app.TabActivity" is deprecated

We all know that this is due to the fact that fragments are advised for any 3.0+ app, thus making TabActivity deprecated. 我们都知道这是由于建议为任何3.0+应用程序建议使用片段,从而使TabActivity不推荐使用。

Now, is it smart simply to include Android 4.0+ devices to use this app? 现在,仅包含Android 4.0+设备来使用此应用程序是否明智? What are the hidden bombs/bugs? 什么是隐藏的炸弹/虫子?

I am asking this as moving to fragments would require a complete app redesign and 2 months of work. 我问这个问题,因为过渡到片段将需要完整的应用程序重新设计和2个月的工作。

yes, i personally too have used TabActivity where it suited perfectly for the requirement in one of the cases... Fragments adds on the concept and provides more advanced and diff features, but yeah it works very differently from TabActivity. 是的,我个人也曾在其中一种情况下使用过TabActivity,它非常适合需求... Fragments在概念上添加了更多功能,并提供了更高级的和差异功能,但是的,它的工作原理与TabActivity截然不同。

Android recommends Fragments to more of support high variation in screen sizes , but switching from TabActivity to Fragments just to replicate same feature won't be good idea ... Android建议Fragments支持更多的屏幕尺寸变化,但是从TabActivity切换到Fragments只是为了复制相同功能并不是一个好主意...

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

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