The TabWidget tutorial was apparently removed from the Android developer website. Why was this removed? Is there an updated tutorial available?

有帮助吗?

解决方案

I recommend using Navigation Tabs in the Action Bar. If your build target is Pre-Honeycomb you can incorporate navigation tabs into ActionBarSherlock very nicely.

http://developer.android.com/guide/topics/ui/actionbar.html#Tabs

http://developer.android.com/training/implementing-navigation/lateral.html#tabs

http://actionbarsherlock.com/

其他提示

The TabWidget tutorial was removed because it used a TabActivity, a class which is deprecated and should be avoided in favor of Fragments(available on older versions of android through the compatibility package).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top