2012年11月11日
摘要: 创建重复的背景图片在drawable目录下创建一个repeat_bg.xml: src是引用图片的名称 1 <?xmlversion="1.0"encoding="utf-8"?> 2 <bitmapxmlns:android="http://schemas.android.com/apk/res/android" 3 ... 阅读全文
posted @ 2012-11-11 14:13 lee0oo0 阅读(8002) 评论(2) 推荐(1) 编辑
摘要: privatevoidCopyAssets(StringassetDir,Stringdir){String[]files;try{//获得Assets一共有几多文件files=this.getResources().getAssets().list(assetDir);}catch(IOExceptione1){return;}FilemWorkingPath=newFile(dir);//如果文件路径不存在if(!mWorkingPath.exists()){//创建文件夹if(!mWorkingPath.mkdirs()){//文件夹创建不成功时调用}}for(inti=0;i<f 阅读全文
posted @ 2012-11-11 10:10 lee0oo0 阅读(3629) 评论(0) 推荐(0) 编辑