上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: MultiDex的产生背景当Android系统安装一个应用的时候,有一步是对Dex进行优化,这个过程有一个专门的工具来处理,叫DexOpt。DexOpt的执行过程是在第一次加载Dex文件的时候执行的。这个过程会生成一个ODEX文件,即Optimised Dex。执行ODex的效率会比直接执行Dex文... 阅读全文
posted @ 2016-01-26 17:40 Michelle's Home 阅读(4984) 评论(0) 推荐(0) 编辑
摘要: 使用TextInputLayout创建一个登陆界面1.导入支持库使用TextInputLayout 控件需要导入两个库,一个是appcompat-v7,保证material styles可以向下兼容。另一个是Design Support Library。在项目的build.gradle文件中,添加下... 阅读全文
posted @ 2016-01-20 16:23 Michelle's Home 阅读(2645) 评论(0) 推荐(0) 编辑
摘要: editText.addTextChangedListener(new TextWatcher() { /** * 内容改变前调用 * 原有的文本s中,从start开始的count个字符将会被一个新的长度为after的文本替换,注... 阅读全文
posted @ 2016-01-20 15:45 Michelle's Home 阅读(1765) 评论(0) 推荐(0) 编辑
摘要: 1.当页面中有多个EditText时,第一个EditText会自动获取焦点,取消的办法:在EditText的父View中调用:android:focusable="true"android:focusableInTouchMode="true"eg: 阅读全文
posted @ 2016-01-20 15:14 Michelle's Home 阅读(925) 评论(0) 推荐(0) 编辑
摘要: 在系统控件中输入“a”能提示出android:id等所有属性。而在第三方库的控件中输入“a”只会提示“appNs”,但如果手动写app:id="@+id/aaa"系统也是可以识别的。命名空间已经引入。如下图:解决办法:删除.idea文件夹和所有的.iml文件,然后重启as,重新buildprojec... 阅读全文
posted @ 2016-01-20 14:01 Michelle's Home 阅读(3481) 评论(0) 推荐(0) 编辑
摘要: 以下属性以Dialog为例来讲解: 窗体的背景 Dialog 是否有边框 窗体是否有标题false是否为全屏false 是否要求窗体铺满整屏幕 false 窗体是否浮在下层之上@null 设置窗体内容背景false 是否显示壁纸@android:style/WindowTitle 窗... 阅读全文
posted @ 2016-01-19 14:29 Michelle's Home 阅读(1225) 评论(0) 推荐(0) 编辑
摘要: EditText有一个属性:android:textCursorDrawable,这个属性是用来控制光标颜色的android:textCursorDrawable="@null","@null"作用是让光标颜色和textcolor一样PS:textcursordrawable 在framework ... 阅读全文
posted @ 2016-01-18 22:22 Michelle's Home 阅读(213) 评论(0) 推荐(0) 编辑
摘要: windowActionModeOverlay:android:windowActionModeOverlay=“true|false” :actionmode 弹出时覆盖部分布局 若 false 则不符盖,将原有布局下移ActionMode用法链接:http://blog.csdn.net/xyz... 阅读全文
posted @ 2016-01-18 17:26 Michelle's Home 阅读(1210) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/ye1992/article/details/25286539http://www.jb51.net/article/43727.htmhttp://blog.sina.com.cn/s/blog_4540c3630100aq01.htmlhttp://ww... 阅读全文
posted @ 2015-10-01 21:26 Michelle's Home 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1)更改AlertDialog窗口大小的方法: AlertDialog dialog = new AlertDialog.Builder(this).create(); dialog.show(); WindowManager.LayoutParams params = dialog.getWind... 阅读全文
posted @ 2015-10-01 21:23 Michelle's Home 阅读(346) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页