Вопрос

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