Android7.0中文文档(API)--- CalendarView

完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/CalendarView.html

CalendarView

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日历到想要的日期。

摘要


嵌套类

interfaceCalendarView.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 "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".
也许是一个其他资源,以@[+][package:]type/name的形式引用,或者是一个theme属性,以?[package:]type/name的形式引用。

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".
颜色值,以#rgb#argb#rrggbb,或#aarrggbb的格式。

 
android:maxDate此日历视图显示的最大日期(mm/dd/yyyy格式)。 
android:minDate此日历视图显示的最小日期(mm/dd/yyyy格式)。 
android:selectedDateVerticalBar已弃用。显示在选定日期两边的竖线drawable。

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".
也许是一个其他资源,以@[+][package:]type/name的形式引用,或者是一个theme属性,以?[package:]type/name的形式引用。

 
android:selectedWeekBackgroundColor已弃用。选中的周显示的背景颜色。

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".
也许是一个其他资源,以@[+][package:]type/name的形式引用,或者是一个theme属性,以?[package:]type/name的形式引用。

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".
颜色值,以#rgb#argb#rrggbb,或#aarrggbb的格式。

 
android:showWeekNumber已弃用。是否显示周数

May be a boolean value, such as "true" or "false".
布尔值,例如:“true” or “false”.

 
android:shownWeekCount已弃用。设置该日历组件一共显示几周。

May be an integer value, such as "100".
整型值,例如:100

 
android:unfocusedMonthDateColor已弃用。非焦点月份中的日期颜色。

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".
也许是一个其他资源,以@[+][package:]type/name的形式引用,或者是一个theme属性,以?[package:]type/name的形式引用。

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".
颜色值,以#rgb#argb#rrggbb,或#aarrggbb的格式。

 
android:weekDayTextAppearance日历头部标题中的周/日缩写的文本外观。 
android:weekNumberColor已弃用。周的数字颜色。

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".
也许是一个其他资源,以@[+][package:]type/name的形式引用,或者是一个theme属性,以?[package:]type/name的形式引用。

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".
颜色值,以#rgb#argb#rrggbb,或#aarrggbb的格式。

 
android:weekSeparatorLineColor已弃用。周与周之间的分隔线的颜色。

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".
也许是一个其他资源,以@[+][package:]type/name的形式引用,或者是一个theme属性,以?[package:]type/name的形式引用。

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".
颜色值,以#rgb#argb#rrggbb,或#aarrggbb的格式。

 

继承XML属性

完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/CalendarView.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值