2015-01-05 109 views
0

让我直接指出,我在XML文件中有一个编辑文本如下。三星Galaxy S3的EditText重复文字标签

  <EditText 
      android:id="@+id/edt_brand_name_add_product" 
      android:layout_width="match_parent" 
      android:layout_height="@dimen/dp_40" 
      android:layout_alignLeft="@+id/relative_img_banner" 
      android:layout_alignRight="@+id/relative_img_banner" 
      android:layout_below="@+id/relative_img_banner" 
      android:layout_marginTop="@dimen/dp_10" 
      android:background="@drawable/edit_text_login_page" 
      android:digits="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_ " 
      android:hint="Brand Name" 
      android:inputType="textNoSuggestions" 
      android:paddingLeft="@dimen/dp_5" 
      android:textColor="@color/edit_text_color" 
      android:textSize="@dimen/sp_12" 
      app:fontName="fonts/Roboto_Light.ttf" /> 

在Samsung Galaxy Tab 3中,如果我在EditText中键入任何数字,它将重复所有已输入的文本。例如,如果EditText的值为“tt”,并且如果我尝试输入任意数字,则会在输入任意数字时重复“tt”多少次。应该是什么问题。它在Nexus 5或HTC等其他设备上工作正常。

+1

此问题可能是与限制输入字符有关(android:digits =“abcd .. “)在三星设备。请参阅:http://stackoverflow.com/questions/16178059/edittext-input-filter-causing-repeating-letters#comment57225277_16184550 –

回答

-1
  1. 重新启动设备

  2. 重启IDE如果是日食

  3. 重新安装应用程序

如果不解决接触与设备制造商

+0

如果重新启动设备或重新启动IDE可以解决我的问题,我不会在这里发布我的问题。 –