OptionMenu layout bug when using Dialog theme?

by Daniel » Fri, 13 Mar 2009 15:06:22 GMT


Sponsored Links
 Hi,
I did an Android application which just has an AutoCompleteTextView.
The Activity containing the AutoCompleteTextView uses the Dialog theme
(android:theme="@android:style/Theme.Dialog").
This Activity also has an options menu. But when you press the options
menu button the menu is displayed right below the AutoCompleteTextView
which is somewhere in the middle of the screen, not at the bottom.
I found no way to display the options menu at the bottom of the
screen. Is this a bug?
--~--~---------~--~----~------------~-------~--~----~



OptionMenu layout bug when using Dialog theme?

by Romain Guy » Fri, 13 Mar 2009 15:29:50 GMT


 Known bug which I think we fixed in Cupcake. Note that having a menu
for a dialog is very weird anyway.






-- 
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

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


Sponsored Links


OptionMenu layout bug when using Dialog theme?

by Daniel » Fri, 13 Mar 2009 15:40:40 GMT


 The AutoCompleteTextView is to build something like a desktop search
(Apps, Music, Contacts etc).
But I also need a way to jump into the settings dialog. Therefore I
need an options menu on a dialog style activity. Looks pretty nice ;-)




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



OptionMenu layout bug when using Dialog theme?

by Daniel » Fri, 13 Mar 2009 15:43:11 GMT


 still not fixed in Cupcake (03/03/2009). :-(




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



Other Threads

1. Search contact by phonetic input

I am working on a phone dialer application.
I found that the search widget can search Chinese contact by Pinyin.
I would do the similar things. When I tried to read the contact
StructuredName.PHONETIC_GIVEN_NAME,
StructuredName.PHONETIC_MIDDLE_NAME and
StructuredName.PHONETIC_FAMILY_NAME. However, all of them are null.
I want to know how can I get the phonetic name of them?
Or is there any class can convert a Chinese String to Pinyin format?

Thank you very much in advance.

-- 

2. How to delete a sms

I want to write a program to delete a sms, what can i do?

-- 

3. Polling - Berapa yang Pindah dari BlackBerry ketika BBM resmi ke Android & iOS?

4. Gadget porting to x86

5. Can we create UI without using any XML file?

6. [WTB] Kumpulan ROM n tutorial HTC Desire

7. Tanya : Widget apa aja yg mantab?