是否可以防止用户更改输入法/键盘?
我知道默认情况下不允许这样做,但也许有一些安全/IT设备管理功能是可能的?
我一直在环顾四周,但找不到明确的答案。
是否可以防止用户更改输入法/键盘?
我知道默认情况下不允许这样做,但也许有一些安全/IT设备管理功能是可能的?
我一直在环顾四周,但找不到明确的答案。
就我执行的搜索而言 - 没有这样的方法可以阻止用户更改输入法。
如果你想添加一些约束,这个特定的 EdiText 不会必须提出一种特殊类型的键盘(数字键盘/文本)来输入。在 EditText 块layout/xyz.xml中添加以下参数。
android:inputType=""//your specific type gies here e.g "number" "textUri" ...
细节
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="142dp"
android:layout_marginTop="145dp"
android:ems="10" android:inputType="number">
您还可以通过选择适当的 EditText从属性视图中更改它。