Java Code Examples for android.widget.Button.setTextAppearance()

The following are Jave code examples for showing how to use setTextAppearance() of the android.widget.Button class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: letv   File: MyDownloadingFragment.java   Source Code and License Vote up 5 votes
private void setButtonStatus(Button button, boolean canClick) {
    Logger.d(TAG, " setButtonStatus canClick : " + canClick);
    if (canClick) {
        button.setClickable(true);
        button.setBackgroundResource(R.drawable.btn_blue_selecter);
        button.setTextAppearance(this.mContext, R.style.letv_text_13_blue_white);
        return;
    }
    button.setClickable(false);
    button.setBackgroundResource(R.drawable.btn_grey);
    button.setTextColor(Util.getContext().getResources().getColor(R.color.letv_color_ffa1a1a1));
}
 
Example 2
Project: letv   File: MyRandomSeeFragment.java   Source Code and License Vote up 5 votes
private void setButtonStatus(Button button, boolean canClick) {
    LogInfo.log(TAG, " setButtonStatus canClick : " + canClick);
    if (canClick) {
        button.setClickable(true);
        button.setBackgroundResource(2130837706);
        button.setTextAppearance(this.mActivity, 2131230855);
        return;
    }
    button.setClickable(false);
    button.setBackgroundResource(2130837728);
    button.setTextColor(getResources().getColor(2131493280));
}