Android Study Notes (27): Calendar view Calendar Analysis

Source: Internet
Author: User

Android Study Notes (27): Calendar view Calendar Analysis

The calendar view CalendarView can be used to display and select a date.

You can call setOnDateChangedListener () to bind the event listener.

Common XML attributes and related methods:

XML attributes

Related Methods

Description

Android: dateTextAppearance

SetDateTextAppearance (int)

Set the eyes of the date text in the calendar View

Android: firstDayOfWeek

SetFirstDayOfWeek (int)

Set the first day of each week

Android: focusedMonthDateColor

SetFocusedMonthDateColor (int)

Set the date color of the month in which the focus is obtained.

Android: maxDate

SetMaxDate (long)

Set the supported maximum date, and specify the maximum date in mm/dd/yyyy format

Android: minDate

SetMinDate (long)

Set the supported minimum date, and specify the minimum date in mm/dd/yyyy format

Android: selectedDateVerticalBar

SetSelectedDateVerticalBar (int)

Set the drawable corresponding to the dotted line drawn on both sides of the selected date

Android: selectedWeekBackgroundColor

SetSelectedWeekBackgroundColor (int)

Set the background color of the selected week

Android: showWeekNumber

SetShowWeekNumber (boolean)

Set whether to display the week

Android: shownWeekCount

SetShownWeekCount (int)

Set the number of weeks displayed

Android: unfocusedMonthDateColor

SetUnfocusedMonthDateColor (int)

Set the color of the text with no focus month or date

Android: weekDayTextAppearance

SetWeekDayTextAppearance (int)

Set the text style of the day of the week

Android: weekNumberColor

SetWeekNumberColor (int)

Set the color of the weekly ID

Android: weekSeparatorLineColor

SetWeekSeparatorLineColor (int)

Set the color of the weekly separator.

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.