1

これは私の2番目のクラスです。私が望むのは、その「選択」をlistViewに置くことです

    listViewDesc = (ListView) findViewById(R.id.lvDesc);
    listViewPrice = (ListView) findViewById(R.id.lvPrice);


    Bundle extras = getIntent().getExtras();
    String choice = null;
    if(extras != null)

    choice = extras.getString("name");

    Toast.makeText(getApplicationContext(), choice, Toast.LENGTH_SHORT).show();
4

1 に答える 1