android PopupWindow兑现从底部弹出或滑出选择菜单或窗口

androidPopupWindow实现从底部弹出或滑出选择菜单或窗口本实例弹出窗口主要是继承PopupWindow类来实现的弹

android PopupWindow实现从底部弹出或滑出选择菜单或窗口

本实例弹出窗口主要是继承PopupWindow类来实现的弹出窗体,布局可以根据自己定义设计。弹出效果主要使用了translate和alpha样式实现,具体实习如下:

第一步:设计弹出窗口xml:

?

?第二步:创建SelectPicPopupWindow类继承PopupWindow:

?