Soru & Cevap

Android Studio Edittext sorunu ...

15.11.2019 - 10:36

Android studio'da edittext klavyenin altında kalıyor. 
android:windowSoftInputMode="adjustPan|adjustResize" denedim ama olmadı. Lütfen yardım edin.

İşte kodum:

 

<?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:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#00A59E"
    tools:context=".MainActivity"
    android:scrollbars="vertical"
    android:fitsSystemWindows="true">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fillViewport="true"
        android:fitsSystemWindows="true">
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scrollbars="vertical"
            android:id="@+id/a1"
            android:fitsSystemWindows="true">
            <ImageView
                android:id="@+id/imageView"
                android:layout_width="match_parent"
                android:layout_height="300dp"
                app:srcCompat="@drawable/igor_png"
                android:layout_alignParentTop="true"
                android:layout_marginTop="30dp"
                android:layout_marginLeft="80dp"
                android:layout_marginRight="80dp"/>
            <ImageView
                android:id="@+id/imageView2"
                android:layout_width="match_parent"
                android:layout_height="45dp"
                app:srcCompat="@drawable/oval"
                android:layout_marginBottom="80dp"
                android:layout_centerHorizontal="true"
                android:layout_alignParentBottom="true"
                android:layout_marginLeft="20dp"
                android:layout_marginRight="20dp"/>

            <EditText
                android:id="@+id/editText"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:layout_marginBottom="80dp"
                android:layout_alignLeft="@id/imageView2"
                android:layout_marginLeft="15dp"
                android:layout_alignParentBottom="true"
                android:layout_centerHorizontal="true"
                android:layout_alignRight="@id/imageView2"
                android:layout_marginRight="70dp"
                 />

            <ImageView
                android:id="@+id/imageView1"
                android:layout_width="25dp"
                android:layout_height="25dp"
                app:srcCompat="@drawable/ses"
                android:layout_alignRight= "@id/editText"
                android:layout_marginRight="-22dp"
                android:layout_marginBottom="89dp"
                android:layout_alignParentBottom="true"/>

            <TextView
                android:id="@+id/textView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="OK"
                android:textSize="22dp"
                android:textColor="#00A59E"
                android:layout_alignLeft="@id/imageView1"
                android:layout_marginLeft="30dp"
                android:layout_marginBottom="88dp"
                android:layout_alignParentBottom="true" />

        </RelativeLayout>

    </ScrollView>

</RelativeLayout>

 

295 Görüntülenme

1 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.

picture-112887-1506457490.jpg
recepözen
17.11.2019 - 11:20

https://stackoverflow.com/questions/24262414/android-keyboard-hides-edittext buradaki şeyleri denediniz mi ?