Back to project page led-notifier.
The source code is released under:
Apache License
If you think the Android project led-notifier listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ciubotariu_levy.lednotifier; /*from w w w. j ava 2s .c om*/ import android.content.Context; import android.graphics.Typeface; import android.util.AttributeSet; import android.widget.CheckedTextView; public class BoldCheckedView extends CheckedTextView { public BoldCheckedView(Context context) { super(context); } public BoldCheckedView(Context context, AttributeSet attrs) { super(context, attrs); } public BoldCheckedView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public void setChecked (boolean checked){ if (isChecked() != checked){ setTypeface (checked ? Typeface.DEFAULT_BOLD : Typeface.DEFAULT); } super.setChecked(checked); } }