B4A Library XmlLayoutBuilder - Load Xml layouts - Erel Feb 20, 2020 (25 reactions) * /s
You might need to correct the path.
The example code is:
Sub Activity_Create(FirstTime As Boolean)
Dim x As XmlLayoutBuilder
'load the layout
x.LoadXmlLayout(Activity, "layout1")
'load the Animation
anim = x.LoadAnimation("wave_scale", "anim")
'get a view based on the id
B4A Question Multi-Tenant SaaS Platform Archtecture - Erel (first post) Sep 11, 2017 (1 reaction) About XmlLayoutBuilder, it will not affect the performance however in the long run it is better to avoid XML layouts. This is not the "B4A way" to build the layout. The default designer and layout files are (much) better integrated. B4A Tutorial mpAndroidCharts - Various Charts using JavaObject - Johan Schoeman (first post) Jun 20, 2024 (1 reaction) Dim x As XmlLayoutBuilder
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
ctx.InitializeContext
barChart.InitializeNewInstance("com.github.mikephil.charting.charts.BarChart", Array(ctx))
barChart.RunMethod("setDrawGridBackground", Array(Fa B4A Question Images and icons in drawable-*dpi folders, how to use in code - Erel (first post) Apr 07, 2017 (1 reaction) You can also use XmlLayoutBuilder to load resources: https://www.b4x.-load-xml-layouts.33762/#content B4A Question Load xml layout in Inline Java Code - Erel (first post) Feb 03, 2015 (1 reaction) You can use XmlLayoutBuilder library to load XML layouts. Though in most cases it is better to use B4A visual designer when you develop with B4A. B4A Question Make Edittext cursor more visible[Solved] - Erel (first post) Feb 20, 2020 (2 reactions) https://www.b4x./?query=XmlLayoutBuilder B4A Question Edit Text cursor - iCAB (first post) Oct 30, 2022 50%x -100dip, 30%y, 200dip, 50dip)
Dim x1 As XmlLayoutBuilder
x1.LoadXmlLayout(Activity, "mycustomlayout")
' How to apply X1 to edtText1 & edtText2
' Please fill the code below
End Sub
Thank you
iCAB B4A Question Use extrernal layout - DonManfred (first post) Jul 02, 2017 Probably yes. Search for XMLLayoutBuilder. I never worked with it. B4A Question [SOLVED]How to make label Selectable ? - nanjidusan (first post) Mar 07, 2019 (3 reactions) Nice ! I made it ! I use Erel's XmlLayoutBuilder to solved the problem successfully ! Thank Erel ! I make a label electable ! This is my code . <TextView android:id="@+id/label" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingBottom="4dip" androi B4A Question [Solved]load Constraint layout with xmlLayoutBuilder - Erel (first post) Jul 17, 2020 (1 reaction) Probably yes, though I don't recommend you to use XML layouts with B4A. B4X uses a different approach to build the layout. Page: 1 2 3 4 5 6 7 Powered by ColBERT |