摘要: <?xml version="1.0" encoding="utf-8"?><resources> <color name="White">#FFFFFF</color> <color name="Ivory">#FFFFF0</color> <color name="LightYellow">#FFFFE0</color> <color name="Yellow"># 阅读全文
posted @ 2011-12-24 14:30 freedragon 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 目录Directory资源类型Resource Typesres/anim/XML文件,它们被编译进逐帧动画(frame by frame animation)或补间动画(tweened animation)对象res/drawable/.png、.9.png、.jpg文件,它们被编译进以下的Drawable资源子类型中:要获得这种类型的一个资源,可以使用Resource.getDrawable(id)位图文件9-patches(可变尺寸的位图)为了获取资源类型,使用mContext.getResources().getDrawable(R.drawable.imageId)注意:放在这里的图 阅读全文
posted @ 2011-12-24 14:24 freedragon 阅读(380) 评论(0) 推荐(0) 编辑
摘要: main.javapackage com.demo.scrollview;import android.app.Activity;import android.os.Bundle;import android.os.Handler;import android.view.View;import android.widget.Button;import android.widget.HorizontalScrollView;import android.widget.LinearLayout;import android.widget.ScrollView;import android.widg 阅读全文
posted @ 2011-12-24 13:42 freedragon 阅读(9737) 评论(1) 推荐(0) 编辑
摘要: //MainActivity.java @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); /* 1.定义main.xml视图 * 2.res中定义xml文件,类型Animation 四种补间动画效果演示 * 3.找到对应键,开始动画。 * */ EditText tvTarget = (Ed... 阅读全文
posted @ 2011-12-24 13:09 freedragon 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 不能发 阅读全文
posted @ 2011-12-24 12:59 freedragon 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 开篇有意仅为测试2011年12月24日12:57:26 阅读全文
posted @ 2011-12-24 12:54 freedragon 阅读(99) 评论(0) 推荐(0) 编辑
摘要: service简单应用,Log中打印了启动和结束的调用步骤mainActivitypackage com.gongsi.service18;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.view.View;import android.widget.Button;public class Service18Activity extends Activity { /** Called when the activity is first cr... 阅读全文
posted @ 2011-11-25 20:14 freedragon 阅读(359) 评论(0) 推荐(0) 编辑
摘要: Bundle简单传参示例mainActivitypackage com.gongsi.testbundle;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.view.View;import android.widget.Button;public class TestBundleActivity extends Activity { private Button btn; private View.OnClickListener c1;... 阅读全文
posted @ 2011-11-25 19:30 freedragon 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 任务添加程序,输入信息点击方向键中介的键添加。KEYCODE_DPAD_CENTER(涉及内容,adapter简单应用,简单布局。)mainActivitypackage com.gongsi.todolist;import java.util.ArrayList;import android.app.Activity;import android.os.Bundle;import android.view.KeyEvent;import android.view.View;import android.widget.ArrayAdapter;import android.widget.Edi 阅读全文
posted @ 2011-11-25 19:16 freedragon 阅读(1131) 评论(0) 推荐(0) 编辑
摘要: 1.A guy will make you think he loves you, but he really doesn't. A girl will make you think she doesn't love you, when she really does.2.A girl needs to wear two things to look great: Confidence and Smile !3.Every time you come to my mind, I realize I'm smiling. 。4.That's the worst p 阅读全文
posted @ 2011-09-16 21:11 freedragon 阅读(714) 评论(0) 推荐(1) 编辑