先上效果图:
这是项目中一个qing请假的选择请假类型的滚动菜单,用了WheelView,继承了WhellViewAdapter并zuo'做了些许修改。
下面开始分析代码:
首先自定义一个Dialog,然后布局文件:
<yilanTech.EduYunClient.view.wheel.WheelView android:id="@+id/dialog_wheelview" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@+id/bottom_line" android:layout_margin="@dimen/common_dp_10" />
然后我们在代码中打造一个通用的滑动菜单弹窗:
public class WheelBottomDiaLog extends Dialog implements View.OnClickListener { private TextView cancle, yes;//确定取消按钮 private WheelView wheelView; private onClickYesButtonListener onClickYesButtonListener;//点击确定回调 private List&