java - ActionBar and CustomView - home button -


i want have customview on actionbar define buttons, logos, etc. want make use of home button , ability search in actionbar via search interface. possible add, i.e. home button icon on actionbar custom view layout?

thanks

it possible use custom view on action bar. strava android app (or @ least gives appearance of action bar @ top has non-standard layout).

addressing requirements 1 @ time: can inflate view of own , assign action bar:

view customview= getlayoutinflater().inflate(r.layout.customview, null); getsupportactionbar().setcustomview(customview); 

what put in view is, naturally, entirely have manage yourself, including home button actions. includes icon , text home button on left hand side , search functionality. on small device (especially in portrait mode) i'd go search icon on devices more real estate fit text input field in well, using alternative layouts feature automatically pick appropriate view device.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -