1
Ich habe ein Problem, die Android-Tastatur auf EditText, deckt und kann nicht gesehen werden.android Tastatur über EditText
Der Code, um das Problem zu reproduzieren und zur Zusammenarbeit fähig sein:
XML:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="ver.javier.restjavier.MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center">
<android.support.design.widget.TextInputLayout
android:id="@+id/nombre"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/etNombre"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/Nombre"
android:inputType="textPersonName"
android:selectAllOnFocus="false" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/etLugar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/Lugar"
android:inputType="textPersonName"
android:selectAllOnFocus="false" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/etLugar1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/Lugar"
android:inputType="textPersonName" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/etLugar2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/Lugar"
android:inputType="textPersonName" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/etLugar3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/Lugar"
android:inputType="textPersonName" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/etLugar4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/Lugar"
android:inputType="textPersonName" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/etLugar5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/Lugar"
android:inputType="textPersonName" />
</android.support.design.widget.TextInputLayout>
</LinearLayout>
</RelativeLayout>
MainActivity:
ich es nicht hinzufügen können, ist es ein Problem gemeldet von der Website.
Manifiest
<activity android:name=".MainActivity"
android:windowSoftInputMode="adjustPan"
android:isScrollContainer="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Danke, aber die Arbeit dont. Ich mit Android Studio 2.2.3, compileSdkVersion 25 buildToolsVersion "25.0.2" DefaultConfig { applicationId "ver.javier.restjavier" minSdkVersion 16 targetSdkVersion 25 –
Das Problem ist in der Version des Betriebssystems. Zum Beispiel funktioniert Android 4.1 nicht, 4.4 funktioniert. –
Es ist nicht im Zusammenhang mit Android Studio-Version/kompilieren sdk Version/Build-Tools Version –