本文整理汇总了Java中android.text.format.Time.getCurrentTimezone方法的典型用法代码示例。如果您正苦于以下问题:Java Time.getCurrentTimezone方法的具体用法?Java Time.getCurrentTimezone怎么用?Java Time.getCurrentTimezone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.text.format.Time
的用法示例。
在下文中一共展示了Time.getCurrentTimezone方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import android.text.format.Time; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
Log.d("server",String.valueOf(walk_count));
gClient = new GoogleApiClient.Builder(this)
.addApi(Wearable.API)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
gClient.connect();
sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);
registerSensor();
walk_count = 0;
today = new Time(Time.getCurrentTimezone());
today.setToNow();
Log.d("server","service on");
}
示例2: getCurrentTime
import android.text.format.Time; //导入方法依赖的package包/类
/**
* Returns the current time in the time zone that is currently set for the device.
*
* @return An instance of the Time class representing the current moment, specified with second precision
*/
public static Time getCurrentTime() {
Time now = new Time(Time.getCurrentTimezone());
now.setToNow();
return now;
}
示例3: setMonthParams
import android.text.format.Time; //导入方法依赖的package包/类
public void setMonthParams(HashMap<String, Integer> params) {
if (!params.containsKey(VIEW_PARAMS_MONTH) && !params.containsKey(VIEW_PARAMS_YEAR)) {
throw new InvalidParameterException("You must specify month and year for this view");
}
setTag(params);
if (params.containsKey(VIEW_PARAMS_HEIGHT)) {
mRowHeight = params.get(VIEW_PARAMS_HEIGHT);
if (mRowHeight < MIN_HEIGHT) {
mRowHeight = MIN_HEIGHT;
}
}
if (params.containsKey(VIEW_PARAMS_SELECTED_DAY)) {
mSelectedDay = params.get(VIEW_PARAMS_SELECTED_DAY);
}
mMonth = params.get(VIEW_PARAMS_MONTH);
mYear = params.get(VIEW_PARAMS_YEAR);
final Time today = new Time(Time.getCurrentTimezone());
today.setToNow();
mHasToday = false;
mToday = -1;
mCalendar.set(Calendar.MONTH, mMonth);
mCalendar.set(Calendar.YEAR, mYear);
mCalendar.set(Calendar.DAY_OF_MONTH, 1);
mDayOfWeekStart = mCalendar.get(Calendar.DAY_OF_WEEK);
if (params.containsKey(VIEW_PARAMS_WEEK_START)) {
mWeekStart = params.get(VIEW_PARAMS_WEEK_START);
} else {
mWeekStart = mCalendar.getFirstDayOfWeek();
}
mNumCells = Utils.getDaysInMonth(mMonth, mYear);
for (int i = 0; i < mNumCells; i++) {
final int day = i + 1;
if (sameDay(day, today)) {
mHasToday = true;
mToday = day;
}
}
mNumRows = calculateNumRows();
}
示例4: SimpleMonthView
import android.text.format.Time; //导入方法依赖的package包/类
/**
* @param context
* @param typedArray
* @param dataModel
*/
public SimpleMonthView(Context context, TypedArray typedArray, DayPickerView.DataModel dataModel) {
super(context);
Resources resources = context.getResources();
mDayLabelCalendar = Calendar.getInstance();
mCalendar = Calendar.getInstance();
today = new Time(Time.getCurrentTimezone());
today.setToNow();
mDayOfWeekTypeface = resources.getString(R.string.sans_serif);
mMonthTitleTypeface = resources.getString(R.string.sans_serif);
mCurrentDayTextColor = typedArray.getColor(R.styleable.DayPickerView_colorCurrentDay, resources.getColor(R.color.normal_day));
mYearMonthTextColor = typedArray.getColor(R.styleable.DayPickerView_colorYearMonthText, resources.getColor(R.color.normal_day));
mWeekTextColor = typedArray.getColor(R.styleable.DayPickerView_colorWeekText, resources.getColor(R.color.normal_day));
// mDayTextColor = typedArray.getColor(R.styleable.DayPickerView_colorDayName, resources.getColor(R.color.normal_day));
mDayTextColor = typedArray.getColor(R.styleable.DayPickerView_colorNormalDayText, resources.getColor(R.color.normal_day));
mPreviousDayTextColor = typedArray.getColor(R.styleable.DayPickerView_colorPreviousDayText, resources.getColor(R.color.normal_day));
mSelectedDaysBgColor = typedArray.getColor(R.styleable.DayPickerView_colorSelectedDayBackground, resources.getColor(R.color.selected_day_background));
mSelectedDayTextColor = typedArray.getColor(R.styleable.DayPickerView_colorSelectedDayText, resources.getColor(R.color.selected_day_text));
mBusyDaysBgColor = typedArray.getColor(R.styleable.DayPickerView_colorBusyDaysBg, Color.GRAY);
mInValidDaysBgColor = typedArray.getColor(R.styleable.DayPickerView_colorInValidDaysBg, Color.GRAY);
mBusyDaysTextColor = typedArray.getColor(R.styleable.DayPickerView_colorBusyDaysText, resources.getColor(R.color.normal_day));
mInValidDaysTextColor = typedArray.getColor(R.styleable.DayPickerView_colorInValidDaysText, resources.getColor(R.color.normal_day));
// mDrawRect = typedArray.getBoolean(R.styleable.DayPickerView_drawRoundRect, true);
mStringBuilder = new StringBuilder(50);
MINI_DAY_NUMBER_TEXT_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_textSizeDay, resources.getDimensionPixelSize(R.dimen.text_size_day));
TAG_TEXT_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_textSizeTag, resources.getDimensionPixelSize(R.dimen.text_size_tag));
YEAR_MONTH_TEXT_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_textSizeYearMonth, resources.getDimensionPixelSize(R.dimen.text_size_month));
WEEK_TEXT_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_textSizeWeek, resources.getDimensionPixelSize(R.dimen.text_size_day_name));
MONTH_HEADER_SIZE = typedArray.getDimensionPixelOffset(R.styleable.DayPickerView_headerMonthHeight, resources.getDimensionPixelOffset(R.dimen.header_month_height));
DAY_SELECTED_RECT_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_selectedDayRadius, resources.getDimensionPixelOffset(R.dimen.selected_day_radius));
mRowHeight = ((typedArray.getDimensionPixelSize(R.styleable.DayPickerView_calendarHeight,
resources.getDimensionPixelOffset(R.dimen.calendar_height)) - MONTH_HEADER_SIZE - ROW_SEPARATOR) / 6);
isPrevDayEnabled = typedArray.getBoolean(R.styleable.DayPickerView_enablePreviousDay, false);
mInvalidDays = dataModel.invalidDays;
mBusyDays = dataModel.busyDays;
mCalendarTags = dataModel.tags;
mDefTag = dataModel.defTag;
cellCalendar = new SimpleMonthAdapter.CalendarDay();
initView();
}
示例5: setMonthParams
import android.text.format.Time; //导入方法依赖的package包/类
public void setMonthParams(HashMap<String, Integer> params) {
if (!params.containsKey(VIEW_PARAMS_MONTH)
&& !params.containsKey(VIEW_PARAMS_YEAR)) {
throw new InvalidParameterException(
"You must specify month and year for this view");
}
setTag(params);
if (params.containsKey(VIEW_PARAMS_HEIGHT)) {
mRowHeight = params.get(VIEW_PARAMS_HEIGHT);
if (mRowHeight < MIN_HEIGHT) {
mRowHeight = MIN_HEIGHT;
}
}
if (params.containsKey(VIEW_PARAMS_SELECTED_DAY)) {
mSelectedDay = params.get(VIEW_PARAMS_SELECTED_DAY);
}
mMonth = params.get(VIEW_PARAMS_MONTH);
mYear = params.get(VIEW_PARAMS_YEAR);
final Time today = new Time(Time.getCurrentTimezone());
today.setToNow();
mHasToday = false;
mToday = -1;
mCalendar.set(Calendar.MONTH, mMonth);
mCalendar.set(Calendar.YEAR, mYear);
mCalendar.set(Calendar.DAY_OF_MONTH, 1);
mDayOfWeekStart = mCalendar.get(Calendar.DAY_OF_WEEK);
if (params.containsKey(VIEW_PARAMS_WEEK_START)) {
mWeekStart = params.get(VIEW_PARAMS_WEEK_START);
} else {
mWeekStart = mCalendar.getFirstDayOfWeek();
}
mNumCells = Utils.getDaysInMonth(mMonth, mYear);
for (int i = 0; i < mNumCells; i++) {
final int day = i + 1;
if (sameDay(day, today)) {
mHasToday = true;
mToday = day;
}
}
mNumRows = calculateNumRows();
}
示例6: SimpleMonthView
import android.text.format.Time; //导入方法依赖的package包/类
public SimpleMonthView(Context context, TypedArray typedArray , boolean showBooking , boolean monthDayLabels , ArrayList<String> bookingdates) {
super(context);
isMonthDayLabels = monthDayLabels;
isShowBooking = showBooking;
mContext = context;
bookingDateArray = bookingdates;
Resources resources = context.getResources();
mDayLabelCalendar = Calendar.getInstance();
mCalendar = Calendar.getInstance();
today = new Time(Time.getCurrentTimezone());
today.setToNow();
mDayOfWeekTypeface = resources.getString(R.string.sans_serif);
mMonthTitleTypeface = resources.getString(R.string.sans_serif);
mCurrentDayTextColor = typedArray.getColor(R.styleable.DayPickerView_colorCurrentDay, resources.getColor(R.color.normal_day));
mMonthTextColor = typedArray.getColor(R.styleable.DayPickerView_colorMonthName, resources.getColor(R.color.colorMonthTextColor));
mDayTextColor = typedArray.getColor(R.styleable.DayPickerView_colorDayName, resources.getColor(R.color.normal_day));
mDayNumColor = typedArray.getColor(R.styleable.DayPickerView_colorNormalDay, resources.getColor(R.color.normal_day));
mPreviousDayColor = typedArray.getColor(R.styleable.DayPickerView_colorPreviousDay, resources.getColor(R.color.normal_day));
mSelectedDaysBgColor = typedArray.getColor(R.styleable.DayPickerView_colorSelectedDayBackground, resources.getColor(R.color.selected_day_background));
mSelectedDaysColor = typedArray.getColor(R.styleable.DayPickerView_colorSelectedDayBackground, resources.getColor(R.color.selected_day_interval_text));
mMonthTitleBGColor = typedArray.getColor(R.styleable.DayPickerView_colorSelectedDayText, resources.getColor(R.color.selected_day_text));
mWeekDayLineColor = typedArray.getColor(R.styleable.DayPickerView_colorWeekDayLineColor, resources.getColor(R.color.colorWeekDayLineColor));
mWeekEndColor = typedArray.getColor(R.styleable.DayPickerView_colorWeekEndColor, resources.getColor(R.color.colorWeekEndColor));
mMonthPlus3 = (today.month)+3;
mDrawRect = typedArray.getBoolean(R.styleable.DayPickerView_drawRoundRect, false);
mStringBuilder = new StringBuilder(50);
MINI_DAY_NUMBER_TEXT_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_textSizeDay, resources.getDimensionPixelSize(R.dimen.text_size_day));
MONTH_LABEL_TEXT_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_textSizeMonth, resources.getDimensionPixelSize(R.dimen.text_size_month));
MONTH_DAY_LABEL_TEXT_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_textSizeDayName, resources.getDimensionPixelSize(R.dimen.text_size_day_name));
MONTH_HEADER_SIZE = typedArray.getDimensionPixelOffset(R.styleable.DayPickerView_headerMonthHeight, resources.getDimensionPixelOffset(R.dimen.header_month_height));
DAY_SELECTED_CIRCLE_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_selectedDayRadius, resources.getDimensionPixelOffset(R.dimen.selected_day_radius));
mRowHeight = ((typedArray.getDimensionPixelSize(R.styleable.DayPickerView_calendarHeight, resources.getDimensionPixelOffset(R.dimen.calendar_height)) - MONTH_HEADER_SIZE) / 6);
isPrevDayEnabled = typedArray.getBoolean(R.styleable.DayPickerView_enablePreviousDay, true);
mWeekLabels = getResources().getStringArray(R.array.label_calender_week);
initView();
}
示例7: setMonthParams
import android.text.format.Time; //导入方法依赖的package包/类
/**
* Sets all the parameters for displaying this week. The only required
* parameter is the week number. Other parameters have a default value and
* will only update if a new value is included, except for focus month,
* which will always default to no focus month if no value is passed in. See
* {@link #VIEW_PARAMS_HEIGHT} for more info on parameters.
*
* @param params A map of the new parameters, see
* {@link #VIEW_PARAMS_HEIGHT}
*/
public void setMonthParams(HashMap<String, Integer> params) {
if (!params.containsKey(VIEW_PARAMS_MONTH) && !params.containsKey(VIEW_PARAMS_YEAR)) {
throw new InvalidParameterException("You must specify month and year for this view");
}
setTag(params);
// We keep the current value for any params not present
if (params.containsKey(VIEW_PARAMS_HEIGHT)) {
mRowHeight = params.get(VIEW_PARAMS_HEIGHT);
if (mRowHeight < MIN_HEIGHT) {
mRowHeight = MIN_HEIGHT;
}
}
if (params.containsKey(VIEW_PARAMS_SELECTED_DAY)) {
mSelectedDay = params.get(VIEW_PARAMS_SELECTED_DAY);
}
// Allocate space for caching the day numbers and focus values
mMonth = params.get(VIEW_PARAMS_MONTH);
mYear = params.get(VIEW_PARAMS_YEAR);
// Figure out what day today is
final Time today = new Time(Time.getCurrentTimezone());
today.setToNow();
mHasToday = false;
mToday = -1;
mCalendar.set(Calendar.MONTH, mMonth);
mCalendar.set(Calendar.YEAR, mYear);
mCalendar.set(Calendar.DAY_OF_MONTH, 1);
mDayOfWeekStart = mCalendar.get(Calendar.DAY_OF_WEEK);
if (params.containsKey(VIEW_PARAMS_WEEK_START)) {
mWeekStart = params.get(VIEW_PARAMS_WEEK_START);
} else {
mWeekStart = mCalendar.getFirstDayOfWeek();
}
mNumCells = Utils.getDaysInMonth(mMonth, mYear);
for (int i = 0; i < mNumCells; i++) {
final int day = i + 1;
if (sameDay(day, today)) {
mHasToday = true;
mToday = day;
}
}
mNumRows = calculateNumRows();
// Invalidate cached accessibility information.
mTouchHelper.invalidateRoot();
}
示例8: setMonthParams
import android.text.format.Time; //导入方法依赖的package包/类
/**
* Sets all the parameters for displaying this week. The only required
* parameter is the week number. Other parameters have a default value and
* will only update if a new value is included, except for focus month,
* which will always default to no focus month if no value is passed in. See
* {@link #VIEW_PARAMS_HEIGHT} for more info on parameters.
*
* @param params A map of the new parameters, see
* {@link #VIEW_PARAMS_HEIGHT}
*/
public void setMonthParams(HashMap<String, Integer> params) {
if (!params.containsKey(VIEW_PARAMS_MONTH) && !params.containsKey(VIEW_PARAMS_YEAR)) {
throw new InvalidParameterException("You must specify month and year for this view");
}
setTag(params);
// We keep the current value for any params not present
if (params.containsKey(VIEW_PARAMS_HEIGHT)) {
mRowHeight = params.get(VIEW_PARAMS_HEIGHT);
if (mRowHeight < MIN_HEIGHT) {
mRowHeight = MIN_HEIGHT;
}
}
if (params.containsKey(VIEW_PARAMS_SELECTED_DAY)) {
mSelectedDay = params.get(VIEW_PARAMS_SELECTED_DAY);
}
// Allocate space for caching the day numbers and focus values
mMonth = params.get(VIEW_PARAMS_MONTH);
mYear = params.get(VIEW_PARAMS_YEAR);
// Figure out what day today is
final Time today = new Time(Time.getCurrentTimezone());
today.setToNow();
mHasToday = false;
mToday = -1;
mCalendar.set(Calendar.MONTH, mMonth);
mCalendar.set(Calendar.YEAR, mYear);
mCalendar.set(Calendar.DAY_OF_MONTH, 1);
mDayOfWeekStart = mCalendar.get(Calendar.DAY_OF_WEEK);
if (params.containsKey(VIEW_PARAMS_WEEK_START)) {
mWeekStart = params.get(VIEW_PARAMS_WEEK_START);
} else {
mWeekStart = mCalendar.getFirstDayOfWeek();
}
mNumCells = Utils.getDaysInMonth(mMonth, mYear);
for (int i = 0; i < mNumCells; i++) {
final int day = i + 1;
if (sameDay(day, today)) {
mHasToday = true;
mToday = day;
}
}
mNumRows = calculateNumRows();
// Invalidate cached accessibility information.
mTouchHelper.invalidateRoot();
}
示例9: adjustStartTime
import android.text.format.Time; //导入方法依赖的package包/类
public void adjustStartTime(Context context) {
final String SP_NAME = "InitialStartupSP";
final String SP_KEY_INITIAL_SETUP_DONE = "InitialSetupDone";
final String SP_KEY_INITIAL_START_TIME = "InitialStartTime";
final String SP_KEY_INITIAL_TIMEZONE = "InitialTimezone";
final String SP_KEY_INITIAL_START_TIME_ZERO_HOUR = "InitialStartTimeZeroHour";
SharedPreferences mPrefs;
mPrefs = context.getSharedPreferences(SP_NAME, Context.MODE_PRIVATE);
Boolean initialSetupDone = mPrefs.getBoolean(SP_KEY_INITIAL_SETUP_DONE, false);
if (!initialSetupDone) {
Timber.d("Initial startup. Skipping.");
return;
} else {
Timber.d("Adjusting...");
Long initialZeroHour = mPrefs.getLong(SP_KEY_INITIAL_START_TIME_ZERO_HOUR, -1);
if (Long.valueOf(initialZeroHour) == Long.valueOf(-1)) {
Long initialStartTime = mPrefs.getLong(SP_KEY_INITIAL_START_TIME, 0);
String userTimezone = mPrefs.getString(SP_KEY_INITIAL_TIMEZONE, "-1");
if (userTimezone == "-1") {
Timber.d("Gotta specify timezone first");
userTimezone = Time.getCurrentTimezone();
}
Timber.d("Timezone: " + userTimezone);
Timber.d("Initial start time: " + Long.toString(initialStartTime));
DateTime startTimeBeginning = new DateTime(Long.valueOf(initialStartTime), DateTimeZone.UTC);
DateTime todayStart = startTimeBeginning.withTimeAtStartOfDay();
Timber.d("Beginning of the day: " + Long.toString(todayStart.getMillis()));
Timber.d("Now overriding");
initialStartTime = todayStart.getMillis();
SharedPreferences.Editor editor;
editor = mPrefs.edit();
editor.putLong(SP_KEY_INITIAL_START_TIME, initialStartTime);
editor.putLong(SP_KEY_INITIAL_START_TIME_ZERO_HOUR, initialStartTime);
editor.putString(SP_KEY_INITIAL_TIMEZONE, userTimezone);
editor.apply();
Timber.d("Initial start time now: " + Long.toString(initialStartTime));
} else {
Timber.d("Start time adjusted, no need.");
}
}
}
示例10: SimpleMonthView
import android.text.format.Time; //导入方法依赖的package包/类
public SimpleMonthView(Context context, TypedArray typedArray, SimpleMonthAdapter simpleMonthAdapter, DatePickerController datePickerController) {
super(context);
mDatePickerController = datePickerController;
mSimpleMonthAdapter = simpleMonthAdapter;
Resources resources = context.getResources();
mDayLabelCalendar = Calendar.getInstance();
mCalendar = Calendar.getInstance();
today = new Time(Time.getCurrentTimezone());
today.setToNow();
mDayOfWeekTypeface = resources.getString(R.string.sans_serif);
mMonthTitleTypeface = resources.getString(R.string.sans_serif);
mCurrentDayTextColor = typedArray.getColor(R.styleable.DayPickerView_colorCurrentDay, resources.getColor(R.color.normal_day));
mMonthTextColor = typedArray.getColor(R.styleable.DayPickerView_colorMonthName, resources.getColor(R.color.normal_day));
mDayTextColor = typedArray.getColor(R.styleable.DayPickerView_colorDayName, resources.getColor(R.color.normal_day));
mDayNumColor = typedArray.getColor(R.styleable.DayPickerView_colorNormalDay, resources.getColor(R.color.normal_day));
mPreviousDayColor = typedArray.getColor(R.styleable.DayPickerView_colorPreviousDay, resources.getColor(R.color.normal_day));
mSelectedDaysColor = typedArray.getColor(R.styleable.DayPickerView_colorSelectedDayBackground, resources.getColor(R.color.selected_day_background));
mMonthTitleBGColor = typedArray.getColor(R.styleable.DayPickerView_colorMonthBackground, resources.getColor(R.color.selected_day_text));
mSelectDayTextColor = typedArray.getColor(R.styleable.DayPickerView_colorSelectedDayText, resources.getColor(R.color.selected_day_text));
mWeekendColor = typedArray.getColor(R.styleable.DayPickerView_colorWeekend, resources.getColor(R.color.calendar_weekend_color));
mLinkColor = typedArray.getColor(R.styleable.DayPickerView_colorLink, -1);
mDrawRect = typedArray.getBoolean(R.styleable.DayPickerView_drawRoundRect, false);
mStringBuilder = new StringBuilder(50);
MINI_DAY_NUMBER_TEXT_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_textSizeDay, resources.getDimensionPixelSize(R.dimen.text_size_day));
MINI_INFO_TEXT_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_textSizeInfo, resources.getDimensionPixelSize(R.dimen.text_size_day_name));
mSelectTextToTop = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_selectTextToTop, 0);
MONTH_LABEL_TEXT_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_textSizeMonth, resources.getDimensionPixelSize(R.dimen.text_size_month));
MONTH_DAY_LABEL_TEXT_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_textSizeDayName, resources.getDimensionPixelSize(R.dimen.text_size_day_name));
MONTH_HEADER_SIZE = typedArray.getDimensionPixelOffset(R.styleable.DayPickerView_headerMonthHeight, resources.getDimensionPixelOffset(R.dimen.header_month_height));
DAY_SELECTED_CIRCLE_SIZE = mRowHeight = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_calendarDayHeight, MIN_HEIGHT);
SELECT_REC_PADDING = typedArray.getDimensionPixelOffset(R.styleable.DayPickerView_selectPadding, 0);
SELECT_REC_PADDING_LEFT_RIGHT = typedArray.getDimensionPixelOffset(R.styleable.DayPickerView_selectPaddingLeftRigt, 0);
// DAY_SELECTED_CIRCLE_SIZE = typedArray.getDimensionPixelSize(R.styleable.DayPickerView_selectedDayRadius, resources.getDimensionPixelOffset(R.dimen.selected_day_radius));
// mRowHeight = ((typedArray.getDimensionPixelSize(R.styleable.DayPickerView_calendarHeight, resources.getDimensionPixelOffset(R.dimen.calendar_height)) - MONTH_HEADER_SIZE) / 6);
mSelectPointR = typedArray.getDimensionPixelOffset(R.styleable.DayPickerView_selectPointR, resources.getDimensionPixelOffset(R.dimen.select_point_r));
mSelectPointColor = typedArray.getColor(R.styleable.DayPickerView_colorSelectPoint, resources.getColor(R.color.select_point));
mSelectLinkSize = typedArray.getDimensionPixelOffset(R.styleable.DayPickerView_selectLinkSize, resources.getDimensionPixelOffset(R.dimen.select_link_size));
mSelectLinkColor = typedArray.getColor(R.styleable.DayPickerView_colorSelectLink, resources.getColor(R.color.select_link));
mStartText = typedArray.getString(R.styleable.DayPickerView_textStartStr);
mEndText = typedArray.getString(R.styleable.DayPickerView_textEndStr);
mWeekendText = typedArray.getString(R.styleable.DayPickerView_textWeekend);
isPrevDayEnabled = typedArray.getBoolean(R.styleable.DayPickerView_enablePreviousDay, true);
mCanSelectBeforeOneDay = typedArray.getBoolean(R.styleable.DayPickerView_canSelectBeforeOneToday, false);
initView();
}