摘要: 导入方式:/build.gradlerepositories { maven { url "https://jitpack.io" }}/app/build.gradledependencies { compile 'com.github.zzz405... 阅读全文
posted @ 2015-10-27 14:27 小白第二 阅读(1124) 评论(0) 推荐(0) 编辑
摘要: Activity的生命周期:Fragment的生命周期: 阅读全文
posted @ 2015-10-27 14:11 小白第二 阅读(253) 评论(0) 推荐(0) 编辑
摘要: public static boolean isServiceExisted(Context context, String className) { ActivityManager activityManager = (ActivityManager) context ... 阅读全文
posted @ 2015-10-27 14:07 小白第二 阅读(9106) 评论(0) 推荐(0) 编辑
摘要: 1.从google搜索内容 Intentintent=newIntent(); intent.setAction(Intent.ACTION_WEB_SEARCH); intent.putExtra(SearchManager.QUERY,"searchString") st... 阅读全文
posted @ 2015-10-27 14:04 小白第二 阅读(943) 评论(0) 推荐(0) 编辑
摘要: /** * 菜单、返回键响应 */ @Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub if(keyCode == Key... 阅读全文
posted @ 2015-10-27 13:55 小白第二 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 在该listview的点击事件中加入一下代码即可listView.setSelectionFromTop(position, 0); 阅读全文
posted @ 2015-10-27 13:51 小白第二 阅读(2463) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 解压缩文件到指定的目录. 3 * 4 * @param unZipfileName 5 * 需要解压缩的文件(带路径) 6 * @param mDestPath 7 * 解... 阅读全文
posted @ 2015-10-27 13:49 小白第二 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 1.背景自适应且不失真问题的存在制作自适应背景图片是UI开发的一个广泛问题,也是界面设计师渴望解决的问题,我相信我们彼此都深有体会。比如,列表的背景图一定,但是列表的高度随着列表数据项会发生变化;标题栏的背景,无论横屏还是竖屏,高分辨率还是低分辨率,都能自动填充满,而且不失真等等背景问题。根据以往的... 阅读全文
posted @ 2015-10-27 13:45 小白第二 阅读(17191) 评论(0) 推荐(0) 编辑
摘要: 感觉系统自带的对话框弹出太生硬?那就试试NiftyDialogEffects吧,类似于(Nifty Modal Window Effects),效果是模仿里面实现的ScreenShot...gradle配置如下:dependencies { compile 'com.nineoldandroi... 阅读全文
posted @ 2015-10-27 13:29 小白第二 阅读(1451) 评论(0) 推荐(1) 编辑