2016-01-05 24 views
6

Benim android uygulamasında uygulanan özel bir webview var. Bu web görünümündeki bir girişe veya metin alanına dokunursam, yumuşak klavye görünmez. Web tarayıcımda herhangi bir dokunmatik tarayıcıyı geçersiz kılmadım ya da tezimdeki hiçbir şeyi değiştirmedim. Klavyenin neden gösterilmediğini öğrenmeme yardımcı olabilir misiniz?Android klavyede webview giriş tıklandığında gösterilmiyor

My düzen kodu:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    tools:context=".MainActivity"> 

    <android.support.v4.widget.SwipeRefreshLayout 
     android:id="@+id/swipeRefreshLayout" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent"> 

     <nl.AEGEE.enschede.android.AEGEEWebView 
      android:id="@+id/webView" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" /> 

    </android.support.v4.widget.SwipeRefreshLayout> 

    <ProgressBar 
     android:id="@+id/progressBar" 
     style="?android:attr/progressBarStyleHorizontal" 
     android:progressTint="@color/aegee_blue" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:layout_marginTop="-6dp" 
     android:layout_alignParentTop="true" /> 

</RelativeLayout> 

cevap

7

XML dosyasında Web görünümündeki şu satırları ekleyin deneyin.

android:focusable="true" 
android:focusableInTouchMode="true" 

Yardım edin.

+0

Çok teşekkür ederim, hepsi bu! Garip bir şey, benim kodumda bir WebView uzatmak ve customwebview her şey beklendiği gibi çalıştı. – Victor

+0

Rica ederim, Mutlu kodlama :) – Kristo