I want to make Webview which should contain many Imageviews and they should be clickable ? Is it possible to add many Imageviews on webviews ? or like adding many imageViews on View and then adding that View to webView
I want to achieve this so I can use builtinZoom control of webview
is it possible ?
here is the code just to try if I can achieve this ?
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
WebView web= new WebView(this);
View iv = (View) findViewById(R.id.view1);
ImageView iv1= (ImageView) findViewById(R.id.imageView1000);
iv1.setOnClickListener(this);
iv.setOnClickListener(this);
web.addView(iv);
web.getSettings().setBuiltInZoomControls(true);
web.getSettings().setSupportZoom(true);
setContentView(web, new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));
}
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Toast msg= Toast.makeText(this, " I am in the click", 100);
}
please provide good example if its possible
WebView allows you to create your own window for viewing web pages.
Read more about WebView here
If you really want to create your application using a WebView, you should consider using a different approach, maybe web programming.
Good luck,
Arkde