android - Home/Drawer button in Actionbar cannot be focused with keyboard/controller -


i'm implementing controller/keyboard navigation in application accessibility, , can't seem make drawer button gain keyboard focus.

setting actionbardrawertoggle (in oncreate):

this.drawerlayout = (drawerlayout) this.findviewbyid(r.id.drawer_layout); this.drawerlayout.setscrimcolor(0x99000000); this.actionbardrawertoggle = new actionbardrawertoggle(this, this.drawerlayout, r.string.root_drawer, r.string.root_drawer); this.actionbardrawertoggle.sethomeasupindicator(r.drawable.ic_utilitybar_menu); this.actionbardrawertoggle.setdrawerindicatorenabled(true); this.drawerlayout.setdrawerlistener(this.actionbardrawertoggle); 

setting action bar (also in oncreate):

actionbar actionbar = getsupportactionbar(); actionbar.setdisplayhomeasupenabled(true); actionbar.setdisplayshowtitleenabled(false); actionbar.setbackgrounddrawable(new colordrawable(color.parsecolor(actionbar_background_color))); actionbar.setelevation(0); actionbar.sethomebuttonenabled(true); actionbar.setdisplayshowhomeenabled(true); 

the other buttons on action bar focusable, can't go left (dpad left or keyboard left arrow) leftmost of buttons onto home button itself. buttons, needed mark them focusable in order keyboard navigate them, eg (from oncreateoptionsmenu):

menuitem alertitem = menu.add(0, r.id.menu_alert, 0, null); alertitem.setactionview(this.alerticonactionview); alertitem.setshowasaction(menuitem.show_as_action_always); this.alerticonactionview.setfocusable(true); this.alerticonactionview.setfocusableintouchmode(true); 

but there doesn't seem view can obtain home button allow me set focusable elements.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -