Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
グリッドビューの例を使用しています。私が知りたいのは、ユーザーが特定の画像をクリックしたときに画像名を取得する方法があるということです。現在、クリックされた画像の位置を取得することができます。
これについて私を助けてください。
まず、listviewのようなカスタムグリッドビューを使用できます。
imageviewname.setTag("yourimagename"); imageviewname.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub String imgname = v.getTag(); // toast message } });