gpt4 book ai didi

android - 如何移动到另一个屏幕

转载 作者:行者123 更新时间:2023-11-30 04:13:20 27 4
gpt4 key购买 nike

我是 android 的新手,我有 listview,我需要在 listOnclick 中转移到另一个屏幕,但不知道如何做到这一点

我现在做的是以下内容

@Override
protected void onListItemClick(ListView l, View v, int position, long id) {

//get selected items
String selectedValue = (String) getListAdapter().getItem(position);
Toast.makeText(this, selectedValue, Toast.LENGTH_SHORT).show();



}

最佳答案

关于android - 如何移动到另一个屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10470483/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com