public class CalendarView
extends FrameLayout
java.lang.Object | ||||
↳ | android.view.View | |||
↳ | android.view.ViewGroup | |||
↳ | android.widget.FrameLayout | |||
↳ | android.widget.CalendarView |
This class is a calendar widget for displaying and selecting dates. The range of dates supported by this calendar is configurable.
这个类是一个用于显示和选择日期的日历控件。该日历支持的日期范围是可配置的。
The exact appearance and interaction model of this widget may vary between OS versions and themes (e.g. Holo versus Material), but in general a user can select a date by tapping on it and can scroll or fling the calendar to a desired date.
这个控件请求的外观和交互模型可能会在不同在操作系统版本和主题上有所不同(例如,Holo和Material),但通常用户可以通过点击它来选择日期,并可以滚动或fling日历到想要的日期。
嵌套类 | |
---|---|
interface | CalendarView.OnDateChangeListener The callback used to indicate the user changes the date. |
XML属性 | |
---|---|
android:dateTextAppearance | 日历网格中表示“日”的数字的文本外观。 |
android:firstDayOfWeek | 设置Calendar 的一周的第一天。 |
android:focusedMonthDateColor | 已弃用。焦点月份的日期颜色。 May be a reference to another resource, in the form " May be a color value, in the form of " |
android:maxDate | 此日历视图显示的最大日期(mm/dd/yyyy格式)。 |
android:minDate | 此日历视图显示的最小日期(mm/dd/yyyy格式)。 |
android:selectedDateVerticalBar | 已弃用。显示在选定日期两边的竖线drawable。 May be a reference to another resource, in the form " |
android:selectedWeekBackgroundColor | 已弃用。选中的周显示的背景颜色。 May be a reference to another resource, in the form " May be a color value, in the form of " |
android:showWeekNumber | 已弃用。是否显示周数 May be a boolean value, such as " |
android:shownWeekCount | 已弃用。设置该日历组件一共显示几周。 May be an integer value, such as " |
android:unfocusedMonthDateColor | 已弃用。非焦点月份中的日期颜色。 May be a reference to another resource, in the form " May be a color value, in the form of " |
android:weekDayTextAppearance | 日历头部标题中的周/日缩写的文本外观。 |
android:weekNumberColor | 已弃用。周的数字颜色。 May be a reference to another resource, in the form " May be a color value, in the form of " |
android:weekSeparatorLineColor | 已弃用。周与周之间的分隔线的颜色。 May be a reference to another resource, in the form " May be a color value, in the form of " |
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/CalendarView.html