Android日常整理(三)---intent打开浏览器、软键盘弹出
16lz
2021-01-23
android:textAppearance
Android之系统自带的文字外观设置及实际显示效果图
android:textAppearance
xml布局里面设置文字的外观:
如“android:textAppearance=“?android:attr/textAppearanceLargeInverse”这里引用的是系统自带的一个外观,
?表示系统是否有这种外观,否则使用默认的外观。
可设置的值如下:
textAppearanceButton、textAppearanceInverse、textAppearanceLarge、
textAppearanceLargeInverse、textAppearanceMedium、textAppearanceSmallInverse、textAppearanceMediumInverse、
textAppearanceSmall。
android判断软键盘是否弹出
//判断隐藏软键盘是否弹出
if(getWindow().getAttributes().softInputMode==WindowManager.LayoutParams.SOFT_INPUT_STATE_UNSPECIFIED)
{
//隐藏软键盘
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
}
更多相关文章
- Android软键盘显示模式及打开和关闭方式(推荐)
- android监听软键盘+吐槽!
- Android输入子系统之InputReader读取键盘消息过程分析
- 如何在横屏控制软键盘显示一部分
- Android 进入界面禁止EditText弹出系统键盘,点击后再弹出系统键盘
- Android TextView 设置背景半透明,文字不透明
- Android 更改软键盘Enter键为搜索
- 把TextView中的文字添加阴影效果及Style的使用 mono版