Android
- 5 ответов
- 0 вопросов
3
Вклад в тег
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
Intent i = new Intent(getBaseContext(), Activity2.class);
i.putExtra("position", position);
startActivity(i);
}
int key = getIntent.getIntExtra("position", 0);
switch(i){
case 1:
//load Fr1
case 2:
//load Fr2