Android toolbar hidden items -


enter image description here

<android.support.v7.widget.toolbar android:id="@+id/my_toolbar"     android:layout_width="match_parent"     android:layout_height="?attr/actionbarsize"     android:background="?attr/colorprimary"     android:elevation="4dp"     android:theme="@style/themeoverlay.appcompat.actionbar"     app:popuptheme="@style/themeoverlay.appcompat.light"     xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     android:contentinsetleft="10dp"     android:contentinsetright="10dp"     android:contentinsetstart="10dp"     android:minheight="?attr/actionbarsize"     android:padding="0dp"     app:contentinsetleft="10dp"     app:contentinsetright="10dp"     app:contentinsetstart="10dp"     android:weightsum="1">  <menu xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto">      <item         android:id="@+id/action_logout"         android:icon="@drawable/ic_exit_to_app_black_36dp"         android:title="@string/logout"         app:showasaction="ifroom"         />     <item         android:id="@+id/action_settings"         android:title="reset app"         app:showasaction="never"         >     </item> </menu> 

how remove white space right hidden items? , how put them under toolbar rather on top of it?

<style name="apptheme.noactionbar">     <item name="windowactionbar">false</item>     <item name="windownotitle">true</item>     <item name="android:windowdrawssystembarbackgrounds">true</item>     <item name="android:statusbarcolor">@android:color/transparent</item>     <item name="android:actionmenutextappearance">@style/myactionbar.menutextstyle</item> </style>   <style name="myactionbar.menutextstyle" parent="apptheme.noactionbar">     <item name="android:textcolor">#888888</item>     <item name="android:textsize">20sp</item>     <item name="android:textappearance">@android:style/textappearance.medium</item>     <item name="android:minwidth">0dip</item>     <item name="android:paddingleft">0dip</item>     <item name="android:paddingright">0dip</item> </style> 

i've added doesn't change nor fix anything. how can change layout of hidden items in toolbar? i've tried don't work, , posts concerning hiding toolbar rather hidden items, yeah, i'd explain me :)

i think need try

set theme @ android manifest to

android:theme="@android:style/theme.holo.light" 

just @ link solve problem


Comments