Android Studio Share Icon doesn't appear in my other activity



Hi I am trying to implement a share button in my action bar on another view in my other activity. I can see the button being implemented in my preview, however when I run it it doesn't show up. However, the settings icon shows up (even though I deleted it, and when I click it a drop down comes down and when I click it, it works as my share button.


here is my menu.xml



<menu xmlns:android="http://ift.tt/nIICcg"
xmlns:app="http://ift.tt/GEGVYd"
xmlns:tools="http://ift.tt/LrGmb4"
tools:context=".BlogWebViewActivity" >

<item android:id="@+id/action_share"
android:icon="@drawable/ic_action_share_dark"
android:showAsAction="ifRoom"
android:title="@string/action_share">
</item>
</menu>


![menuview]http://ift.tt/1vmyEUM


But when I run it in the emulator it still shows the settings icon. I am running it using genymotion, I have also tried running it in the android emulator as well still the same. I tried cleaning the project and rebuilding the project. Not sure what the problem is here.


No comments:

Post a Comment