saiwu-bigkoo / Android-AlertView

仿iOS的AlertViewController
1.39k stars 366 forks source link

vivoR9s 点击无反应 #34

Open YanxuLi opened 6 years ago

YanxuLi commented 6 years ago

在vivoR9s上初始化一次后,只有第一次弹出点击选项有效果,之后再弹出,click选项无效,longClick选项才有效。

if (typelist.size() > 0) { String[] array = new String[typelist.size()]; for (int i = 0; i < typelist.size(); i++) { array[i] = typelist.get(i).getTypename(); } typeAlertView = new AlertView("类别", null, "取消", null, array, context, AlertView.Style.ActionSheet, (o, position) -> { Logger.e(position+""); if (position == -1) { typeAlertView.dismiss(); } else { typeid = typelist.get(position).getId(); typeName.setText(typelist.get(position).getTypename()); typeAlertView.dismiss(); } }); typeAlertView.setCancelable(true); }

wangzixu5678 commented 6 years ago

同问