2011年9月21日
摘要: Gallery本地开发是一个相对简单的例子,下面将讲棕此例子开发的过程与代码! 首先main.xml文件的代码: 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 android:layout_width="fill_parent" 5 android:layout_height="fill_pare 阅读全文
posted @ 2011-09-21 20:25 Conerlius 阅读(413) 评论(2) 推荐(1) 编辑
摘要: Android动画Android动画的实现主要有两种方式,一种是使用Tween,一种是利用Frame,一、Tween动画实现Tween动画是通过预先定义一组指令,这些指令指定了图形变换的类型、触发时间,持续时间。程序沿着时间线执行这些指令就可以实现动画效果。因此我们首先需要定义Animation动画对像,然后设置该动画的一些属性,最后通过startAnimation方法来开始动画。MainView.javaView Code MainActivity.javaView Code package com.chiefcto.Animation;import android.app.Activit. 阅读全文
posted @ 2011-09-21 20:24 Conerlius 阅读(307) 评论(1) 推荐(1) 编辑