本文整理匯總了Java中com.github.clans.fab.FloatingActionButton.setColorNormalResId方法的典型用法代碼示例。如果您正苦於以下問題:Java FloatingActionButton.setColorNormalResId方法的具體用法?Java FloatingActionButton.setColorNormalResId怎麽用?Java FloatingActionButton.setColorNormalResId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.github.clans.fab.FloatingActionButton
的用法示例。
在下文中一共展示了FloatingActionButton.setColorNormalResId方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getSettingButton
import com.github.clans.fab.FloatingActionButton; //導入方法依賴的package包/類
private FloatingActionButton getSettingButton(Context context) {
final FloatingActionButton settingBtn = new FloatingActionButton(context);
settingBtn.setButtonSize(FloatingActionButton.SIZE_MINI);
settingBtn.setColorNormalResId(R.color.app_logo_color_light);
settingBtn.setColorPressedResId(R.color.app_logo_color);
settingBtn.setImageResource(R.drawable.set);
settingBtn.setTag(MENU_TYPE_SETTING);
settingBtn.setLabelText(R.string.config_app);
settingBtn.setOnClickListener(this);
return settingBtn;
}
示例2: getShareButton
import com.github.clans.fab.FloatingActionButton; //導入方法依賴的package包/類
private FloatingActionButton getShareButton(Context context) {
final FloatingActionButton shareBtn = new FloatingActionButton(context);
shareBtn.setButtonSize(FloatingActionButton.SIZE_MINI);
shareBtn.setImageResource(R.drawable.share);
shareBtn.setTag(MENU_TYPE_SHARE);
shareBtn.setLabelText(R.string.share_to);
shareBtn.setColorNormalResId(R.color.app_logo_color_light);
shareBtn.setColorPressedResId(R.color.app_logo_color);
shareBtn.setOnClickListener(this);
return shareBtn;
}
示例3: getClearButton
import com.github.clans.fab.FloatingActionButton; //導入方法依賴的package包/類
private FloatingActionButton getClearButton(Context context) {
final FloatingActionButton clearBtn = new FloatingActionButton(context);
clearBtn.setButtonSize(FloatingActionButton.SIZE_MINI);
clearBtn.setImageResource(R.drawable.delete);
clearBtn.setTag(MENU_TYPE_CLEAR);
clearBtn.setLabelText(R.string.delete_all_data);
clearBtn.setColorNormalResId(R.color.app_logo_color_light);
clearBtn.setColorPressedResId(R.color.app_logo_color);
clearBtn.setOnClickListener(this);
return clearBtn;
}