In my ActionBar, I have only one option menu item, and it only has icon and no text.
The context menu icon and the logo are well aligned (center vertical) but the material tv icon (24d - 96x96) looks collapsed. I'm not able to figure out how to make it the exact height as the context menu icon's height. Here is the part of my AppBarLayout file:
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay">
<ImageView
android:id="@+id/imgToolbarLogo"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
android:src="@drawable/dunya_logo_white" />
</android.support.v7.widget.Toolbar>
</android.support.design.widget.AppBarLayout>
The menu item is:
<item
android:id="@+id/action_watch_live"
android:icon="@drawable/ic_tv_white"
android:title=""
android:orderInCategory="1"
app:showAsAction="always"/>
Please help me how to central align this material icon like the Context Menu icon on the left.