Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Raul Moreno Garcia committed Mar 16, 2017
1 parent f048670 commit c8da220
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ public enum Version {
private Version mVersion;
private TimeZone mTimezone;

private Typeface headerTypeface;

private HapticFeedbackController mHapticFeedbackController;

private boolean mDelayAnimation = true;
Expand Down Expand Up @@ -313,6 +315,9 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
setToNearestDate(mCalendar);

mDatePickerHeaderView = (TextView) view.findViewById(R.id.mdtp_date_picker_header);
if(headerTypeface != null){
mDatePickerHeaderView.setTypeface(headerTypeface);
}
mMonthAndDayView = (LinearLayout) view.findViewById(R.id.mdtp_date_picker_month_and_day);
mMonthAndDayView.setOnClickListener(this);
mSelectedMonthTextView = (TextView) view.findViewById(R.id.mdtp_date_picker_month);
Expand Down Expand Up @@ -411,11 +416,8 @@ public void onClick(View v) {
}

public void setTypeFace(Typeface typeFace){
mDatePickerHeaderView.setTypeface(typeFace);
mSelectedMonthTextView.setTypeface(typeFace);
mSelectedDayTextView.setTypeface(typeFace);
mYearView.setTypeface(typeFace);

headerTypeface = typeFace;

}

@Override
Expand Down

0 comments on commit c8da220

Please sign in to comment.