0

我认为这可能是一个冷酷的问题,而且我在 android 中没有太多深入的知识,所以只发布这个问题。考虑我有 2 个屏幕屏幕 A 和屏幕 B。在 A 中我有一个微调器,如果用户选择任何来自微调器的 1 个值我正在重定向到 B。这正常工作。但是当用户从 A 中选择微调器的任何值时,它会产生一种错觉,即它将进入屏幕 A,然后进入屏幕 BI 不知道这不能被改变。

我的代码:

    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);    
    }
    }
    }

请发表你的想法..提前谢谢..

4

0 回答 0