Пожалуйста, мне нужна помощь. Я впервые здесь, чтобы спросить. Я надеюсь найти ответ. Это мой java, называемый открытой активностью. ОК ..
public class OpenMainActivity2 extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.word_list);
// Create a list of words
final ArrayList<Word> words = new ArrayList<Word>();
words.add(new Word("9/10", "SmackDown ", R.drawable.smackdown));
words.add(new Word("8/10", "Raw (Last Show)", R.drawable.rawee));
words.add(new Word("7/10", "Super Show Down ", R.drawable.supershowdown));
words.add(new Word("6/10", "UFC 229 FULL ", R.drawable.ufc229));
words.add(new Word("1/10", "RAW (Last Show) ", R.drawable.rawshowlast));
// Create an {@link WordAdapter}, whose data source is a list of {@link Word}s. The
// adapter knows how to create list items for each item in the list.
WordAdapter adapter = new WordAdapter(this, words, R.color.category_listcolor);
// Find the {@link ListView} object in the view hierarchy of the {@link Activity}.
// There should be a {@link ListView} with the view ID called list, which is declared in the
// word_list.xml layout file.
ListView listView = findViewById(R.id.list1);
// Make the {@link ListView} use the {@link WordAdapter} we created above, so that the
// {@link ListView} will display list items for each {@link Word} in the list.
listView.setAdapter(adapter);
}
}
И мне нужно знать, как добраться до Intent.к другому виду деятельности, в котором каждый список имеет свою активность. Или мне нужно знать, как сделать так, чтобы во всем списке была ссылка Url, когда я нажимаю на нее при переходе в Google или любую ссылку, например, Dailymotion.