android - EditText error tooltip position is off -


i have error tooltip displayed in image.

correct position

but mine off

mine. not good

how can fix this?

my layout code below

<?xml version="1.0" encoding="utf-8"?> <scrollview 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"     app:layout_behavior="@string/appbar_scrolling_view_behavior"     tools:context=".main.editprofileactivity"     tools:showin="@layout/activity_edit_profile">  <linearlayout     android:layout_width="match_parent"     android:layout_height="match_parent"     android:layout_marginbottom="60dp"     android:orientation="vertical"     android:paddingbottom="56dp"     android:paddingleft="@dimen/activity_horizontal_margin"     android:paddingright="@dimen/activity_horizontal_margin"     android:paddingtop="@dimen/activity_vertical_margin">      <linearlayout         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_margintop="16dp"         android:orientation="horizontal">          <imageview             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_gravity="center"             android:layout_marginend="@dimen/label_margin_right"             android:src="@drawable/ic_account_grey600_24dp" />          <linearlayout             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:orientation="horizontal">              <edittext                 android:id="@+id/edittextnickname"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:layout_marginend="40dp"                 android:hint="@string/profile.nickname"                 android:maxlength="16"                 android:maxlines="1"                 android:singleline="true"                 android:textsize="16sp" />              <button                 android:id="@+id/buttonnicknameclear"                 android:layout_width="24dp"                 android:layout_height="24dp"                 android:layout_gravity="center_vertical|right"                 android:layout_marginstart="@dimen/activity_horizontal_margin"                 android:background="@drawable/ic_close_grey600_24dp"                 android:onclick="onnicknameclearclicked"                 android:padding="0dp"                 android:visibility="invisible" />          </linearlayout>      </linearlayout>      <linearlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_margintop="16dp"         android:orientation="horizontal">          <imageview             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_gravity="center"             android:layout_marginend="@dimen/label_margin_right"             android:src="@drawable/ic_email_grey600_24dp" />          <linearlayout             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:orientation="horizontal">              <edittext                 android:id="@+id/edittextemail"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:layout_marginend="40dp"                 android:hint="@string/profile.email"                 android:inputtype="textemailaddress"                 android:maxlength="30"                 android:maxlines="1"                 android:singleline="true"                 android:textsize="16sp" />              <button                 android:id="@+id/buttonemailclear"                 android:layout_width="24dp"                 android:layout_height="24dp"                 android:layout_gravity="center_vertical|right"                 android:layout_marginstart="@dimen/activity_horizontal_margin"                 android:background="@drawable/ic_close_grey600_24dp"                 android:onclick="onemailclearclicked"                 android:padding="0dp" />          </linearlayout>      </linearlayout>  </linearlayout>  </scrollview> 

this happens both first , second edit text. doing wrong?

edit: adding code more information. parent layout file.

<?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.coordinatorlayout 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:fitssystemwindows="true"     tools:context=".main.editprofileactivity">      <android.support.design.widget.appbarlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:theme="@style/apptheme.appbaroverlay">          <android.support.v7.widget.toolbar             android:id="@+id/toolbar"             android:layout_width="match_parent"             android:layout_height="?attr/actionbarsize"             android:background="?attr/colorprimary"             app:popuptheme="@style/apptheme.popupoverlay" />      </android.support.design.widget.appbarlayout>      <include layout="@layout/content_edit_profile" />  </android.support.design.widget.coordinatorlayout> 

try remove

android:paddingbottom="56dp" 

Comments