クリックしたListView Itemの名前をインテントに配置する方法はありますか?クリックしたListView要素の名前
barlist.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Intent i = new Intent(Barlocator.this, Barinfo.class);
i.putExtra(,);
startActivity(i);
}
});
ありがとうございます! :)
リストビューなどの使用が埋められてのString =「項目」のような文字列を取りますSQLデータベースからの文字列を使用しています... – mat
私は型を意味しました、彼らは文字列ですか?そうであれば、YourItemTypeをStringに置き換えて、文字列を 'position'位置に取得します。 –
その場合(SQLデータベース)何を変更する必要がありますか?私に例を挙げてもらえますか? – mat