資源描述:
《Spinner下拉列表》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、Spinner下拉列表extendsAbsSpinnerimplementsDialogInterface.OnClickListenerjava.lang.Object?android.view.View?android.view.ViewGroup?android.widget.AdapterView?android.widget.AbsSpinner?android.widget.SpinnerKnownDirectSubclassesAppCompatSpinnerClassOverviewAvie
2、wthatdisplaysonechildatatimeandletstheuserpickamongthem.TheitemsintheSpinnercomefromtheAdapterassociatedwiththisview.SeetheSpinnersguide.SummaryXMLAttributesAttributeNameRelatedMethodDescriptionandroid:dropDownHorizontalOffsetsetDropDownHorizontalOffset(int)Amountofpixelsbywhichthedropd
3、ownshouldbeoffsethorizontally.android:dropDownSelectorListselectortouseforspinnerMode="dropdown"display.android:dropDownVerticalOffsetsetDropDownVerticalOffset(int)Amountofpixelsbywhichthedropdownshouldbeoffsetvertically.android:dropDownWidthsetDropDownWidth(int)Widthofthedropdowninspin
4、nerMode="dropdown".android:gravitysetGravity(int)Gravitysettingforpositioningthecurrentlyselecteditem.android:popupBackgroundsetPopupBackgroundResource(int)BackgrounddrawabletouseforthedropdowninspinnerMode="dropdown".android:promptTheprompttodisplaywhenthespinner'sdialogisshown.android
5、:spinnerModeDisplaymodeforspinneroptions.[Expand]InheritedXMLAttributesFromclassandroid.widget.AbsSpinnerFromclassandroid.view.ViewGroupFromclassandroid.view.ViewConstantsintMODE_DIALOGUseadialogwindowforselectingspinneroptions.intMODE_DROPDOWNUseadropdownanchoredtotheSpinnerforselectin
6、gspinneroptions.[Expand]InheritedConstantsFromclassandroid.widget.AdapterViewFromclassandroid.view.ViewGroupFromclassandroid.view.View[Expand]InheritedFieldsFromclassandroid.view.ViewPublicConstructorsSpinner(Contextcontext)Constructanewspinnerwiththegivencontext'stheme.Spinner(Contextc
7、ontext,intmode)Constructanewspinnerwiththegivencontext'sthemeandthesuppliedmodeofdisplayingchoices.Spinner(Contextcontext,AttributeSetattrs)Constructanewspinnerwiththegivencontext'sthemeandthesuppliedattributeset.Spinner(Contextcontext,AttributeSetattrs,intdefStyleAttr)Construc