android actionbar - How to Disable touch on Action bar -
i want disable touch event on action bar. suggest me how it. note:i dont want remove action bar, needs there, should not touchable.
i have tried in activity:
actionbar ab = ((myactivity != null)? myactivity.getactionbar() : null); if(ab ! = null) { view v= ab.getcustomview(); } if (v != null) { v.setclickable(false); v.setfocusable(false); }
but did not work. please sugges something. in advance..
i managed fix making invisible view on entire activity. , punched hole through portion if touched coud dispatch event main activity behind invisible view activity,
getowneractivity().dispatchtouchevent(event);
Comments
Post a Comment