2016-04-03 19 views
0

私はinputTextを持ち、入力タイプはdeciaml番号です。 私は、この入力をクリックするとき、私は右のキーボードが表示されていると私は、[OK]を押した後、私は自動的に通常のキーボードを取得:すべてのキーボードを隠すandroid [広告バナー付き]

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout 
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" 
xmlns:app="http://schemas.android.com/apk/res-auto" 
xmlns:ads="http://schemas.android.com/apk/res-auto" 
android:paddingBottom="@dimen/activity_vertical_margin" 
android:paddingLeft="@dimen/activity_horizontal_margin" 
android:paddingRight="@dimen/activity_horizontal_margin" 
android:paddingTop="@dimen/activity_vertical_margin" 
android:orientation="vertical" 
android:background="@color/whiteSmoke" 
tools:context="com.habchi.soldecalculator.MainActivity"> 

<!-- Floating Solde Buttons --> 

<LinearLayout 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:orientation="horizontal" 
    android:layout_gravity="center" 
    android:gravity="bottom"> 
    <com.google.android.gms.ads.AdView 
     android:id="@+id/adView" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_centerHorizontal="true" 
     android:layout_alignParentBottom="true" 
     ads:adSize="BANNER" 
     ads:adUnitId="@string/banner_ad_unit_id"> 
    </com.google.android.gms.ads.AdView> 
</LinearLayout> 

</LinearLayout> 

Screenshots of the application

ここでは、レイアウトファイルのコードだが

私は広告バナーを削除するときに私はこの問題がないと言わなければならない。

答えて

0

答えが見つかりました。アンドロイドを追加するにはHade:imeOptions = "actionDone"をedittextに追加

0

ちょうど興味がありますが、android:focusable="false"をAdView XMLに追加しようとしますか?私は、AdViewがアプリのフォーカスを得ることができるため、キーボードがアップしているのだろうかと思っています。

+0

あなたの答えを試しましたが、うまくいかなかった!とにかくありがとう:) – Habchi

+0

@Habchi心配は、あなたがそれを把握したようだ! – privatestaticint

関連する問題