- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 Android:生成二维码(Zxing)
/** * 生成指定颜色的二维码 */ public static Bitmap createQRCodeBitmap(String content, int color) { return createQRCodeBitmap(content, 400, 400, "UTF-8", "H", "1", color, Color.WHITE); } /** * 生成简单二维码 * * @param content..
2021-02-19 10:22:02 476 1
原创 Android:设置沉浸式状态栏BaseActivity
/** * 通用页面,需要设置沉浸式 * @param fitSystemForTheme */ public void setFitSystemForTheme(boolean fitSystemForTheme) { setFitSystemForTheme(fitSystemForTheme, R.color.white); setStatusBarTextColor(false); } /** ...
2021-02-03 16:52:32 282 1
原创 Android:隐藏软键盘
/** * hide keyboard */ public void hideKeyboard() { InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); if (imm!=null&&getWindow().getAttributes().softInputMode != WindowMan...
2021-02-03 16:46:45 2253
android-studio-2021.3.1.15-windows 代号“海豚”(Dolphin)
2022-08-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人