I got my layout working as i want, except that when the EditText view is behind the soft keyboard, it is not being scrolled to the visible area of the screen.
Instead, if part of the EditText was in the visible area of the screem it gets clipped or if it was completely behind the area now covered by the keyboard it remians not visible.
I am creating the Layout manually, the first time it gets created it looks like this:
In this first time, when i focus an EditText view, the EcitText gets scrolled into view correctly, like this:
If i close this Layout, and i come back later, and then i focus the same EditText view, instead of being scrolled into view, it gets clipped like this:
Notice how the picture at the top doesnt get scrolled, and the EditText views get clipped to fit the layout. Any ideas ahy this happens? Im sure it something simple, like how i am "destroying" the layout object.
I am creating the layout like this:
rl = new RelativeLayout(this);
rl.setId(5000);
I am "deleting" the layout like this:
rl.setVisibility(View.GONE);
I will appreciate your input.
Aucun commentaire:
Enregistrer un commentaire