Android Question AppCompat ToolBar Icon

SNOUHyhQs2

Member
Licensed User
Longtime User
Im using this template: https://www.b4x.com/android/forum/threads/appcompat-with-toolbar-minimal-example.79896/

I want to show my app icon similar to this:


So i added this;
B4X:
ToolbarHelper.Icon = BitmapToBitmapDrawable(Application.Icon)   
'
ToolbarHelper.ShowUpIndicator = True 'set to true to show the up arrow
ToolbarHelper.UpIndicatorDrawable = BitmapToBitmapDrawable(LoadBitmap(File.DirAssets, "hamburger.png"))




Problem: the icon is too far from the UpIndicatorDrawable button. How do i fix this?
 

mberthe

Member
Licensed User
Longtime User

Is there a identical solution for the built-in toolbar ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…