Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

windowIsFloating attribute in Android theme

What does this attribute really do?

I've read the documentation and I understand what it's supposed to be. However, when I use it in a theme (I created a style with the android:Theme.Dialog as the parent), changing the value for this attribute doesn't seem to have any effect.

like image 260
kishidp Avatar asked Apr 19 '13 01:04

kishidp


2 Answers

I don't know all of the effects of setting windowIsFloating to true, but one thing that I noticed is that when it is set to true, the activity would not expand the width to fill the screen, even if you set the layout width to match_parent (i.e. android:layout_width="match_parent")

like image 143
Chin Avatar answered Oct 18 '22 04:10

Chin


From my experiments, it seems to affect how the window reacts to the soft input. It you set this to false, the window won't slide up when the keyboard becomes visible.

like image 10
Grishka Avatar answered Oct 18 '22 06:10

Grishka