안드로이드 개발 질문/답변
(글 수 45,052)
view 내에서
영상재생 또는 프레임재생에 관한질문드립니다.
안드로이드내에서의 영상재생은 무조건 풀스크린밖에 되질않는건가요..?
영상재생사이즈를 줄여서 재생하거나 영상위에 다른 것(버튼 등) 을 올리는것은 불가능한지요.
작은 view 를 만들고 뷰에서 프레임 애니메이션 재생을 해보려고하는데
전체 레이아웃중에 작은 이미지 뷰를 하나 만들고
ImageView img = (ImageView)findViewById(R.id.ImageView01);
BitmapDrawable f1 = (BitmapDrawable)getResources().getDrawable(R.drawable.a1);
BitmapDrawable f2 = (BitmapDrawable)getResources().getDrawable(R.drawable.a2);
BitmapDrawable f3 = (BitmapDrawable)getResources().getDrawable(R.drawable.a3);
BitmapDrawable f4 = (BitmapDrawable)getResources().getDrawable(R.drawable.a4);
int reasonableDuration = 100;//또는 10
mAnimation = new AnimationDrawable();
mAnimation.addFrame(f1, reasonableDuration);
mAnimation.addFrame(f2, reasonableDuration);
mAnimation.addFrame(f3, reasonableDuration);
mAnimation.addFrame(f4, reasonableDuration);
img.setBackgroundDrawable(mAnimation);
mAnimation.setOneShot(false);
mAnimation.start();
와같은 소스로 진행했는데
첫번째 프레임만 보여지고 프레임바이식의 애니메이션이 진행이 안되는데 도움좀 부탁드립니다.
영상재생 또는 프레임재생에 관한질문드립니다.
안드로이드내에서의 영상재생은 무조건 풀스크린밖에 되질않는건가요..?
영상재생사이즈를 줄여서 재생하거나 영상위에 다른 것(버튼 등) 을 올리는것은 불가능한지요.
작은 view 를 만들고 뷰에서 프레임 애니메이션 재생을 해보려고하는데
전체 레이아웃중에 작은 이미지 뷰를 하나 만들고
ImageView img = (ImageView)findViewById(R.id.ImageView01);
BitmapDrawable f1 = (BitmapDrawable)getResources().getDrawable(R.drawable.a1);
BitmapDrawable f2 = (BitmapDrawable)getResources().getDrawable(R.drawable.a2);
BitmapDrawable f3 = (BitmapDrawable)getResources().getDrawable(R.drawable.a3);
BitmapDrawable f4 = (BitmapDrawable)getResources().getDrawable(R.drawable.a4);
int reasonableDuration = 100;//또는 10
mAnimation = new AnimationDrawable();
mAnimation.addFrame(f1, reasonableDuration);
mAnimation.addFrame(f2, reasonableDuration);
mAnimation.addFrame(f3, reasonableDuration);
mAnimation.addFrame(f4, reasonableDuration);
img.setBackgroundDrawable(mAnimation);
mAnimation.setOneShot(false);
mAnimation.start();
와같은 소스로 진행했는데
첫번째 프레임만 보여지고 프레임바이식의 애니메이션이 진행이 안되는데 도움좀 부탁드립니다.