我的输入类型属性有问题,我需要在编辑文本中写入人名,但是当我运行应用程序时,键盘不会动态更改,它允许用户在名称字段中输入任何字符。这是代码:
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Name:"/>
<EditText
android:id="@+id/edittext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textPersonName"
/>