Option Menu Customization

by Shekhar » Sun, 25 Apr 2010 00:06:18 GMT


Sponsored Links
 Hi,

Can we customize the Option menu at the UI level.Suppose for one row I
want to display three
menu items and for the next row only single item.And in the last row
only two items?

Please let me know if it is possible.

Thanks,
Shekhar

--



Option Menu Customization

by Mark Murphy » Sun, 25 Apr 2010 00:11:31 GMT


 


That is not possible through the standard option menu.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Warescription: Three Android Books, Plus Updates, One Low Price!

--


Sponsored Links


Option Menu Customization

by D.Y » Thu, 29 Apr 2010 10:46:36 GMT


 Dear Shekhar,

        I think it's possible, there should be a solution, you can visit the
following link:
 http://androidandme.com/wp-content/uploads/2009/12/05.categories_optionmenu. 
jpg
        But I have no source code, if you have resolved this issue, would
you please share it with me?

        Thanks,

Best Regards,
D.Y

----------
 android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com]  Shekhar
€ 201050:06
 Android Developers
€ shekhar...@gmail.com
: [android-developers] Option Menu Customization

Hi,

Can we customize the Option menu at the UI level.Suppose for one row I
want to display three
menu items and for the next row only single item.And in the last row
only two items?

Please let me know if it is possible.

Thanks,
Shekhar

--



Option Menu Customization

by Rob Mazur » Thu, 29 Apr 2010 11:34:44 GMT


 Looks like they are using custom icons. I bet if you create the icon
at a long enough width for your 3rd option (which you want on its own
row) it may sort the way you want it to. As long as its a transparent
PNG it should look fine.

If it does work then just make sure to check it on different screen
resolutions.




>



Option Menu Customization

by D.Y » Fri, 30 Apr 2010 14:15:20 GMT


 Hi Rob Mazur,

        I don't agree with your point, I test on the device with a long
enough width for the 3rd option, but we get three rows, each option takes a
line.

        Anyway, thanks for your advice.

Best Regards,
D.Y

----------
 android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com]  Rob Mazur
€ 2010911:34
 Android Developers
: [android-developers] Re: Option Menu Customization

Looks like they are using custom icons. I bet if you create the icon
at a long enough width for your 3rd option (which you want on its own
row) it may sort the way you want it to. As long as its a transparent
PNG it should look fine.

If it does work then just make sure to check it on different screen
resolutions.




the
link: http://androidandme.com/wp-content/uploads/2009/12/05.categories_opti.. 
..
>



Other Threads

1. Exception: Finalizing cursor android.database.sqlite.SQLiteCursor

I am seeing the exception in 'adb logcat'.  But I don't know if it is
caused by my application or android platform.
Can you please give me any idea how to troubleshoot this exception?

Thank you.

I/dalvikvm(  713): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm(  713): Ljava/lang/IllegalStateException;: Finalizing
cursor android.database.sqlite.sqlitecur...@435ca1c0 on contacts that
has not been deactivated or closed
I/dalvikvm(  713):      at
android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm(  713):      at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm(  713): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm(  713): Ljava/lang/IllegalStateException;: Finalizing
cursor android.database.sqlite.sqlitecur...@435c99b0 on contacts that
has not been deactivated or closed
I/dalvikvm(  713):      at
android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm(  713):      at dalvik.system.NativeStart.run(Native Method)

--~--~---------~--~----~------------~-------~--~----~

2. Problems with getView() for a custom list adapter

BTW, instead of using imageview + textview, you should use the
compound drawable feature of textview. That will save you one view per
row.










-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~

3. Samsung i7500 skin now available for Android Emulator!

4. Problems with getView() for a custom list adapter

5. Anyone who knows the details of operate a service?

6. Advice for remote service returning value from http transaction

7. ListView checked state wrongly shared between 2 views when reorienting screen