2016-04-03 8 views
0

Ich habe eine Anwendung erstellt, in der ich einen inputText habe und der Eingabetyp Deciaml Numbers ist. Wenn ich an diesem Eingang Klicken Sie habe ich die richtige Tastatur angezeigt und sobald ich auf ok drücken, bekomme ich automatisch die normale Tastatur:Alle Tastaturen verstecken Android [mit Werbebanner]

Screenshots of the application

Hier ist der Code für die Layout-Datei:

<?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> 

Ich muss sagen, dass ich dieses Problem nicht habe, wenn ich das Werbebanner lösche.

Antwort

0

Eine Antwort gefunden. Hade, um android hinzuzufügen: imeOptions = "actionDone" zum edittext

0

Nur neugierig, würden Sie versuchen, Ihre AdView XML android:focusable="false" hinzuzufügen? Ich frage mich, ob die Tastatur aufgeht, weil das AdView App-Fokus erhalten kann.

+0

Versucht Ihre Antwort, aber es hat nicht funktioniert! Danke trotzdem :) – Habchi

+0

@Habchi keine Sorgen, scheint wie du es herausgefunden hast! – privatestaticint

Verwandte Themen