Please help me, I want to show other activity when clicked in "about us", "more from us" of listView, how can I do that?
ArrayList<Word> words = new ArrayList<Word>();
words.add(new Word("About Us", R.id.main_images));
words.add(new Word("More From Us", R.id.main_images));
WordAdapter adapter = new WordAdapter(this, words);
ListView listView = findViewById(R.id.list);
listView.setAdapter(adapter);
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
//what should I write here, so I can go other when clicked in listview
}
});