码迷,mamicode.com
首页 >  
搜索关键字:animation-list    ( 36个结果
显示gif动画(帧动画的播放)
在android上显示gif不太方便,虽然有控件可以实现,但是效果不是很好,保险点儿的作法还是使用帧动画来处理。①在XML中定义animation-list: ②在XML布局中定义ImageView,指定其src属性或background属性为"@anim/loading"③在java代码中:...
分类:其他好文   时间:2014-11-04 17:14:08    阅读次数:204
创建和使用逐帧动画
逐帧动画与传统的卡通相似,也有点像gif。就是搞几张图片,根据顺序显示。 AnimationDrawable类可以用来创建一个新的表示为一个Drawable资源的逐帧动画,可以使用XML,在应用程序的res/drawable文件夹下讲动画Drawable资源定义为外部资源。 下面看程序和效果: <animation-list xmlns:android="http://schemas.an...
分类:其他好文   时间:2014-08-13 01:20:54    阅读次数:238
android自定义progressdialog
http://blog.sina.com.cn/s/blog_3e333c4a010133ze.html 1、建立myprogress.xml在 res/anim中 <?xml version="1.0" encoding="UTF-8"?> <animation-list android:oneshot="false" xmlns:android="http://schemas...
分类:移动开发   时间:2014-07-21 13:26:59    阅读次数:224
android 进度条
在之前实现自定义进度条的时候,基本上都是使用ImageView来实现的,见 ?? Android 用Animation-list实现逐帧动画,最近一段时间看到APP的进度条很多都是ProgressBar然后圆圈里面是一张图片,所以就查看了一下ProgressBar的使用。 1、动画实现     定义res/anim/loading.xml,例如: <animation-list and...
分类:移动开发   时间:2014-06-04 13:48:12    阅读次数:385
2C02-View-Layout-Animation-list-Cascade
描述list layout item有上倒下依次显示的代码实现形式 LayoutAnimation2.java /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may no...
分类:其他好文   时间:2014-05-21 09:02:15    阅读次数:250
2C03-View-Layout-Animation-list-Reverse-Order
介绍list  item倒序显示 LayoutAnimation3.java /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file e...
分类:其他好文   时间:2014-05-21 08:25:44    阅读次数:278
36条   上一页 1 2 3 4
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!