Android7.0中文API -- Spinner
来源:互联网 发布:2017编程学什么语言 编辑:程序博客网 时间:2024/06/05 04:58
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/Spinner.html
Spinner
public class Spinner
extendsAbsSpinner
implements DialogInterface.OnClickListener
A view that displays one child at a time and lets the user pick among them. The items in the Spinner come from theAdapter
associated with this view.
其是一个每次值显示一个子项的视图,让用户可以从中选取。这些在Spinner中的项来自与此视图关联的Adapter
。
See the Spinners guide.
请参考Spinners。
摘要
XML属性
android:dropDownHorizontalOffset
下拉菜单水平偏移的像素数量。 android:dropDownSelector
使用spinnerMode="dropdown"来显示的列表选择器。 android:dropDownVerticalOffset
下拉菜单垂直偏移的像素数量。 android:dropDownWidth
spinnerMode="dropdown"设置的情况下,下拉按钮的宽度。 android:gravity
用于放置当前选中项的重力值设置。 android:popupBackground
背景drawable,其用于spinnerMode="dropdown"设置的情况下的下拉按钮。 android:prompt
spinner对话框显示的提示。 android:spinnerMode
spinner选项的显示模式。 继承XML属性
android.widget.AbsSpinner
android.view.ViewGroup
android.view.View
常量
int
MODE_DIALOG
Use a dialog window for selecting spinner options.
使用一个对话框窗口来选择Spinner的选项。
int
MODE_DROPDOWN
Use a dropdown anchored to the Spinner for selecting spinner options.
使用一个下拉按钮来选择Spinner的选项。
继承常量
android.widget.AdapterView
android.view.ViewGroup
android.view.View
继承字段
android.view.View
Public构造方法
Spinner(Context context)
Constructs a new spinner with the given context's theme.
使用指定的context的主题构造一个新的Spinner。
Spinner(Context context, int mode)
Constructs a new spinner with the given context's theme and the supplied mode of displaying choices.
使用指定的context的主题和指定的显示选项的模式构造一个新的Spinner。
Spinner(Context context, AttributeSet attrs)
Constructs a new spinner with the given context's theme and the supplied attribute set.
使用指定的context的主题和指定的一组属性构造一个新的Spinner。
Spinner(Context context, AttributeSet attrs, int defStyleAttr)
Constructs a new spinner with the given context's theme, the supplied attribute set, and default style attribute.
使用指定的context的主题,指定的一组属性和默认的样式属性构造一个新的Spinner。
Spinner(Context context, AttributeSet attrs, int defStyleAttr, int mode)
Constructs a new spinner with the given context's theme, the supplied attribute set, and default style attribute.
使用指定的context的主题,指定的一组属性和默认的样式属性构造一个新的Spinner。
Spinner(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, int mode)
Constructs a new spinner with the given context's theme, the supplied attribute set, and default styles.
使用指定的context的主题,指定的一组属性和默认的样式构造一个新的Spinner。
Spinner(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, int mode, Resources.Theme popupTheme)
Constructs a new spinner with the given context, the supplied attribute set, default styles, popup mode (one ofMODE_DIALOG
orMODE_DROPDOWN
), and the theme against which the popup should be inflated.
使用指定的context的主题,指定的一组属性,默认的样式,弹出模式(MODE_DIALOG
或MODE_DROPDOWN
之一)和加载(Inflate)的弹出窗口的主题构造一个新的Spinner。
Public方法
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/Spinner.html
- Android7.0中文API -- Spinner
- Android7.0中文API---ImageButton
- Android7.0 中文API -- ZoomButton
- Android7.0中文API --- ImageView
- Android7.0中文API -- ListView
- android7.0中文API -- LinearLayout
- Android7.0中文API -- TableLayout
- Android7.0中文API -- TableRow
- Android7.0中文API -- ZoomControls
- Android7.0中文API -- TabWidget
- Android7.0中文API -- ActionMenuView
- Android7.0中文API -- RadioGroup
- Android7.0中文API -- SearchView
- Android7.0中文API -- SeekBar
- Android7.0中文API -- ProgressBar
- Android7.0中文API --- AbsSeekBar
- Android7.0中文API -- RatingBar
- Android7.0中文API -- AbsSpinner
- vue实例中data使用return包裹
- PYTHON 结巴中文分词工具的基础使用
- 从零到一:用Phaser.js写意地开发小游戏(Chapter 2
- 在Android studio中创建assets目录
- itk中的特征提取算法(二)
- Android7.0中文API -- Spinner
- pushlet工作流程分析
- 练习87
- 同时引入多个jQuery
- python- pandas cumsum用法(求累计次数)
- nginx 下 angular应用 出现错误状态码问题总结
- MediaRecoder
- 【Python学习系列四】Python程序通过hadoop-streaming提交到Hadoop集群执行MapReduce
- 初步理解傅里叶变换