小编Mub*_*rak的帖子

自定义键盘键看起来很模糊

我定制了软键盘.但键盘键(1,2,3,4,5,6,7,8,9,0,和OK)看起来很模糊.删除键很好,但其他键看起来很模糊.

这是我的键盘. 在此输入图像描述

这是我的自定义键盘xml文件

<Keyboard xmlns:android="http://schemas.android.com/apk/res/android"
android:horizontalGap="0px"
android:keyHeight="10%p"
android:keyWidth="24%p"
android:verticalGap="0px" >

<Row>
    <Key
        android:codes="49"
        android:keyEdgeFlags="left"
        android:keyLabel="1" />
    <Key
        android:codes="50"
        android:keyLabel="2" />
    <Key
        android:codes="51"
        android:keyLabel="3" />
    <Key
        android:codes="-3"
        android:keyEdgeFlags="right"
        android:keyLabel="OK"
        android:keyWidth="28%p" />
</Row>
<Row>
    <Key
        android:codes="52"
        android:keyEdgeFlags="left"
        android:keyLabel="4" />
    <Key
        android:codes="53"
        android:keyLabel="5" />
    <Key
        android:codes="54"
        android:keyLabel="6" />
    <Key
        android:codes="-5"
        android:isRepeatable="true"
        android:keyEdgeFlags="right"
        android:keyIcon="@drawable/sym_keyboard_delete"
        android:keyWidth="28%p" />
</Row>
<Row>
    <Key
        android:codes="55"
        android:keyEdgeFlags="left"
        android:keyLabel="7" />
    <Key
        android:codes="56"
        android:keyLabel="8" />
    <Key
        android:codes="57"
        android:keyLabel="9" />
    <Key
        android:codes="48"
        android:keyLabel="0"
        android:keyWidth="14%p" />
    <Key
        android:codes="46"
        android:keyEdgeFlags="right"
        android:keyLabel="."
        android:keyWidth="14%p" />
</Row>
Run Code Online (Sandbox Code Playgroud)

keyboard android blurry soft-keyboard

5
推荐指数
2
解决办法
1469
查看次数

当我们有多个活动时,如何集中运行时权限

对不起,我的英语不好.

Activity我的应用程序中有多个,我需要集中运行时应用程序权限.

我需要使用BaseActivity吗?

如果是,请建议我如何Activity在应用程序中的许多情况下处理它.

如果不是,请建议更好的方法来处理它.

我想减少代码冗余.没有兴趣一次又一次地编写相同的代码Activity.

我正在寻找负面情况,其中用户拒绝了许可,我必须显示理性,而不是继续要求允许.并基于我必须提供消息或我必须更新UI

java android android-activity runtime-permissions

5
推荐指数
1
解决办法
242
查看次数