本文整理了Java中android.support.v7.widget.Toolbar.getOverflowIcon()
方法的一些代码示例,展示了Toolbar.getOverflowIcon()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Toolbar.getOverflowIcon()
方法的具体详情如下:
包路径:android.support.v7.widget.Toolbar
类名称:Toolbar
方法名:getOverflowIcon
暂无
代码示例来源:origin: henrichg/PhoneProfilesPlus
@Override
public Drawable getOverflowIcon() {
return toolbar.getOverflowIcon();
}
代码示例来源:origin: kollerlukas/Camera-Roll-Android-App
public static void colorToolbarOverflowMenuIcon(Toolbar toolbar, int color) {
//set Toolbar overflow icon color
Drawable drawable = toolbar.getOverflowIcon();
if (drawable != null) {
drawable = DrawableCompat.wrap(drawable);
DrawableCompat.setTint(drawable.mutate(), color);
toolbar.setOverflowIcon(drawable);
}
}
代码示例来源:origin: filestack/filestack-android
@SuppressLint("RestrictedApi")
private void tintToolbar(Toolbar toolbar, @ColorInt int color) {
Drawable drawable = DrawableCompat.wrap(toolbar.getOverflowIcon());
DrawableCompat.setTint(drawable.mutate(), color);
toolbar.setOverflowIcon(drawable);
for (int i = 0; i < toolbar.getChildCount(); i++) {
View child = toolbar.getChildAt(i);
if (child instanceof AppCompatImageButton) {
((AppCompatImageButton) child).setSupportImageTintList(ColorStateList.valueOf(color));
}
}
}
}
代码示例来源:origin: jbruchanov/AnUitor
result.put("CurrentContentInsetRight", view.getCurrentContentInsetRight());
result.put("CurrentContentInsetStart", view.getCurrentContentInsetStart());
result.put("OverflowIcon:", view.getOverflowIcon());
result.put("TitleMarginBottom", view.getTitleMarginBottom());
result.put("TitleMarginEnd", view.getTitleMarginEnd());
代码示例来源:origin: kollerlukas/Camera-Roll-Android-App
toolbar.setOnMenuItemClickListener(onItemClickListener);
Drawable menuIcon = toolbar.getOverflowIcon();
if (menuIcon != null) {
DrawableCompat.wrap(menuIcon);
代码示例来源:origin: jahirfiquitiva/IconShowcase
Drawable drawable = toolbar.getOverflowIcon();
if (drawable != null) {
drawable = DrawableCompat.wrap(drawable);
代码示例来源:origin: kollerlukas/Camera-Roll-Android-App
ColorFade.fadeDrawableColor(toolbar.getOverflowIcon(), textColorSecondary, accentTextColor);
代码示例来源:origin: kollerlukas/Camera-Roll-Android-App
ColorFade.fadeDrawableColor(toolbar.getOverflowIcon(), accentTextColor, textColorSecondary);
代码示例来源:origin: kollerlukas/Camera-Roll-Android-App
ColorFade.fadeDrawableColor(toolbar.getOverflowIcon(),
textColorSecondary, accentTextColor);
代码示例来源:origin: kollerlukas/Camera-Roll-Android-App
ColorFade.fadeDrawableColor(toolbar.getOverflowIcon(), accentTextColor, textColorSecondary);
内容来源于网络,如有侵权,请联系作者删除!