登录
首页 » Android » android图片旋转、淡入淡出、缩放效果、移动效果示例

android图片旋转、淡入淡出、缩放效果、移动效果示例

于 2023-02-06 发布 文件大小:634.96 kB
0 227
下载积分: 2 下载次数: 1

代码说明:

android图片旋转、淡入淡出、缩放效果、移动效果示例,先来看下截图的运行效果,单击对应的按钮,即可看到效果,淡入淡出之类的,图片旋转之类的。   图片旋转的代码如下:   rotateAnimation.setDuration(5000);   animationSet.addAnimation(rotateAnimation);   image.startAnimation(animationSet);   淡入淡出效果:   AnimationSet animationSet = new AnimationSet(true);   animationSet.setInterpolator(new AccelerateInterpolator());   AlphaAnimation alphaAnimation = new AlphaAnimation(1, 0);   RotateAnimation rotateAnimation =   new RotateAnimation(0, 360,   Animation.RELATIVE_TO_PARENT, 1f,   Animation.RELATIVE_TO_PARENT, 0f);   animationSet.addAnimation(alphaAnimation);   animationSet.addAnimation(rotateAnimation);   alphaAnimation.setDuration(3000);   image.startAnimation(animationSet);   animationSet.setRepeatCount(4);

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • TVINFOR4.04
    allwinner a10 AV-IN驱动及android DEMO
    2013-10-22 15:42:24下载
    积分:1
  • android网络post和get发送数据
    用于Android和服务器通信的工具类,可以使用post方式和get方式向服务器发送hashmap数据。在hashmap中放入命令等其他key和value就可以调用服务起的不同程序
    2022-07-16 23:29:50下载
    积分:1
  • ksoap2
    说明:  android调用webservice.........(android use webservice)
    2020-06-20 19:20:02下载
    积分:1
  • RTSP播放器源码 Android平台
    实现RTSP的视频播放器,Java源码,用于Android平台。是完整的项目文件,编译后可直接运行。内有功能显示界面的图片。可用于android手机上。
    2022-03-22 12:19:18下载
    积分:1
  • Android 自定义弹出式菜单栏源码下载
    Android Custom Menu 弹出窗口式自定义菜单栏的实例源码,运行后通过轻触手机的菜单键,来唤出菜单窗口,再次点击菜单键,自定义弹出对话框则隐藏,菜单是布局在对话框窗口中的,在本例中,自定义弹出窗口继承PopupWindow,并封装有封装GridView组件和View 组件,GridView 为每个Item设置监听事件方法,部分代码先睹为快:   public CustomMenu(Activity activity, List menus) {   super(activity);   //View 样式文件R.layout.menu   view = activity.getLayoutInflater().inflate(R.layout.menu, null);   //实例化GridView组件   gvMenu = (GridView)view.findViewById(R.id.gv_menu);   //相关参数设置   this.setContentView(view);   this.setWidth(LayoutParams.FILL_PARENT);   this.setHeight(LayoutParams.WRAP_CONTENT);   //图片获取   Drawable drawable = activity.getResources().getDrawable(R.drawable.selector_focused_shape);   //相关特效设置   this.setBackgroundDrawable(drawable);   this.setAnimationStyle(R.style.PopupAnimation);   this.setFocusable(true);   //设置相关OnKeyListener事件   gvMenu.setOnKeyListener(new OnKeyListener() {   @Override   public boolean onKey(View v, int keyCode, KeyEvent event) {   if ((keyCode == KeyEvent.KEYCODE_MENU)&&(isShowing())) {    dismiss();//关闭P
    2022-10-12 07:55:03下载
    积分:1
  • A lightweight, well designed metronome app for Android
    Metronome is a lightweight, well designed metronome app for Android focused on offering a consistent and usable design without limiting functionality.
    2018-01-01下载
    积分:1
  • momo
    说明:  自己闲时网上找的改的陌陌的客户端,UI界面基本都有,可以作为学习的参考(When I am free, I can find some new clients on the internet. The UI interface is basically available, which can be used as a reference for learning.)
    2019-03-01 14:10:17下载
    积分:1
  • 安卓的一款天气app
    一个适合初学者学习做项目的天气项目,利用了BaseActivity,Myapplication等来管理项目,还有数据库的一些知识
    2022-12-29 07:25:06下载
    积分:1
  • UI设计实现右侧类似抽屉画出的效果
    通过拖动右侧的小图片可以拖出界面
    2015-03-16下载
    积分:1
  • test_linearLayout3
    安卓开发,实现数据增加,下拉到底部后自动增加新页并且增加数据(Android development, implement the data increases, down to the bottom after adding new pages and increase data automatically)
    2016-11-04 11:14:33下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载