简体   繁体   中英

Android: How to remove customize keyboard button from keyboard?

Please find below the screenshot wherein the circular box shows the customize button option.

在此处输入图像描述

XMl Code:

<EditText
        android:id="@+id/et_cost_per_mile"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:hint="Cost Per Mile(₤)"
        android:inputType="numberSigned"
/>

All I want to remove:: button from keyboard.

You have change input type like..

 android:inputType="phone"

You can not. This is your android keyboard app and you cant change it. The keyboard settings can be modified in the android settings. But obviously it depends on the user, not the developer.

The only way I think it will allow you to do that is that you include in your app a fake numeric keypad as a layer (Similar to the keyboard that appears when you have to type the pin of the app of your bank). However, I don't think this is worth it. With...

android:inputType = "numberSigned"

you are already blocking the user from entering letters or other characters, even if they change their keyboard.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM