240 发简信
IP属地:福建
  • 安卓使用.inflate创建布局注意事项

    如果使用(ViewGroup)LayoutInflater.from(tcontext).inflate(int resource, ViewG...

  • Android中根据字符串动态获取资源文件ID

    Android中getIdentifier方法的使用 在Android开发中,我们经常会遇到需要动态获取资源的情况,例如通过资源的名称获取资源的...

  • 使用CountDownTimer控件实现倒计时和验证码发送按钮

    private CountDownTimer mCountDownTimer; private TextView time; priva...

  • Resize,w 360,h 240
    Kotlin 转 Java

    打开选中要转换的Kotlin文件。 步骤一:Kotlin代码转为Bytecode编码。 菜单:Tools -> Kotlin -> Show K...

  • 安卓修改SwitchCompat颜色

    一、控件属性 //修改开关色值就是最后两个属性决定的 <androidx.appcompat.widget.SwitchCompat a...

  • 从QQ微信第三方应用打开文件

    ①:首先在清单文件相关activity下配置 <activity android:name=".MainActivity" android:...

  • 安卓打开自带的文件夹管理(指定路径)

    打开指定路径 传入的路径格式为path为andriod文件管理里的路径,直接传在文件管理器中的路径即可. 如果是通过context.getExt...

  • eventbus简单使用

    GitHub:https://github.com/greenrobot/EventBus ①定义事件 public static class ...

  • 安卓禁止界面自动弹出软键盘输入法

    在mainfest文件中把对应的activity设置 android:windowSoftInputMode="stateHidden"