Adding multiple images to AnimateDrawables sample code

by Madiba » Fri, 23 Apr 2010 12:38:36 GMT


Sponsored Links
 Hello,
I was trying to add more than one images in the AnimateDrawables under
com.example.android.apis.graphics, but for some reason I couldn't. Can
anyone post a sample code on how to accomplish it or at least explain
it to me?  This beginner programmer would really appreciate it :)

Thanks

--



Other Threads

1. Kristen schaal

http://www.youtube.com/profile?nomobile=1&user=sonyericsson

Habis liat channel ini...hh android saya serasa sangat atari :(

syd
ptk
a10 _o
....._\\>,
...(_)/(_)

-- 
===============

2. Confused by @Override

Hi-- I am not very experienced with Java, and I am confused about overriding 
a method. I am trying to override the OnBufferDraw() method by extending 
KeyboardView, like this:

  public class PhoneticKeyboardView extends KeyboardView {

       @Override
       private void onBufferDraw() {
            if (mBuffer == null || mKeyboardChanged) { ...

But when I compile it I get an error:

  cannot find symbol
    [javac] symbol  : variable mBuffer
    [javac] location: class 
com.tabcomputing.android.zenboard.PhoneticKeyboardView
    [javac]         if (mBuffer == null || mKeyboardChanged) {
    [javac]             ^

Which I don't understand b/c mBuffer is defined in KeyboardView. What am I 
doing wrong. Surely I do not have to redefine every class variable of the 
superclass?

-- 

3. Internet for the App

4. The server could not process your apk. Try again. (again...)

5. installing sdk

6. Android 3.0 Starter Pack - XML Verification Error

7. Regarding Image Fetching