DKHirani
DKHirani

Reputation: 126

Scroll layout in web view android

I have this web view on which I have a text box at the bottom. The problem is when I click on this text box the keypad pops up and covers it. How can I scroll the web view so that the text box remain above the keypad. In i phone it is handled automatically.

Upvotes: 2

Views: 935

Answers (2)

DKHirani
DKHirani

Reputation: 126

Finally i came out from this stuck..

I just added android:windowSoftInputMode="adjustResize" in my maniefest file inside wab activity declaration class.

And Added below in style.xml file:

<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">

    <!-- All customizations that are NOT specific to a particular API-level can go here. -->
    <item name="android:windowFullscreen">false</item>
    <item name="android:windowNoTitle">true</item>
</style>

Upvotes: 1

Biraj Zalavadia
Biraj Zalavadia

Reputation: 28484

Add this property in your activity

<activity
            android:name="YourActivity"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="stateHidden|adjustResize" />

Upvotes: 0

Related Questions