Android Change AlertDialog.builder。等效的imageview

时间:2013-06-18 12:22:24

标签: android

我如何在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();

0 个答案:

没有答案