随笔分类 -  Android动画效果

1 2 下一页
【在线】Actionbar Style Generator:ActionBar风格生成器
摘要:这个ActionBar风格生成器可以让你轻松地创建一个简洁、有吸引力且无漏洞的自定义actionbar。它会生成所有9种必须的patch assets以及相关XML的drawables和styles文件,这些文件可以直接复制到你的项目中。 官方网站:http://jgilfelt.github.io 阅读全文
posted @ 2016-05-06 23:18 大米稀饭 阅读(221) 评论(0) 推荐(0) 编辑
82、文字混动效果
摘要:第一种方式实现:ListView + Timer ,简单,但是效果生硬。 第二种方式实现:自定义控件 + handler。 有动画效果。 阅读全文
posted @ 2016-04-11 10:59 大米稀饭 阅读(364) 评论(0) 推荐(0) 编辑
多个按钮左右相互挤压效果
摘要:1 6 13 18 23 28 33 34 1 package com.example.xinxindemo; 2 3 import android.app.Activity; 4 import andr... 阅读全文
posted @ 2015-05-04 18:02 大米稀饭 阅读(312) 评论(0) 推荐(0) 编辑
给控件设置各种小动画效果
摘要:1 rootView.findViewById(R.id.btnAnimMe).setOnClickListener(new View.OnClickListener() {2 @Override3 public void onCli... 阅读全文
posted @ 2015-05-04 16:04 大米稀饭 阅读(268) 评论(0) 推荐(0) 编辑
Android 动画深入解析
摘要:http://blog.csdn.net/rain_butterfly/article/details/39642613 阅读全文
posted @ 2015-04-17 15:03 大米稀饭 阅读(103) 评论(0) 推荐(0) 编辑
android桌面小火箭升空动画
摘要:1 public class MainActivity extends Activity { 2 @Override 3 protected void onCreate(Bundle savedInstanceState) { 4 super.onCreate(sa... 阅读全文
posted @ 2014-09-21 15:08 大米稀饭 阅读(1123) 评论(0) 推荐(0) 编辑
动画 -- 按钮 -- 左右晃动
摘要:1 import android.view.animation.Animation; 2 import android.view.animation.Transformation; 3 4 public class CustomAnim extends Animation { 5 6 ... 阅读全文
posted @ 2014-08-31 21:06 大米稀饭 阅读(467) 评论(0) 推荐(0) 编辑
动画 -- 按钮 --- 从无到有(中心)
摘要:1 // sa = new ScaleAnimation(0, 1, 0, 1,100,50); 2 // sa = new ScaleAnimation(0, 1, 0, 1, Animation.RELATIVE_TO_SELF, 0.5f, Animation.R... 阅读全文
posted @ 2014-08-31 21:01 大米稀饭 阅读(260) 评论(0) 推荐(0) 编辑
动画 -- 点击按钮 -- 向右下方移动
摘要:1 findViewById(R.id.btnTranslateMe).setOnClickListener(new View.OnClickListener() {2 @Override3 public void onClick(View arg0)... 阅读全文
posted @ 2014-08-31 20:58 大米稀饭 阅读(232) 评论(0) 推荐(0) 编辑
动画 -- 点击按钮 -- 顺时针旋转一圈
摘要:1 findViewById(R.id.btnRotateMe).setOnClickListener(new View.OnClickListener() {2 @Override3 public void onClick(View arg0) {4 arg0.s... 阅读全文
posted @ 2014-08-31 20:52 大米稀饭 阅读(546) 评论(0) 推荐(0) 编辑
动画 -- 点击按钮
摘要:1 @Override 2 public View onCreateView(LayoutInflater inflater, ViewGroup container, 3 Bundle savedInstanceState) { 4 View rootView = inf... 阅读全文
posted @ 2014-08-31 20:43 大米稀饭 阅读(153) 评论(0) 推荐(0) 编辑
动画 -- ListView列表item逐个出来(从无到有)
摘要:1 import android.app.ListActivity; 2 import android.os.Bundle; 3 import android.widget.ArrayAdapter; 4 5 public class MainActivity extends ListActiv... 阅读全文
posted @ 2014-08-31 20:20 大米稀饭 阅读(386) 评论(0) 推荐(0) 编辑
动画 --- 添加 和 移除 按钮
摘要:1 import android.app.Activity; 2 import android.os.Bundle; 3 import android.view.Menu; 4 import android.view.MenuItem; 5 import android.view.View; 6 ... 阅读全文
posted @ 2014-08-31 19:56 大米稀饭 阅读(317) 评论(0) 推荐(0) 编辑
动画-- 按钮按序列(从小到大)显示
摘要:1 import android.app.Activity; 2 import android.app.Fragment; 3 import android.os.Bundle; 4 import android.view.LayoutInflater; 5 import android.view... 阅读全文
posted @ 2014-08-31 19:39 大米稀饭 阅读(507) 评论(0) 推荐(0) 编辑
【特效】手指滑动:水波纹
摘要:package com.example.plasma;import android.app.Activity;import android.content.Context;import android.os.Bundle;import android.view.MotionEvent;import android.view.View;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.graphics.Canvas;public class AnimActivity extend 阅读全文
posted @ 2013-06-07 13:16 大米稀饭 阅读(379) 评论(0) 推荐(0) 编辑
自定义控件:(动画)(特效)AllAppList平面矩阵3D效果
摘要:main.xml<?xml version="1.0" encoding="utf-8"?><com.hhj.appListDemo.ScrollLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/ScrollLayoutTest" android:layout_width="fill_parent" android:layout_height="fill 阅读全文
posted @ 2013-06-07 11:40 大米稀饭 阅读(423) 评论(0) 推荐(0) 编辑
【动画】【特效】 17种常用动画特效
摘要:主Activity的布局文件xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/widget33" android:layout_width="fill_parent" android:layout_height="fill_parent" andro 阅读全文
posted @ 2013-06-06 11:26 大米稀饭 阅读(1102) 评论(0) 推荐(0) 编辑
【特效】3D旋转环形菜单
摘要:主页面的xml文件<?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <LinearLayout android:id="@+id/layout_ 阅读全文
posted @ 2013-06-05 18:18 大米稀饭 阅读(707) 评论(0) 推荐(0) 编辑
【特效】【自定义控件】关键字飘飞效果
摘要:布局文件<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <com.nil.android.keyword.KeywordsFlow android:id="@+id/keywordsFlow" android:layout_width="fil 阅读全文
posted @ 2013-06-05 17:10 大米稀饭 阅读(242) 评论(0) 推荐(0) 编辑
EditText X/Y轴和仿苹果 抖动效果
摘要:ShakeDemo\res\layout\main.xml<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/bg" android:layout_width="fill_parent" android:layout_height="fill_parent&quo 阅读全文
posted @ 2013-05-23 14:26 大米稀饭 阅读(392) 评论(0) 推荐(0) 编辑

1 2 下一页