windowSoftInputMode adjustPan: How to add more margin to text field of DatePicker (spinner mode)

81 Views Asked by At

I want to activity have an offset as spinner container when textfield recieve focus.

What I want to achieve:

1

What I get:

2

How can I acheive desired behaviour? Is there a way to wrap any view in container that adjustPan will respect?

1

There are 1 best solutions below

1
akhil nair On

Set windowSoftInputMode property to adjustResize

<activity android:windowSoftInputMode="adjustResize"></activity>