좋아, 내 문제는 여기에있어. 나는 많은 사진을 담고있는 앱을 가지고 있는데, 이것들을 집어 넣을 수 있기를 원했지만 ImageViewer가 기본적으로 이것을 지원하지 않았기 때문에 Webviewer를 대신 사용하겠다고 생각했다. 내 모든 그림은 내 "그림"int 및 그 그림 기능을 내가 webviewer로드 할 저장됩니다. 특정 \ drawable \ bla.jpg 모든 주위를 검색했지만 그것에 대해 아무것도 찾지 못했습니다. 참조 용으로 몇 가지 코드를 첨부하겠습니다.이미지 int를 웹보기로 설정할 수 없습니까?
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent=getIntent();
int picture=intent.getIntExtra("picture", 22);
setContentView(R.layout.pictureframe);
ImageView image = (ImageView) findViewById(R.id.pansarvagn);
image.setBackgroundResource(picture);
하고 여기에 내가
Webview image = (WebView) findViewById(R.id.pansarvagn);
image.(setdata bla bla)
처럼 매끄러운 원하고이 사진
Button tank = (Button) findViewById(R.id.tank);
tank.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
displayPicture(R.drawable.tank);
}
에 의해 호출 된 함수
public void displayPicture(int pictureresource){
Intent intent = new Intent();
intent.putExtra("picture", pictureresource);
intent.setClass(getApplicationContext(), Picture.class);
startActivity(intent);
더 내가 원하는 정교한하는 것입니다 이미지를 webview wh에 넣는다. ich 나는 확대 할 수있을 것이다. 그래서 내 사진으로 webview를 채우기 위해 webview 내부에 imageview의 일종. 그런 다음 확대 할 수 있기를 원합니다.