Android Open Source - dClock Fontable Text View






From Project

Back to project page dClock.

License

The source code is released under:

Copyright (c) 2012 Yaroslav Tatarenko All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are me...

If you think the Android project dClock listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.dclock.views;
//from w  ww .  j a  va2 s  .  c  o m
import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;
import com.dclock.R;
import com.dclock.utils.UIHelper;

public class FontableTextView extends TextView {

        public FontableTextView(Context context)
        {
            super(context);
        }

        public FontableTextView(Context context, AttributeSet attrs)
        {
            super(context, attrs);
            UIHelper.setCustomFont(
                    this,
                    context,
                    attrs,
                    R.styleable.DigitalClock_Views_FontableTextView,
                    R.styleable.DigitalClock_Views_FontableTextView_font);
        }

        public FontableTextView(Context context, AttributeSet attrs, int defStyle)
        {
            super(context, attrs, defStyle);
            UIHelper.setCustomFont(
                    this,
                    context,
                    attrs,
                    R.styleable.DigitalClock_Views_FontableTextView,
                    R.styleable.DigitalClock_Views_FontableTextView_font);
        }
}




Java Source Code List

com.dclock.ClockActivity.java
com.dclock.ClockService.java
com.dclock.ClockSettingActivity.java
com.dclock.ClockWidget.java
com.dclock.utils.UIHelper.java
com.dclock.views.FontableTextView.java