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
layoutwant action baradd
android:onclickattribute in xmlandroid:onclick="handleclick"
inflate somewhere in code
use
actionbar.setcustomview()methodimplement
onclickmethod in javapublic void handleclick(view view) { // code after click here }
that should work !
Comments
Post a Comment