xml - Android Search dialog in landscape orientation -


i'm using android search dialog in app, , works fine in portrait orientation. flip landscape orientation searchpage xml appears covered large white dialog box. if search, box still there, , hit button on device or emulator, large white box slides away , there search results. seems somehere in code layout width set fill_parent or something. i've looked around solution , suggested adding android:imeoptions="flagnoextractui" seachable.xml in xml folder, doesn't seem have effect.

i've discovered it's onsearchrequested(); method throwing white box fills screen. , may have fact software keyboard isn't called when in landscape, vertical orientation.

you create own dialog in form of activity. this:

 <activity     android:theme="@android:style/theme.dialog"     android:configchanges="keyboardhidden|orientation|screensize"     android:name="exampleactivity" >  </activity> 

this activity can of course arranged way via xml. way, can gracefully handle change portrait landscape.

note: need "screensize" attribute if using ics (14+).


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -