@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//left_Button.setOnClickListener(this);
//right_Button.setOnClickListener(this);
System.gc();
Intent i = getIntent();
Bundle extras = i.getExtras();
BitmapFactory.Options bfo = new BitmapFactory.Options();
bfo.inSampleSize = 2;
filename = extras.getString("filename");
ImageView iv = new ImageView(getApplicationContext());
Bitmap bm = BitmapFactory.decodeFile(filename, bfo);
iv.setImageBitmap(bm);
setContentView(iv);
}
}
위 예제 코드는 사진을 보여주는 소스인데요
저는 실행시 보여지는 이미지 위에 < > 와 같은 방향표시 아이콘을 넣고싶습니다....
일반적으로 setContentView 를 통해서 xml을 추가할 경우에는
이미지 뒤에 묻혀버리고 bt1.bringToFront(); 를 통해 제일 앞으로 끌어올려고하면 널포인트 에러가 뜨네요 ㅠ
어떻게하면 이미지 위로 화살표 버튼이 나오게 할 수 있을까요;;;
고수님들의 조언 부탁드립니다.