有沒有人有一個想法如何在操作欄後面顯示錯誤消息?Android編輯文本錯誤重疊操作欄
請檢查這是設計的我的xml文件:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_second"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView 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"
tools:context=".MainActivity" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/editTextlastname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="lastname"
android:layout_marginTop="15dp"
android:paddingBottom="1000dp"
android:inputType="text"/>
</RelativeLayout>
</ScrollView>
發表您的XML代碼 –
如果您使用相對佈局,然後使用標籤>> 機器人:layout_below =「...」 –
嘗試添加android:paddingTop =「?android:attr/actionBarSize」到父佈局 – Raghavendra