package com.android.Riverchk;
import android.app.Activity;
import android.os.Bundle;
import android.view.animation.TranslateAnimation;
import android.widget.ImageView;
public class checkr extends Activity {
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
ImageView i1;
i1=(ImageView)findViewById(R.id.i1);
i1.setImageResource(R.drawable.flower);
setContentView(R.layout.main);
TranslateAnimation trans1 = new TranslateAnimation(0, 30, 0,
0);
trans1.setStartOffset(0);
trans1.setDuration(800);
trans1.setFillAfter(true);
i1.startAnimation(trans1);
}
}
this code gives nullpointerexception
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---