android:textAppearance

Android之系统自带的文字外观设置及实际显示效果图

android:textAppearance

xml布局里面设置文字的外观:

如“android:textAppearance=“?android:attr/textAppearanceLargeInverse”这里引用的是系统自带的一个外观,

?表示系统是否有这种外观,否则使用默认的外观。

可设置的值如下:

textAppearanceButtontextAppearanceInversetextAppearanceLarge

textAppearanceLargeInversetextAppearanceMediumtextAppearanceSmallInversetextAppearanceMediumInverse

textAppearanceSmall

android判断软键盘是否弹出

//判断隐藏软键盘是否弹出

if(getWindow().getAttributes().softInputMode==WindowManager.LayoutParams.SOFT_INPUT_STATE_UNSPECIFIED)

{

//隐藏软键盘

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);

}

更多相关文章

  1. Android软键盘显示模式及打开和关闭方式(推荐)
  2. android监听软键盘+吐槽!
  3. Android输入子系统之InputReader读取键盘消息过程分析
  4. 如何在横屏控制软键盘显示一部分
  5. Android 进入界面禁止EditText弹出系统键盘,点击后再弹出系统键盘
  6. Android TextView 设置背景半透明,文字不透明
  7. Android 更改软键盘Enter键为搜索
  8. 把TextView中的文字添加阴影效果及Style的使用 mono版

随机推荐

  1. Android ActionBar 作为导航条的一个Bug
  2. android TabHost小结
  3. Android EditText 限制输入数字和字母设
  4. android selector 背景选择器
  5. Android系列教程之十:Intents and Intent
  6. Dagger2使用
  7. android监听键盘
  8. Android(安卓)5.X Activity过渡动画,以及
  9. Android的网络抓包工具Tcpdump
  10. 牛人博客收集