android - EditField in RelativeLayout has input lag -


so have layout simple , have weird interactions going on.

when type on "search_field" edittext input works expected. when type in search_field2 field input randomly lagged , slow. not every character delayed enough unusable.

the difference between 2 edittext fields lagged 1 nested in relative layout. know causing it?

<?xml version="1.0" encoding="utf-8"?> <linearlayout     xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="vertical"     android:layout_margin="10sp" >     <edittext         android:id="@+id/search_field"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:ems="10"         android:imeoptions="actiondone"         android:background="#fff"         android:inputtype="textpersonname"/>      <relativelayout         android:layout_width="match_parent"         android:layout_height="wrap_content"     >         <imagebutton             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignparentright="true"             android:id="@+id/search"             android:src="@drawable/ico_search"/>         <textview             android:id="@+id/title"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignparentleft="true"             android:layout_centervertical="true"             android:layout_toleftof="@+id/search"             android:text="top recognized"/>         <edittext                     android:id="@+id/search_field2"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignparentleft="true"             android:layout_alignparenttop="true"             android:layout_alignright="@+id/title"             android:ems="10"             android:imeoptions="actiondone"             android:background="#fff"             android:inputtype="textpersonname"/>     </relativelayout>     <listview         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:id="@+id/order"     ></listview>   </linearlayout> 

we had similar issue in application. unfortunately never found solution other avoiding relativelayout. seems culprit this, don't know why. our solution use linearlayout instead , place things bit differently. not optimal if relativelayouts, in our case linear not hard use.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -