有没有人有一个想法如何在操作栏后面显示错误消息?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