से छिपा हुआ है मेरे पास एक एंड्रॉइड एप्लिकेशन है जो वेबव्यू के साथ टैबहोस्ट है। मैं इसे एक विशिष्ट HTML फ़ाइल लोड करने के लिए उपयोग करता हूं जिसमें उसके निचले हिस्से में टेक्स्ट फ़ील्ड होता है।एंड्रॉइड एप्लिकेशन में वेबव्यू में एचटीएमएल टेक्स्टफील्ड सॉफ्ट कीबोर्ड
जब मैं एचटीएमएल टेक्स्टफील्ड को स्पर्श करता हूं, तो सॉफ्ट कीबोर्ड पॉप अप होता है, और टेक्स्टफील्ड को छुपाता है, ताकि मैं नहीं देख पा रहा हूं कि मैंने क्या लिखा है।
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TabWidget
android:focusableInTouchMode="false"
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="63dp" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<WebView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
</TabHost>
मुझे कोई सफलता के साथ android:windowSoftInputMode="adjustResize"
साथ AndroidManifest.xml फ़ाइल को कॉन्फ़िगर करने की कोशिश की है:
यहाँ लेआउट है। मैंने के साथ अपने लेआउट में FrameLayout
को बदलने का भी प्रयास किया है, लेकिन जब एप्लिकेशन चल रहा है तो अनिश्चित काल तक आकार में वृद्धि के लिए मेरे webview
का कारण बन गया है .. यह पृष्ठ पर चल रहे कुछ जावास्क्रिप्ट के कारण हो सकता है।
मैंने देखा है कि एंड्रॉइड के वेब ब्राउज़र में निफ्टी व्यवहार है - एक वेब पेज में, सॉफ्ट कीबोर्ड पॉप अप होने के बाद, वेब पेज आसानी से स्क्रॉल करता है ताकि फोकस करने योग्य टेक्स्टफील्ड उपयोगकर्ता को दिखाई दे। मेरे आवेदन में इस तरह का व्यवहार कैसे हो सकता है?
मुलायम कीबार्ड प्रकट होने पर इस समस्या को हल करने के लिए एक तरीका अधिसूचित किया जा सकता है, और उसके बाद मैन्युअल रूप से वेबदृश्य का आकार बदल सकता है। मैंने अपने सभी लेआउट कक्षाओं में क्रिएटइन इनपुट कनेक्शन (EditorInfo) को कार्यान्वित करने का प्रयास किया है, लेकिन कुंजीपटल दिखाई देने पर अधिसूचना नहीं मिल सका। सहायता! – gardenofwine