摘要: android 2048 阅读全文
posted @ 2014-08-13 09:23 woodWu 阅读(383) 评论(0) 推荐(0) 编辑
摘要: Android中加载位图的关键的代码: AssetManager assets =context.getAssets(); //用一个AssetManager 对象来从应用程序包的已编译资源中为工程加载资产 InputStream istream=assets.open("/*位图的名字*/");B... 阅读全文
posted @ 2014-05-16 10:06 woodWu 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 一个PDF文档从大到小可以分成如下几个要素:文档、章节、小节、段落、表格、列表、com.lowagie.text.Document表示PDF文档。必须为它创建一个PDF写入器,即com.lowagie.text.pdf.PdfWriter对象,写入器的作用是将Document对象与目标文件关联起来。调用Document 的open方法便打开了与目标文件的连接;Document的add 方法用于为文档添加章节 。2 com.lowagie.text.Chapter表示PDF文档中的章节。它的setTitle方法用于设置章节的标题;setNumberDepth方法用于设置小节的编号级别;add方法 阅读全文
posted @ 2014-04-13 09:37 woodWu 阅读(631) 评论(0) 推荐(0) 编辑