I am trying to figure out how to show a custom view for items inside the overflow menu (on right of actionbar) but I can\'t seem to figure it out. It still shows the title o
If you just want add a drawable (red dot) after text, you can use imageSpan to add drawable after main text like below:
private MenuItem settingsItem;
....
SpannableStringBuilder builder = new SpannableStringBuilder(getString(R.string.settings_menu_name) + " .");
Drawable drawable = getResources().getDrawable(R.drawable.red_dot);
drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
builder.setSpan(new ImageSpan(drawable, ImageSpan.ALIGN_BASELINE), builder.length()-1, builder.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
settingsItem.setTitle(builder);