MarcoRome Expert Licensed User Longtime User Feb 27, 2018 #1 Hi all. I saw that in ios there is slidemenu, very similar to AppCompat with Toolbar ( https://www.b4x.com/android/forum/threads/appcompat-with-toolbar-minimal-example.79896/#content ) A couple of things i dont understand (for the moment ) 1. Can i change the icon ? I see around, tried a couple of solutions but nothing has changed 2. It is possible to set a number on the icon (type Set Badge of the example on B4A) Thank you Marco
Hi all. I saw that in ios there is slidemenu, very similar to AppCompat with Toolbar ( https://www.b4x.com/android/forum/threads/appcompat-with-toolbar-minimal-example.79896/#content ) A couple of things i dont understand (for the moment ) 1. Can i change the icon ? I see around, tried a couple of solutions but nothing has changed 2. It is possible to set a number on the icon (type Set Badge of the example on B4A) Thank you Marco
Erel B4X founder Staff member Licensed User Longtime User Feb 28, 2018 #2 MarcoRome said: very similar to AppCompat with Toolbar Click to expand... Note that the B4A side menu actually isn't related to AppCompat. You can use any icon you like. It is set here: B4X: Page1.TopRightButtons = Array(smc.CreateBarButton("right")) Page1.TopLeftButtons = Array(smc.CreateBarButton("left")) smc.CreateBarButton is just a utility method that creates a hamburger icon. You can set the buttons yourself. It should also be simple to draw a badge over the bitmap. Example of drawing a badge: https://www.b4x.com/android/forum/threads/b4x-xui-badger-add-badges-to-views.81723/#content Upvote 0
MarcoRome said: very similar to AppCompat with Toolbar Click to expand... Note that the B4A side menu actually isn't related to AppCompat. You can use any icon you like. It is set here: B4X: Page1.TopRightButtons = Array(smc.CreateBarButton("right")) Page1.TopLeftButtons = Array(smc.CreateBarButton("left")) smc.CreateBarButton is just a utility method that creates a hamburger icon. You can set the buttons yourself. It should also be simple to draw a badge over the bitmap. Example of drawing a badge: https://www.b4x.com/android/forum/threads/b4x-xui-badger-add-badges-to-views.81723/#content
MarcoRome Expert Licensed User Longtime User Feb 28, 2018 #3 Thank you already.. i'm stupid already use this in B4A Upvote 0