Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
Fix Touching Bug | FloatingWindowUtils
Browse files Browse the repository at this point in the history
Now You Can touch the thing you chose to move the floating window...
  • Loading branch information
arab-ware authored Nov 17, 2022
1 parent 4495cf0 commit c20e559
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public void updateLayout(int layout) {
}

public void setTouchView(int id) {
try {
view.findViewById(id).setClickable(true);
view.findViewById(id).setFocusable(true);
view.findViewById(id).setFocusableInTouchMode(true);
} catch(Throwable e) {

}
view.findViewById(id).setOnTouchListener(new View.OnTouchListener() {

private int x;
Expand Down

0 comments on commit c20e559

Please sign in to comment.