import android.content.IntentFilter;
import android.content.res.Resources;
import android.database.ContentObserver;
+import android.graphics.Typeface;
import android.os.Handler;
import android.provider.Settings;
import android.text.format.DateFormat;
private LinearLayout mAmPmLayout;
private TextView mAm, mPm;
- AmPm(View parent) {
+ AmPm(View parent, Typeface tf) {
mAmPmLayout = (LinearLayout) parent.findViewById(R.id.am_pm);
mAm = (TextView)mAmPmLayout.findViewById(R.id.am);
+ mAm.setTypeface(tf);
mPm = (TextView)mAmPmLayout.findViewById(R.id.pm);
+ mPm.setTypeface(tf);
Resources r = parent.getResources();
mColorOn = r.getColor(R.color.ampm_on);
protected void onFinishInflate() {
super.onFinishInflate();
+ Typeface tf = Typeface.createFromAsset(getContext().getAssets(),
+ "fonts/Clockopia.ttf");
mTimeDisplay = (TextView) findViewById(R.id.timeDisplay);
- mAmPm = new AmPm(this);
+ mTimeDisplay.setTypeface(tf);
+ mAmPm = new AmPm(this, tf);
mCalendar = Calendar.getInstance();
setDateFormat();