level 8
error
Unknow entity AnamationListener
这句话什么意思?肿么解决?
2013年11月02日 01点11分
1
level 9
没有定义AnamationListener这个类。
2013年11月02日 01点11分
3
该怎么解决呢?
2013年11月02日 01点11分
是不是要导入什么包?
2013年11月02日 01点11分
回复
@楚国令伊 :没看代码谁知道,你把报错下划线那里贴图出来。I
2013年11月02日 01点11分
import android.app.*; import android.content.*; import android.os.*; import android.view.animation.*; import android.widget.*; public clas
2013年11月02日 01点11分
level 8
package com.mycompany.english;
import android.app.*;
import android.content.*;
import android.os.*;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.*;
public class MainActivity extends Activity
{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ImageView age=(ImageView)findViewById(R.id.age);
Animation fade=AnimationUtils.loadAnimation(this,R.anim.fade);
age.startAnimation(fade);
fade.setAnimationListener(new AnimationListener(){
public void onAnimationEnd(Animation animation)
{
Intent intent=new Intent();
intent.setClass(MainActivity.this,first.class);
startActivity(intent);
}
});
}}I
2013年11月02日 01点11分
5
level 8
倒数第一12行的AnimationListener上有红线
2013年11月02日 01点11分
6
在波浪线处长按点Fix。
2013年11月02日 01点11分
长按了,但是不出现fix, 我就不知道该怎么办了
2013年11月02日 02点11分
回复 _llld :
@_llld 能不能详细指点下?I
2013年11月02日 02点11分
level 8
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
2015年10月03日 09点10分
7