Android日常整理(三)---intent打开浏览器、软键盘弹出
2014-08-25 18:53
211 查看
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: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日常整理(四)---Menu键监听、intent打开浏览器
- android使用主流浏览器打开网页,无需弹出选择。
- android在打开activity时如何防止edittext获取焦点弹出软键盘
- 【Android】通过 Intent 调用浏览器打开链接
- 再识Intent-实现调用Android内置浏览器打开网页
- Android学习笔记 ---- 隐式Intent使用--打开Android默认浏览器
- android 程序中打开手机浏览器 Intent.ACTION_VIEW
- android 程序中打开手机浏览器 Intent.ACTION_VIEW
- Android开发:使用Intent打开电话、短信、邮箱、本地文件等系统应用程序整理大全
- android 打开浏览器 以及其他一些网友总结的intent大全
- Android开发之使一打开activity等界面Edittext获取焦点,弹出软键盘java代码实现
- Android浏览器打开本地app前端同学的两种配置方式Url scheme和Android intent
- 打开页面默认弹出软键盘,同时兼容iOS和Android
- [置顶] Android开发之使一打开activity等界面Edittext获取焦点,弹出软键盘java代码实现
- Android 利用发送Intent播放本地视频和网络视频(浏览器打开这个URL)
- android软键盘打开页面不弹出
- android Intent打开URL链接(动态打开浏览器网页)
- Android【WebView】 防止调用系统浏览器打开页面 看了好多朋友写的代码我在整理了
- Android中通过intent打开浏览器到指定网页
- Android开发:使用Intent打开电话、短信、邮箱、本地文件等系统应用程序整理大全