随笔分类 -  android 状态栏,导航栏,虚拟键盘

摘要:在android的实践开发中,为了界面的美观,往往那些搜索框并没有带搜索按钮,而是调用了软键盘的搜索按钮,完成这次时间 1 2 好吧!直接上代码! <EditText android:id="@+id/my_chat_seach" android:layout_width="fill_parent" 阅读全文
posted @ 2018-03-21 11:22 一点点征服 阅读(1154) 评论(0) 推荐(0)
摘要:/获取屏幕原始尺寸高度,包括虚拟功能键高度 public static int getDpi(Context context){ int dpi = 0; WindowManager windowManager = (WindowManager) context.getSystemService(C 阅读全文
posted @ 2017-05-25 18:57 一点点征服 阅读(2052) 评论(0) 推荐(0)
摘要://获取虚拟按键的高度 public static int getNavigationBarHeight(Context context) { int result = 0; if (hasNavBar(context)) { Resources res = context.getResources 阅读全文
posted @ 2017-05-25 18:46 一点点征服 阅读(11298) 评论(0) 推荐(1)