0

我如何才能在 imageview 方面获得等价物。

AlertDialog.Builder builder = new AlertDialog.Builder(mContext);
builder.setTitle("List of Exhibitors");


int selected = -1; // does not select anything

builder.setSingleChoiceItems(items, selected,
        new DialogInterface.OnClickListener() {

            @Override
            public void onClick(DialogInterface dialog, int which) {
                Toast.makeText(mContext, "Select " + exIdList[which],
                        Toast.LENGTH_SHORT).show();

                Intent i = new Intent(mContext,
                        ExhibitorDetailsActivity.class);
                Exhibitors exhibitor = webItemsHelper.getExhibitorById(Long.parseLong(exIdList[which].toString()));
                i.putExtra("exhId", exhibitor.getNid());
                i.putExtra("exhName", exhibitor.getName());
                i.putExtra("exhStand", exhibitor.getStand());
                i.putExtra("exhSectors", exhibitor.getSector());
                i.putExtra("exhDesc", exhibitor.getDescription());
                i.putExtra("exhFav", exhibitor.getFavoris());


                mContext.startActivity(i);

            }
        });
AlertDialog alert = builder.create();
alert.show();
4

0 回答 0