English | Site Directory

Android - An Open Handset Alliance Project

android.widget
public class

android.widget.TabWidget

java.lang.Object
android.view.View Drawable.Callback KeyEvent.Callback
android.view.ViewGroup ViewManager ViewParent
android.widget.LinearLayout
android.widget.TabWidget

Displays a list of tab labels representing each page in the parent's tab collection. The container object for this widget is TabHost. When the user selects a tab, this object sends a message to the parent container, TabHost, to tell it to switch the displayed page. You typically won't use many methods directly on this object. The container TabHost is used to add labels, add the callback handler, and manage callbacks. You might call this object to iterate the list of tabs, or to tweak the layout of the tab list, but most methods should be called on the containing TabHost object.

Also see ViewGroup.LayoutParams for layout attributes.

Summary

XML Attributes inherited from class android.widget.LinearLayout
XML Attributes inherited from class android.view.ViewGroup
XML Attributes inherited from class android.view.View
Constants inherited from class android.widget.LinearLayout
Constants inherited from class android.view.ViewGroup
Constants inherited from class android.view.View
Fields inherited from class android.widget.LinearLayout
Fields inherited from class android.view.ViewGroup
Fields inherited from class android.view.View

Public Constructors

          TabWidget(Context context)
          TabWidget(Context context, AttributeSet attrs, Map inflateParams)
          TabWidget(Context context, AttributeSet attrs, Map inflateParams, int defStyle)

Public Methods

        void  addView(View child)
Adds a child view that already has layout parameters set on it.
        void  setCurrentTab(int index)
        void  setEnabled(boolean enabled)
Set the enabled state of this view.
Methods inherited from class android.widget.LinearLayout
Methods inherited from class android.view.ViewGroup