java - ActionBar onClick listener- this is possible? -
how actionbar onclick listener? mean- global listener whole view, not actionbar child views
try use custom view.
create
layout
want action baradd
android:onclick
attribute in xmlandroid:onclick="handleclick"
inflate somewhere in code
use
actionbar.setcustomview()
methodimplement
onclick
method in javapublic void handleclick(view view) { // code after click here }
that should work !
Comments
Post a Comment