Add icons left of toolbar Android (xamarin) -


i downloaded sample new v7 toolbar. can add custom icon right don't know how add left.(s please view image see how looks http://postimg.org/image/qnf67g4tz/ code using here.

<?xml version="1.0" encoding="utf-8" ?>      <menu xmlns:android="http://schemas.android.com/apk/res/android"         xmlns:local="http://schemas.android.com/apk/res-auto">        <item           android:id="@+id/menu_share"           android:icon="@drawable/ic_action_content_create"           android:background="@android:color/holo_blue_light"           local:showasaction="ifroom"           android:title="share" />     </menu> 

and: layoutinflater inflater = (layoutinflater)maincontext.getsystemservice (context.layoutinflaterservice); view v = inflater.inflate (resource.layout.toolbar,null); toolbar toolbar = v.findviewbyid (resource.id.toolbar); toolbar.title = title; toolbar.settitletextcolor (color.white); toolbar.inflatemenu (resource.menu.home);

xml code arrow icon

<android.support.v7.widget.toolbar             android:id="@+id/product_toolbar_title"             android:layout_width="match_parent"             android:layout_height="?attr/actionbarsize"             android:fitssystemwindows="true"             app:layout_collapsemode="pin"             app:navigationicon="@drawable/ic_arrow_back_white_24dp"             app:popuptheme="@style/themeoverlay.appcompat.light"             app:theme="@style/themeoverlay.appcompat.dark.actionbar"/> 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -