B4A Question ACToolBarLight from code - fishwolf    Apr 20, 2023 is it possible add module ACToolBarLight from code (no from design) ?
i'm try, but doesn't work fine
Sub Globals
Private ACToolBarLight1 As ACToolBarLight
End Sub
Sub Activity_Create(FirstTime As Boolean)
ACToolBarLight1.Initialize("aaa")
Activity.AddView... B4A Question how do I insert the "check mark" on the appcompat bar? - Erel (first post)    Feb 10, 2019   (1 reaction) You can add any view you like with ACToolbarLight.AddView.... B4A Question B4XDrawer Button - DonManfred (first post)    Nov 9, 2018   (2 reactions) I don't know what code to write there.. and what did you tried for days then when you say I try for many days to insert two buttons at B4XDrawer ACToolBar.... ??? Watching 3 day onto the IDE and pray it may happen automatically? https://www.b4x.com/android/help/appcompat.html#actoolbarlight_addview BTW: The forumsearch is working https://www.b4x.com/android/forum/pages/results/?query=ACToolBarLight.addview https://www.b4x.com/android/forum/threads/appcompat-acpopupmenu-usage.80970/#post... B4A Question Editfield on ActionBar - Erel (first post)    May 22, 2018 Yes. The best way to do it is with AppCompat. Example: https://www.b4x.com/android/forum/threads/appcompat-with-toolbar-minimal-example.79896/ You can add views with ACToolbarLight.AddView.... B4A Question AppCompat SearchView - jcesar    Dec 12, 2018 Hi I'm trying insert a searchview on appcompat actionbar: Dim sv As ACSearchView sv.Initialize("") sv.QueryHint = "Search" ACToolBarLight1.AddView(sv,50%x,7%y,Gravity.NO_GRAVITY) But a get this error: ACToolBarLight1.AddView(sv,50%x,7%y,Gravity.NO_GR javac 1.8.0_121 src\b4a\example\main.java:360: error: incompatible types: ACSearchViewWrapper cannot be converted to View mostCurrent._actoolbarlight1.AddView((android.view.View)(mostCurrent._sv),anywheresoftware... B4A Question Placing panel to far left on ACToolbar - Erel (first post)    Dec 28, 2020 105003
ACToolBarLight1.AddView(b, 100dip, 50dip, Gravity.LEFT) 'b = button
Dim jo As JavaObject = b.Parent
jo.RunMethod("setContentInsetsAbsolute", Array(0, 0))
... B4A Question Cannot compile projects using ACToolBarLight and ACActionBar - fabton1963 (first post)    May 26, 2023 In my old pc I already followed all istructions in the post you suggest, today I reinstall all in a new pc and this error does not ap... B4A Example AppCompat with ToolBar - minimal example - Erel    Jun 23, 2023   (23 reactions)   tags: ToolBar, Android, drawer badge notification, AppCompat In most cases AppCompat is no longer needed and will only make things more complicated. B4XPages example with dynamic menu: https://www.b4x.com/android/forum/threads/b4x-menu-badges.133301/ 56464 The project attached uses the powerful AppCompat library to replace the built-in ActionBar with a more robust ToolBar. The NavigationItemClick event is raised when the icon is clicked. You can set ToolbarHelper.ShowUpIndicator = True to show an up arrow instead. It will raise the same event... B4A Question v10.70 and ACToolBarLight - Erel (first post)    Apr 16, 2021 For new projects it is recommended to use B4XPages without AppCompat. It takes care of the action bar automatically.
I've tried various suggestions, including this one: https://stackoverflow.com/questions/26788464/how-to-change-color-of-the-back-arrow-in-the-new-material-theme/41055677
None of them seems to work. It will be simpler to replace the logo with your own one and set... B4A Question Crossplatform define an eventname for b4xview added with addview - kohlenbach (first post)    Sep 9, 2025
This is probably totally wrong
https://www.b4x.com/android/forum/threads/b4x-i-need-100-custom-view-here-s-how-to-add-programmatical... Page: 1   2   3   4   5   6   7   |