In my app, I have used a relative layout with Edittext when I add android:layout_alignParentBottom="true"
, my edittext will not update and the cursor will not blink(It seem the main thread is doing so much work). When I remove android:layout_alignParentBottom="true"
the code work fine
This code is not working well
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<EditText
android:layout_alignParentBottom="true"
android:textColor="@color/black"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</RelativeLayout>
This work fine
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<EditText
android:textColor="@color/black"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</RelativeLayout>