1
У меня есть проблема, клавиатура Android на EditText, обложки и не видны.android keyboard over EditText
код, чтобы воспроизвести проблему и быть в состоянии сотрудничать:
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:
Я не могу добавить, там сообщается, проблема по сайту.
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>
Спасибо, но don't Работы. Я с помощью Android студии 2.2.3, compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { ApplicationID "ver.javier.restjavier" minSdkVersion 16 targetSdkVersion 25 –
проблема в версии операционной системы. Например, Android 4.1 не работает, 4.4 работает. –
Это не связано с версией студии Android/компиляцией sdk version/build tools версии –