在一些android手机中,Edittext的输入速度是滞后的
在我的代码中,EditText的键入速度很慢。在一些解决方案中,我发现当edittext嵌入到linearlayout中,并且edittext的layout_宽度和layout_高度更改为fill_parent时,它将得到解决。但它不起作用。请检查我的xml代码在一些android手机中,Edittext的输入速度是滞后的,android,android-edittext,Android,Android Edittext,在我的代码中,EditText的键入速度很慢。在一些解决方案中,我发现当edittext嵌入到linearlayout中,并且edittext的layout_宽度和layout_高度更改为fill_parent时,它将得到解决。但它不起作用。请检查我的xml代码 <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_w
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight=".5"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:orientation="vertical">
<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textColor="@color/white"
android:gravity="center"
android:text="@string/register_number" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/username"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:gravity="center_horizontal"
android:theme="@style/Logintheme"
android:inputType="text" />
</LinearLayout>
<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:textColor="@color/white"
android:gravity="center"
android:text="@string/password" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/password"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:gravity="center_horizontal"
android:theme="@style/Logintheme"
android:ems="10"
android:inputType="textPassword" />
</LinearLayout>
<Button
android:id="@+id/login"
android:layout_width="match_parent"
android:layout_height="40dp"
android:text="@string/login"
android:background="@drawable/button_shape"
android:layout_gravity="center"
android:layout_marginTop="20dp"
android:textColor="@color/black"/>
</LinearLayout>
登录主题样式代码
<style name="Logintheme">
<item name="colorControlNormal">@color/white</item>
<item name="colorControlActivated">@color/white</item>
<item name="colorControlHighlight">@color/white</item>
</style>
@颜色/白色
@颜色/白色
@颜色/白色
对于任何正面反馈,请提前感谢您是否可以发布您的风格,即Logintheme@color/white@color/white@color/white我只是在我的工作室复制并粘贴整个代码,然后运行项目。我没有发现任何关于滞后的问题。并非所有设备都存在滞后问题。。。它在大多数手机中都没有延迟。。华硕zenphone也有滞后问题MSUNG j5也有同样的问题