前言
学习的时候要用到弹窗,但是又觉得i同自带的弹窗样式有点不太美观,搜索资料后发现了FlycoDialog这个开源库,效果很好,而且实现起来也比较方便。
先列举一些比较好看的效果:
NormalListDialog
ActionSheetDialog
这篇文章主要来讲一下他的自定义弹出对话框。
使用
添加依赖
compile 'com.flyco.dialog:FlycoDialog_Lib:1.3.2@aar'
编写一个要显示的弹窗的布局
android:layout_width="match_parent" android:layout_height="match_parent">
android:id="@+id/iv_customize"
android:layout_width="278dp"
android:layout_height="392dp"
andro