Skip to content Skip to sidebar Skip to footer

Popmenus With Icons

I want to achieve exactly like PopupMenu with icons On layout click which is in Custom Toolbar . So , i have taken the help of an answer but issue i am facing is : Nothing is popi

Solution 1:

I think just remove if(point!=null) condition it will work

accountInfoLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {


                    int[] location = new int[2];
                    v.getLocationOnScreen(location);
                    point = new Point();
                    point.x = location[0];
                    point.y = location[1];
                    showPopup(getActivity(),point);
                }
}
}

Post a Comment for "Popmenus With Icons"