【问题标题】:How to make Moto G Globe animation in an app?如何在应用程序中制作 Moto G Globe 动画?
【发布时间】:2015-02-13 19:50:28
【问题描述】:

我们正在构建一个 Android 应用程序,在等待时代替初始屏幕,我想添加一个动画,就像 Boot animation of Moto G。不完全相同,但将使用带有一些其他元素的地球仪。

所以我的问题是如何做到这一点?

非常感谢任何输入。

谢谢,

【问题讨论】:

标签: android animation android-animation motorola


【解决方案1】:

至于 android .. 你必须手动制作动画 .. 为此制作xml 文件animatiom-listres/drawable 下.. 然后添加项目并给出持续时间..

示例:::::

<?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/image1"
     android:duration="300"
     />
   <item 
     android:drawable="@drawable/image2"
     android:duration="300"

     />
     <item 
     android:drawable="@drawable/image3"
     android:duration="300"
     />
       <item 
     android:drawable="@drawable/image4"
     android:duration="300"
     />

android:oneshot="false"是一次又一次地重复动画..如果你不想重复,那就让它成为现实

制作动画后..将其添加到imageview ..

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-10-14
    • 2018-03-04
    • 1970-01-01
    • 1970-01-01
    • 2011-09-11
    • 1970-01-01
    • 2013-03-23
    相关资源
    最近更新 更多