zoukankan      html  css  js  c++  java
  • android图片闪烁或帧动画

    remote_recording_transition.xml 文件

    <?xml version="1.0" encoding="utf-8"?>
    <animation-list  
      xmlns:android="http://schemas.android.com/apk/res/android"  
      android:oneshot="false">
        <item android:drawable="@drawable/remote_recording" android:duration="800"></item>  
        <item android:drawable="@drawable/remote_recording_run" android:duration="800"></item> 
    </animation-list>  

     android:oneshot="false" 是否循环播放,flase是循环播放 true只播一次

    android:duration="800" 间隔时间

    java代码

    private AnimationDrawable recordingTransition;

    recording=(ImageView)findViewById(R.id.recording);

    recording.setBackgroundResource(R.drawable.remote_recording_transition);

    recordingTransition = (AnimationDrawable) recording.getBackground();

    recordingTransition.start();



  • 相关阅读:
    静态文件
    orm多表操作
    thinkphp5.0模块设计
    thinkphp5.0URL访问
    thinkphp5.0入口文件
    thinkphp5.0生命周期
    thinkphp5.0架构总览
    thinkphp5.0目录结构
    thinkphp5.0开发规范
    thinkphp5.0安装
  • 原文地址:https://www.cnblogs.com/keanuyaoo/p/3362176.html
Copyright © 2011-2022 走看看