2014年7月20日

Android 图片目录说明

摘要: Android Icon Size and Location for AppsDENSITYSIZELOCATIONRATIOSCREENMARGINXXXHDPI192×192drawable-xxxhdpi4640 DPI12 to 16 pixelsXXHDPI144×144drawable-... 阅读全文

posted @ 2014-07-20 14:35 宁静_致远 阅读(197) 评论(0) 推荐(0)

2014年2月24日

clearTaskOnLaunch的作用

摘要: android:clearTaskOnLaunch=["true""|"false"]比如A是的欢迎页面,B是当前的activity,在B页面退出应用,长按Home键后,在最近任务列表中启动应用,使用从A启动。如果设置了android:launchMode="singleTop",那么该属性没效果 阅读全文

posted @ 2014-02-24 16:29 宁静_致远 阅读(257) 评论(0) 推荐(0)

2014年2月22日

更新sdk下载失败

摘要: 今天更新sdk,遇到了更新下载失败问题:Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xmlFetched Add-ons List successfullyFetching URL: https://dl-ssl.google.com/android/repository/repository-8.xmlDone loading packages.Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xmlFailed t 阅读全文

posted @ 2014-02-22 13:34 宁静_致远 阅读(232) 评论(0) 推荐(0)

2013年9月28日

Android Method的使用方法

摘要: 首先新建一个用于实验的类public class TestClass { /** * 公共方法,没有参数,没有返回值 */ public void test() { System.out.println("test"); } /** * 公共方法 * @param str * @return */ public String testReturnString(String str) { return str; } /** * 私有方法 * @return ... 阅读全文

posted @ 2013-09-28 15:40 宁静_致远 阅读(4538) 评论(0) 推荐(0)

2013年4月26日

android开发笔记一

摘要: 1.在布局文件中include两个文件,下面的ListView会没有效果<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background=&q 阅读全文

posted @ 2013-04-26 17:53 宁静_致远 阅读(219) 评论(0) 推荐(0)

2013年3月28日

linux 批量重名名

摘要: 慢慢学着用linux以后总以为脚本比命令更神奇, 结果发现,有时候简单实在太美了!from:http://hi.baidu.com/suping/blog/item/a6d018172eb740164a90a71e.html2011-05-25 16:41修改当前目录下ok.txt 改成OK.txtfind . -type f -name "ok.txt" -exec rename 'ok.txt' 'OK.txt' {} \;查看/home下所有子目录的ok.txt并修改成OK.txtfind/home -type f -name &quo 阅读全文

posted @ 2013-03-28 15:59 宁静_致远 阅读(784) 评论(0) 推荐(0)

2013年3月27日

android中打开各种文件的方法

摘要: publicstaticIntentopenFile(StringfilePath){Filefile=newFile(filePath);if((file==null)||!file.exists()||file.isDirectory())returnnull;/*取得扩展名*/Stringend=file.getName().substring(file.getName().lastIndexOf(".")+1,file.getName().length()).toLowerCase();/*依扩展名的类型决定MimeType*/if(end.equals(" 阅读全文

posted @ 2013-03-27 11:24 宁静_致远 阅读(486) 评论(0) 推荐(0)

导航