android中的屏幕导航 我认为这可能是一个很冷的问题,我在Android上没有那么多的深度知识,所以只发布这个问题。考虑我有2个屏幕A和屏幕B。如果用户从微调器中选择任何1个值,我将重定向到B。这工作正常。但当用户从微调器中选择任何值时,它会产生一种错觉,即它将进入屏幕A,然后进入屏幕B。我不知道这是不能更改的
我的代码:android中的屏幕导航 我认为这可能是一个很冷的问题,我在Android上没有那么多的深度知识,所以只发布这个问题。考虑我有2个屏幕A和屏幕B。如果用户从微调器中选择任何1个值,我将重定向到B。这工作正常。但当用户从微调器中选择任何值时,它会产生一种错觉,即它将进入屏幕A,然后进入屏幕B。我不知道这是不能更改的,android,android-intent,Android,Android Intent,我的代码: s1.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { public void onItemSelected(AdapterView<?> s2, View arg1, int pos, long id) {
s1.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener()
{
public void onItemSelected(AdapterView<?> s2, View arg1,
int pos, long id)
{
if(!s1.getItemAtPosition(pos).equals("No recurrence"))
{
Intent intent=new Intent(getApplicationContext(),IncomeStartDate.class);
startActivityForResult(intent, 1);
}
}
}
s1.setOnItemSelectedListener(新的AdapterView.OnItemSelectedListener()
{
已选择公共视图(AdapterView s2,视图arg1,
内部位置,长id)
{
如果(!s1.getItemAtPosition(pos).equals(“无重复”))
{
Intent Intent=newintent(getApplicationContext(),IncomeStartDate.class);
startActivityForResult(意向,1);
}
}
}
请发布您的想法。提前感谢。您是否包含了实际重定向到B的代码?对不起,山姆。现在您可以发布我的帖子。请进一步描述您希望发生的事情以及正在发生的事情。