English 中文(简体)
甲状腺炎和甲状腺素吗?
原标题:Animation Drawable does not animate in android?

我在我的主要游戏层中形成了一种可推测和形象的观感,这种视线是由处理游戏线的活动(开始)所组合的。 我在这项处理活动中的守则就是这样:

            mDistractionsThread.animation.addFrame(getResources().getDrawable(R.drawable.one), 1000);
    mDistractionsThread.animation.addFrame(getResources().getDrawable(R.drawable.two), 1000);
    mDistractionsThread.animation.addFrame(getResources().getDrawable(R.drawable.three), 1000);
    mDistractionsThread.animation.setOneShot(false);

    mDistractionsThread.imageAnim =(ImageView) findViewById(R.id.img);
    mDistractionsThread.imageAnim.setBackgroundDrawable(mDistractionsThread.animation);


    mDistractionsThread.animation.start();

而且,正如你能够看到可变的分裂。 校对是read的。 这部法律汇编了罚款,但只显示第一个框架(R.drawable.one),根本不是囚犯。 我错失了什么?

我试图从(起)起,在分裂状态下 set。 现在,这只是给我一个致命的例外,因为观点只能从改变其田地的那类人身上改变——在这种情况下,这并不是游戏。

我如何能够解决这个问题,通过框架和奖金点来评估,跨越轴心?

很多人

问题回答

这是你开始估算的情况。 在活动开始时就开始。 援助





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签