private TextView mAmPm;
private String mAmString, mPmString;
- AmPm(View parent, Typeface tf) {
+ AmPm(View parent) {
mAmPm = (TextView) parent.findViewById(R.id.am_pm);
- if (tf != null) {
- mAmPm.setTypeface(tf);
- }
String[] ampm = new DateFormatSymbols().getAmPmStrings();
mAmString = ampm[0];
"fonts/Clockopia.ttf");
mTimeDisplay = (TextView) findViewById(R.id.timeDisplay);
mTimeDisplay.setTypeface(tf);
- mAmPm = new AmPm(this, null);
+ mAmPm = new AmPm(this);
mCalendar = Calendar.getInstance();
setDateFormat();
void setLive(boolean live) {
mLive = live;
}
+
+ void setTypeface(Typeface tf) {
+ mTimeDisplay.setTypeface(tf);
+ }
}