2

I have a popupWindow and it looks the onClick of a view in it not called and some other view takes the touch. How can I increase the touch priority of a view?

This is how I implemented the onClick of the view. The view is inside a popupWindow

view.setOnClickListener(new View.OnClickListener() {        
                    @Override
                    public void onClick(View view) {
                        Log.d(TAG, "on click called for view");
                    }
                });
anuj
  • 1,010
  • 2
  • 11
  • 26
  • You cannot increase a priority. Only thing you can do is move your View in the XML on a "later" position. Touch Events go backwards through the XML. – IFR Apr 06 '14 at 06:44
  • None of the views in the popupWindow is getting the touch. There are a bunch of other views in the app I am afraid some other view is taking the touch. Is there a way to log that which view is getting the touch? – anuj Apr 06 '14 at 08:03
  • i think this is not possible... If you post your Layout, we can eventualy find out where the problem is – IFR Apr 06 '14 at 18:10

0 Answers0