Android View继承关系

        view是Android中所有控件的基类,不管是button,还是Text View,或复杂的布局RelativeLayout和ListView,它们的基类,都是View,它是界面层控件的一个抽象。通过VIewGroup可以看出,ViewGroup中含有多个View,但它也是继承自View,所以,View可以是一个单独的控件,也可以是多个控件组成的一组控件。

        View的继承关系如下,其中第一列直接继承View类:

TextView

文本框

EditText

文本输入编辑框

ExtractEditText
AutoCompleteTextViewAppCompatAutoCompleteTextViewSearchAutoComplete
AppCompatEditTextTextInputEditText

Button

按钮

CompoundButton

Switch

开关控件

CheckBox

复选框

AppCompatCheckBox
RadioButtonAppCompatRadioButton
SwitchCompat
ToggleButton
AppCompatButton
CheckedTextViewAppCompatCheckedTextView
AppCompatTextViewActionMenuItemView
DigitalClock
DialogTitle
TextClock
Chronometer

ImageView

图像视图

DraweeViewGenericDraweeViewSimpleDraweeView
AppCompatImageViewOverflowMenuButton
AppCompatImageViewOverflowMenuButton

ImageButton

图像按钮

ZoomButton
VisibilityAwareImageButtonFloatingActionButton
AppCompatImageButton

ProgressBar

进度条

ContentLoadingProgressBar
AbsSeekBarRatingBarAppCompatRatingBar
SeekBar

AppCompatSeekBar

SurfaceViewGLSurfaceView

VideoView

视频视图

TextureView
Space
MediaRouteButton
KeyboardView
ViewStub
ViewStubCompat
AnalogClock
TabItem
ViewGroupLinearLayoutCompatActionMenuView
InnerLayout
ForegroundLinearLayoutNavigationMenuItemView
SearchView
TabView
ActivityChooserView
CoordinatorLayout

LinearLayout

线性布局

AppBarLayout
ButtonBarLayout
ZoomControls
SearchViewMySearchView

TableLayout

表格布局

SLidingTabStrip
TabView
RadioGrop
FitWindowsLinearLayout
TextInputLayout
ActionMenuView
SnackbarLayout
TableRow
ListMenuItemView
TabWidget
NumberPicker
PagerTitleStripPagerTabStrip
FramentBreadCrumbs

FrameLayout

帧布局

CalendarView
FitWindowsFrameLayout
CollapsingToolbarLayout
CollapsibleActionViewWrapper
MediaController
TabHostFragmentTabHost
GestureOverlayView
DataPicker
ScrimInsetsFrameLayoutNavigationView
HorizontalScrollViewTabLayout
ScrollingTabContainerView
ActionBarContainer
ScrollView
AppWidgetHostView

ViewAnimator

视图动画

ViewSwitcherTextSwitcher
ImageSwitcher
ViewFlipper
TimePicker
NestedScrollView
ContentFrameLayoutListMenuDecorView
NoSaveStateFrameLayout

ConstraintLayout

约束布局

WebView

RelativeLayout

相对布局

TwoLineListItem
DialerFilter
SlidingDrawer
AdapterViewAdapterViewAnimatorStackView
AdapterViewFlipper
AbsSpinnerGallery
Spinner
AbsListView

GridView

网格视图

ListView

列表视图

ExpandedMenuView
DropDownListView
ExpandableListView
AbsActionBarViewActionBarContextView
DrawerLayout
TvView
ActionBarOverlayLayout
SwipeRefreshLayout
SlidingPaneLayout
GridLayout

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值