Monday, April 8, 2013

[android help] menu item placement


As the title describes, I am looking to place my menu items on the top of the sherlock action bar. This task that I just described, with all my knowledge till now, should have been there by default but it's kind of annoying that the menu items appear below, like a split action bar.


In the coding part of my application contains the basic code needed and no there is no uiOptions="splitActionBarWhenNarrow" in my manifest file. In my menu item:



android:icon="@drawable/ic_nmode"
android:showAsAction="always"
android:title="@string/nmode"/>

android:icon="@drawable/normal"
android:showAsAction="always"
android:title="@string/normalmode"/>

android:icon="@drawable/ic_action_refresh"
android:showAsAction="always"
android:title="@string/refresh"/>

android:icon="@drawable/settings"
android:showAsAction="never"
android:title="@string/settings"/>

android:icon="@drawable/about"
android:showAsAction="never"
android:title="@string/about"/>

android:icon="@drawable/cancel"
android:showAsAction="never"
android:title="@string/exit"/>


Can anyone please help ?? Thanks in advance.



.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...