JayFang1993 / DropDownMenu

DropDownMenu for Android,Filter the list based on multiple condition.
https://fangjie.me
Apache License 2.0
809 stars 177 forks source link

添加适配了Android7.0 代码 #11

Open jiaweio opened 6 years ago

jiaweio commented 6 years ago

if (Build.VERSION.SDK_INT != 24) { mPopupWindow.showAsDropDown(v); } else {//Android 7.0 显示位置出现问题 兼容7.0 int[] location = new int[2]; v.getLocationOnScreen(location); int x = location[0]; int y = location[1]; mPopupWindow.showAtLocation(v, Gravity.NO_GRAVITY, 0, y + v.getHeight()); }

JayFang1993 commented 6 years ago

@Djwei 欢迎提Merge Request