GAMA
GAMA

Reputation: 5996

Scrolling in viewflipper

This is one of the intermediate screens in the app.
I'm using a viewflipper.

screen shot

I'm setting this view using vf.setDisplayedChild(9); where vf is ViewFlipper object.

Referring to above screen-shot, if I reach upto country field (which I'm checking through isFocused()), the whole view should scroll by some pixels (equal to keyboard height).

If I hadn't used viewflipper, then I would have tried something like scrollTo(x, y).
But how do I scroll in viewflipper.

Any help appreciated.

Upvotes: 1

Views: 1544

Answers (1)

Uxonith
Uxonith

Reputation: 1622

You could place a ScrollView as the view inside of the ViewFlipper.

The only problem I think you may still run into is that the keyboard should automatically shift things up (in my experience it doesn't function properly while in fullscreen though). I'd try displaying that screen without the fullscreen enabled and you may find that your behavior is handled automatically.

Upvotes: 1

Related Questions