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. libsensors: how to simulate rotation 180

Hi,
I'm implementing a libsensors for my tablet.
It's not like a typical sensor on the phone.
It just generates standard keycode
ctrl-alt-up,down,left,right when rotate the tablet.

Basically, I have almost finished the implementation.
I implemented an accelerometer and simulate
the acceleration vectors, just like the qemu emulator
does (ref: external/qemu/android/hw-sensors.c )

I have succeeded to generate events of
rotation of degree 90 and 270. However,
I was unable to simulate rotation degree 180.
The qemu hw-sensors.c doesn't have correct
values to simulate rotation 180. I have tried all
possible values I can think, but all failed.

Anyone has a hint for how to simulate rotation 180?
Or, if someone could provide the output values
of acceleration vectors generated
by a typical sensor on the phone,
that would be great!

Thanks a lot!

-- 

2. AlarmManager doesnot fire after device get Boot-up

Hi,
I am developing a application that requires to go for server call 2
times every day. So I used alarmmanager to set up alarm to repeat
after every 12 hours. The application runs fine and I receive
broadcast every 12 hours. But when I switch off and switch on my
mobile, the alarmmanger doesnot fire up. It seems like either
alarmmanager erases all the data after mobile phone is switch off or
broadcast receiver is cancelled.
I want alarmmanger to be consistent and once set up the alarm timing
it should call my receiver even after boot-up.

Please help me out how to solve this problem. Thanks in advance for
any help.

-- 

3. BadParcelableException

4. sold was Update was WTS LG Optimus One 2nd

5. Custom TTF Font Problem

6. [WTA] app DVD Player (*VOB) + subtitle di android

7. (Need Help) Spica gak bisa di-tap