android - action bar menu - move icons to the right side -
I have added icons to submenu items in the action bar, but icons appear on the left side, and I want them to Show the right side
Screenshots:
Code: You mean the navigation drawer, you have to fully navigate the navigation drawer in a video tutorial You can also see the source code You only have to change the
& lt; Menu & gt; & Lt; Item Android: id = "@ + id / item6" Android: Title = "×? × × × × × × × × × × × × × × × × × ×? × ¨ ×? × ×? ×? × ×?? ×? ? × × "Android: Icon =" @ Drable / Christmas "& gt; & Lt; / Item & gt; & Lt; Android Android: id = "@ + id / item1" Android: title = "× ?? × × ¢ × § × ??" Android: Icon = "@ drawable / iconinfo" & gt; & Lt; / Item & gt; & Lt; / Menu & gt;
custom_drawer_item.xml file with this code
& lt; ? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; RelativeLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" & gt; & Lt; Android: layout_height = "wrap_content" android: layout_alignParentLeft = "true" Android: orientation = "vertical" Android: layout_marginTop = "0dp" Android: background: LinearLayout Android: id = "@ + id / itemLayout" Android: layout_width = "fill_parent" = "Android: Att / Active Backband Indicator" & gt; & Lt; LinearLayout Android: layout_width = "fill_parent" android: layout_height = "wrap_content" android: minHeight = "55dp" & gt; & Lt; Android: layout_height = "wrap_content" android: textAppearance = "Android: attr / textAppearanceLarge" /> & Lt; ImageView Android: id = "@ + id / drawer_icon" Android: layout_width = "wrap_content" android: layout_height = "wrap_content" /> & Lt; / LinearLayout & gt; & Lt; Android: layout_width = "match_parent" android: layout_height = "1DP" Android: layout_marginBottom = "1DP" Android: layout_marginTop = "1DP" Android: layout_marginLeft = "10dp" Android: layout_marginRight = "10dp" Android: background = "#DADADC "& Gt; & Lt; / View & gt; & Lt; / LinearLayout & gt; & Lt; / RelativeLayout & gt;
Comments
Post a Comment