Android
文章平均质量分 79
cbjust
这个作者很懒,什么都没留下…
展开
-
xmlns:android分析 及 自定义xmlns
xmlns:android解释 xmlns其实就是xml namespace的缩写,表示使用哪个命名空间。一般布局文件中,都会添加 xmlns:android="http://schemas.android.com/apk/res/android" ,这就表示告诉开发工具使用android的一些属性。 自定义xmlns 当然也可以自定义一个命名空间,使用自定义的属性。下面通过一原创 2013-07-14 00:48:05 · 3460 阅读 · 2 评论 -
Bitmap使用
写了个小例子,读取asset目录下的图片文件。通过点击Button,显示在ImageView上。 Asset目录截图: 主Activity code: package com.cb.bitmaptest; import java.io.IOException; import java.io.InputStream; import android.os.Bundle; impor原创 2013-07-25 22:59:24 · 715 阅读 · 0 评论 -
StateListDrawable的使用
官方文档: Lets you assign a number of graphic images to a single Drawable and swap out the visible item by a string ID value. It can be defined in an XML file with the element. Each state Drawabl原创 2013-07-27 00:36:32 · 1394 阅读 · 0 评论 -
ClipDrawable使用
官方文档: A Drawable that clips another Drawable based on this Drawable's current level value. You can control how much the child Drawable gets clipped in width and height based on the level, as well原创 2013-07-26 23:21:18 · 894 阅读 · 0 评论 -
XmlResourceParser解析XML文件
官方文档: The XML parsing interface returned for an XML resource. This is a standard XmlPullParser interface, as well as an extended AttributeSet interface and an additional close() method on this inte原创 2013-07-26 23:45:28 · 2494 阅读 · 0 评论 -
Android 签名打包流程
FIrst of all, 安装ant及配置环境变量 接下来,开始流程。 0. 通过android list targets命令,查看Available Android targets,打包命令需要可用的target id。 1. 生成一些配置文件。如build.xml, local.properties, project.properties, proguard-project.txt原创 2015-05-31 01:45:36 · 632 阅读 · 1 评论