daimajia / daimajia/AndroidSwipeLayout
Bottom view unstable with System alert window
- Dominant language
- Java
- Stars
- 12.3k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
I'm using system alert window but not swiping properly even bottom view unstable
```
LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
View mView = inflater.inflate(R.layout.default, null);
SwipeLayout swipeLayout = (SwipeLayout)mView. findViewById(R.id.swipelay);
swipeLayout.setShowMode(SwipeLayout.ShowMode.LayDown);
swipeLayout.setDragEdge(SwipeLayout.DragEdge.Top);
WindowManager.LayoutParams params = new WindowManager.LayoutParams(
WindowManager.LayoutParams.TYPE_SYSTEM_ALERT ,
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL|WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
// |WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,
PixelFormat.TRANSLUCENT);
params.gravity = Gravity.RIGHT | Gravity.TOP;
WindowManager wm = (WindowManager) getSystemService(WINDOW_SERVICE);
wm.addView(mView, params);
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.