本文整理汇总了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;
}