private void showTakePictureDialog(String[] strs) {
SingleListDialog listDialog = new SingleListDialog(activity);
listDialog.setTitleVisible(false);
listDialog.setListEntries(strs, new OnDialogItemClickListener() {
@Override
public void onItemClickListener(int which) {
switch (which) {
case 0:
getPicture(TakePictureHelper.PIC_FROM_CAMERA);
break;
case 1:
getPicture(TakePictureHelper.PIC_FROM_PHONE);
break;
case 2:
getPicture(TakePictureHelper.PIC_FROM_MYGALLERY);
break;
}
}
});
listDialog.show();
}
列表式弹窗
最新推荐文章于 2024-07-24 17:26:22 发布