i know how change homeasupindicator in styles xml file. the question how change programmatically.
the reason want because in views support side navigation (sliding menu) - pressing up/back title button, shows side menu.
in other views support natural up/back botton.
thus different indicator icons indicate 2 different logics - side navigation vs. up/back.
please, lets not argue on motivation of doing this. that's given state. thanks.
int upid = resources.getsystem().getidentifier("up", "id", "android"); if (upid > 0) { imageview = (imageview) findviewbyid(upid); up.setimageresource(r.drawable.ic_drawer_indicator); }
Comments
Post a Comment