[android-developers] Re: setOverscrollHeader and setOverscrollFooter don't work (Droid X?)

2011-08-09 Thread suzannea
The theme attribute to override for the list overscroll is android:overScrollFooter. Setting it to @null should remove the footer, so your ListView background fills the full screen. See here: http://bit.ly/q9BQUL On Jun 14, 10:54 pm, Rob B wrote: > Ah, thanks, you're right. I set the overscroll

[android-developers] Virtual touch area for an ImageButton

2009-09-23 Thread suzannea
I'd like to create an ImageButton with a virtual touch area larger than its visual area, to make it easier for a user to touch the button (or button area). What's the best way to do this? Adding android:padding appears to stretch the drawable image, at least in the Android 1.5 emulator. -

[android-developers] Re: Using android:configChanges to handle orientation

2009-09-23 Thread suzannea
Thanks, Mark and Dan. Dan - don't shoot, please! Suzanne On Sep 23, 11:58 am, "Mark Murphy" wrote: > > But realistically,  what are the special cases when an app would use > > android:configChanges="orientation|keyboard|keyboardHidden" to avoid > > activity recreation during orientation chang

[android-developers] Using android:configChanges to handle orientation

2009-09-23 Thread suzannea
I know that by default a screen orientation change destroys and recreates an activity, so the activity can load new layout, drawable, and string resources. I also read about using onRetainNonConfigurationInstance() to save an Object before rotating and getLastNonConfigurationInstance() to restor

[android-developers] Rotating with the sensor

2009-09-15 Thread suzannea
Is it a good idea or not to use android:screenOrientation="sensor" in AndroidManifest.xml to make an app always rotate with the device sensor, rather than using the device orientation setting? What are the pros and cons of using sensor? --~--~-~--~~~---~--~~ You r