先上效果:
需要解决的问题:
1.popopWindow 位置(此处为toolbar正下方)
2.顶部不变,底部阴暗
3.popopWindow 根据item个数适配高度,并设置最大height
一、popopWindow 位置
首先第一点,传入的parent为toolbar。下面的location位置为toolbar在屏幕中位置的左上角那个点(x,y)
int[] location = new int[2];
parent.getLocationOnScr
先上效果:
需要解决的问题:
1.popopWindow 位置(此处为toolbar正下方)
2.顶部不变,底部阴暗
3.popopWindow 根据item个数适配高度,并设置最大height
一、popopWindow 位置
首先第一点,传入的parent为toolbar。下面的location位置为toolbar在屏幕中位置的左上角那个点(x,y)
int[] location = new int[2];
parent.getLocationOnScr