Привет всем
У меня проблема с этим кодом. Я пытаюсь сделать изображение более ярким. Это ошибка затмения:
The method loadAnimation(Context, int) in the type AnimationUtils is not applicable for the arguments (new Runnable(){}, int)
Это мой код:
Handler timerHandler = new Handler();
{
Runnable loadImg2 = new Runnable() {
public void run() {
DisplayTitle(gCursor);
Bitmap bitmap2 = BitmapFactory.decodeFile(sdcard/image.jpg);
myImageView=(ImageView)findViewById(R.id.imageview1);
(ImageView)findViewById(R.id.myImageView);
Animation myFadeInAnimation = AnimationUtils.loadAnimation(this, R.anim.fadein);
myImageView.startAnimation(myFadeInAnimation);
myImageView.setImageBitmap(bitmap2);
timerHandler.postDelayed(clearImg, 55000);//55000);
");
}
};