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.
グリッドビューを作成しました。Gridviewで選択した画像に背景画像(裏面のグローなど)を設定したいです。どうすればいいですか?
これを試して。
myGridView.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) { arg1.setBackgroundDrawable(d); //or arg1.setBackgroundResource(resid); } });