IT. Expert System.

Android Reference

CalendarView


android.widget

Class CalendarView

    • Method Detail

      • setShownWeekCount

        public void setShownWeekCount(int count)
        Sets the number of weeks to be shown.
        Parameters:
        count - The shown week count.
      • getShownWeekCount

        public int getShownWeekCount()
        Gets the number of weeks to be shown.
        Returns:
        The shown week count.
      • setSelectedWeekBackgroundColor

        public void setSelectedWeekBackgroundColor(int color)
        Sets the background color for the selected week.
        Parameters:
        color - The week background color.
      • getSelectedWeekBackgroundColor

        public int getSelectedWeekBackgroundColor()
        Gets the background color for the selected week.
        Returns:
        The week background color.
      • setFocusedMonthDateColor

        public void setFocusedMonthDateColor(int color)
        Sets the color for the dates of the focused month.
        Parameters:
        color - The focused month date color.
      • getFocusedMonthDateColor

        public int getFocusedMonthDateColor()
        Gets the color for the dates in the focused month.
        Returns:
        The focused month date color.
      • setUnfocusedMonthDateColor

        public void setUnfocusedMonthDateColor(int color)
        Sets the color for the dates of a not focused month.
        Parameters:
        color - A not focused month date color.
      • getUnfocusedMonthDateColor

        public int getUnfocusedMonthDateColor()
        Gets the color for the dates in a not focused month.
        Returns:
        A not focused month date color.
      • setWeekNumberColor

        public void setWeekNumberColor(int color)
        Sets the color for the week numbers.
        Parameters:
        color - The week number color.
      • getWeekNumberColor

        public int getWeekNumberColor()
        Gets the color for the week numbers.
        Returns:
        The week number color.
      • setWeekSeparatorLineColor

        public void setWeekSeparatorLineColor(int color)
        Sets the color for the separator line between weeks.
        Parameters:
        color - The week separator color.
      • getWeekSeparatorLineColor

        public int getWeekSeparatorLineColor()
        Gets the color for the separator line between weeks.
        Returns:
        The week separator color.
      • setSelectedDateVerticalBar

        public void setSelectedDateVerticalBar(int resourceId)
        Sets the drawable for the vertical bar shown at the beginning and at the end of the selected date.
        Parameters:
        resourceId - The vertical bar drawable resource id.
      • setSelectedDateVerticalBar

        public void setSelectedDateVerticalBar(Drawable drawable)
        Sets the drawable for the vertical bar shown at the beginning and at the end of the selected date.
        Parameters:
        drawable - The vertical bar drawable.
      • getSelectedDateVerticalBar

        public Drawable getSelectedDateVerticalBar()
        Gets the drawable for the vertical bar shown at the beginning and at the end of the selected date.
        Returns:
        The vertical bar drawable.
      • setWeekDayTextAppearance

        public void setWeekDayTextAppearance(int resourceId)
        Sets the text appearance for the week day abbreviation of the calendar header.
        Parameters:
        resourceId - The text appearance resource id.
      • getWeekDayTextAppearance

        public int getWeekDayTextAppearance()
        Gets the text appearance for the week day abbreviation of the calendar header.
        Returns:
        The text appearance resource id.
      • setDateTextAppearance

        public void setDateTextAppearance(int resourceId)
        Sets the text appearance for the calendar dates.
        Parameters:
        resourceId - The text appearance resource id.
      • getDateTextAppearance

        public int getDateTextAppearance()
        Gets the text appearance for the calendar dates.
        Returns:
        The text appearance resource id.
      • setEnabled

        public void setEnabled(boolean enabled)
        Description copied from class: View
        Set the enabled state of this view. The interpretation of the enabled state varies by subclass.
        Overrides:
        setEnabled in class View
        Parameters:
        enabled - True if this view is enabled, false otherwise.
      • isEnabled

        public boolean isEnabled()
        Description copied from class: View
        Returns the enabled status for this view. The interpretation of the enabled state varies by subclass.
        Overrides:
        isEnabled in class View
        Returns:
        True if this view is enabled, false otherwise.
      • onConfigurationChanged

        protected void onConfigurationChanged(Configuration newConfig)
        Description copied from class: View
        Called when the current configuration of the resources being used by the application have changed. You can use this to decide when to reload resources that can changed based on orientation and other configuration characterstics. You only need to use this if you are not relying on the normal Activity mechanism of recreating the activity instance upon a configuration change.
        Overrides:
        onConfigurationChanged in class View
        Parameters:
        newConfig - The new resource configuration.
      • getMinDate

        public long getMinDate()
        Gets the minimal date supported by this CalendarView in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.

        Note: The default minimal date is 01/01/1900.

        Returns:
        The minimal supported date.
      • setMinDate

        public void setMinDate(long minDate)
        Sets the minimal date supported by this CalendarView in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.
        Parameters:
        minDate - The minimal supported date.
      • getMaxDate

        public long getMaxDate()
        Gets the maximal date supported by this CalendarView in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.

        Note: The default maximal date is 01/01/2100.

        Returns:
        The maximal supported date.
      • setMaxDate

        public void setMaxDate(long maxDate)
        Sets the maximal date supported by this CalendarView in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.
        Parameters:
        maxDate - The maximal supported date.
      • setShowWeekNumber

        public void setShowWeekNumber(boolean showWeekNumber)
        Sets whether to show the week number.
        Parameters:
        showWeekNumber - True to show the week number.
      • getShowWeekNumber

        public boolean getShowWeekNumber()
        Gets whether to show the week number.
        Returns:
        True if showing the week number.
      • setOnDateChangeListener

        public void setOnDateChangeListener(CalendarView.OnDateChangeListener listener)
        Sets the listener to be notified upon selected date change.
        Parameters:
        listener - The listener to be notified.
      • getDate

        public long getDate()
        Gets the selected date in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.
        Returns:
        The selected date.
      • setDate

        public void setDate(long date,
                   boolean animate,
                   boolean center)
        Sets the selected date in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.
        Parameters:
        date - The date.
        animate - Whether to animate the scroll to the current date.
        center - Whether to center the current date even if it is already visible.
        Throws:
        IllegalArgumentException - of the provided date is before the minimal or after the maximal date.
        See Also:
        setMinDate(long), setMaxDate(long)


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1403 / . Delta: 0.32777 с