im following the helloGallery tutorial but i would like to open the image when i click it instead of present a toast with the position of the image...any help?this is my code,that presents the position:
g.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView parent, View v, int position, long id) {
Toast.makeText(HelloGallery.this, "" + position, Toast.LENGTH_SHORT).show();
}
});
本教程显示了如何做您要寻找的东西: http : //www.androidpeople.com/android-gallery-imageview-example/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.