2013年7月12日

android 软件盘打开 关闭

摘要: 点击按钮关闭软件盘 public static void hideSoftInput(Activity acitivity) { LogUtil.d("hideSoftInput"); InputMethodManager imm = (InputMethodManager) acitivity .getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(acitivity.getWindow().getDecorView() .getApplicationWindowToken( 阅读全文

posted @ 2013-07-12 17:35 杀#嘻哈 阅读(392) 评论(0) 推荐(1) 编辑

tableLayout 属性 ; 背景选择属性

摘要: TableLayout的布局属性:android:stretchColumns="1" (设置TableLayout的所有行的第二列为扩展列,第一列后的其余空间由第二列补齐)控件选中效果,xml文件设置:/res/drawable/widget_input.xmlandroid:drawable放一个drawable资源android:state_pressed 是否按下,如一个按钮触摸或者点击。android:state_focused 是否取得焦点,比如用户选择了一个文本框。android:state_hovered 光标是否悬停,通常与focused state相同, 阅读全文

posted @ 2013-07-12 14:25 杀#嘻哈 阅读(402) 评论(0) 推荐(0) 编辑

导航