Games [XUI2D] Example Pack - Erel    Oct 2, 2022   (32 reactions)   tags: example games, XUI2D Games Updated thread based on X2 v2.0+: https://www.b4x.com/android/forum/threads/xui2d-x2-v2-0-2021.131279/ Examples: - Hello world (based on Tiled) - Clumsy bird - Mario - Space Invaders - Walking Character - Tiles Map - Joints 1 - Tank Attack - Monster Truck - Ilan's First App - Drawing lines - Newton's Cradle - Collisions - Hello World with tiles based background - Floating Bodies - Mouse... packed as a single b4x lib. 300267245 The examples pack is a single zip with all the XUI2D examples... B4A Library [B4X] XUI Views - Cross platform views and dialogs - Erel    Feb 16, 2023   (78 reactions)   tags: B4X XUI Views Dialogs, xui, XUI Views 311915599 XUI Views is a b4x library (https://www.b4x.com/android/forum/threads/100383/#content...) End Sub Private Sub Application_Background Dialog.Close(XUI.DialogResponse_Cancel) End Sub... = KeyCodes.KEYCODE_BACK And Dialog.Close(XUI.DialogResponse_Cancel) Then Return True Return... Activity_Pause (UserClosed As Boolean) Dialog.Close (XUI.DialogResponse_Cancel) End Sub B4J: Sub...: (instructions - https://www.b4x.com/android/forum/threads/b4x-xui-views-cross-platform-views-and... Games [XUI2D] Cross platform tips - Erel    Dec 19, 2018   (17 reactions)   tags: b4x folder structure XUI2D allows us to develop games that run on B4A, B4J and B4i. This tutorial will explain... they will be updated automatically when we run the project. Tips - B4A and B4J XUI2D library is based on jBox2D. B4i iXUI2D is based on the C++ box2d. In most cases the behavior will be the same. However... on all platforms. Especially when you test performance. - B4A is the only platform where XUI.Scale.... Not just XUI2D.... B4A Library [B4X] [XUI] xCustomListView - cross platform CustomListView - Erel    May 17, 2022   (44 reactions)   tags: CustomListView, xcutomlistbox card, xuiCLV, CUSTOMLIST, Erel, XUI xCustomListView is an implementation of CustomListView based on XUI library. It provides all the features... items: https://www.b4x.com/android/forum/threads/b4x-xui-customlistview-lazy-loading-virtualization.... Libraries such as XUI Views depend on the library and will not work properly with the module... Games [XUI2D] X2 v2.0 - 2021 - Erel    Jul 22, 2022   (22 reactions) .b4x.com/android/forum/threads/97029/#content - Touchy - https://www.b4x.com/android/forum/threads/xui2d.../threads/very-very-very-simple-xui2d-test-project.96793/post-611080 - Tank Attack - https://www.b4x.com/android/forum/threads/xui2d-tank-example.96567/#content - Collisions - https://www.b4x.com/android/forum/threads/97144/#content - LargeBackground - https://www.b4x.com/android/forum/threads/xui2d-large.../xui2d-parallax-background.131606/#post-829749 - Breakout - https://www.b4x.com/android/forum/threads... Games [XUI2D] To Collide or Not To Collide - Erel    Sep 12, 2018   (6 reactions)   tags: Box2d Collision pack: https://www.b4x.com/android/forum/threads/xui2d-example-pack.96454/... B4A Tutorial [B4X] [XUI] CustomListView - lazy loading / virtualization - Erel    May 22, 2020   (36 reactions)   tags: customlist view card, CustomListView, Virtualiza, XCustomListView, xuiCLV, B4X ((i - 1) Mod bitmaps.Size) Dim p As B4XView = xui.CreatePanel("") p....Content SetColorStateList(lblAction1, xui.Color_LightGray, lblAction1.TextColor) SetColorStateList(lblAction2, xui.Color_LightGray, lblAction2.TextColor) ImageView1.SetBitmap(xui.LoadBitmapResize(File.DirAssets, cd.BitmapFile, ImageView1.Width, ImageView1.Height, True... lblContent.Text = cd.Content SetColorStateList(lblAction1, xui.Color_LightGray... B4A Code Snippet [B4X] [XUI] Accurate Text Measurement and Drawing - Erel    Dec 12, 2022   (52 reactions) -2018-05-09_13.04.52.png https://www.b4x.com/basic4android/images/SS-2018-05-09_13.05.38.png XUI v1...) cvs1.DrawCircle(CenterX, CenterY, 3dip, xui.Color_Blue, True, 0) r.Initialize(CenterX - r.Width / 2..., BaseLine, r.Right, BaseLine, xui.Color_Gray, 1dip) cvs1.DrawRect(r, xui.Color_Gray, False, 2dip) End... B4XCanvas.DrawText. The XUI libraries are internal libraries. iXUI v1.60 and jXUI v1.60 will be included in the next versions of B4i and B4J. B4A XUI 1.60: https://www.b4x.com/android/forum/threads/updates... B4A Library [B4X] [XUI] Cross platform & native UI library - Erel    Mar 1, 2021   (67 reactions)   tags: library, b4x, xui lib, B4XView, Erel, XUI platforms. Video tutorial: 255908723 The purpose of XUI library is to make it easier to share code... B4X developers who target more than a single platform will use it at some point. Two main concepts: - XUI libraries API is the same between all three libraries. - It is very simple to switch between the XUI objects and the native objects when needed. The second point is important. XUI types provide a different... The main type in XUI is B4XView. Any view or node can be assigned to a B4XView variable. The B4XView... B4J Code Snippet [B4X][XUI] Fill and Fit images without distortion - Erel    Jan 26, 2021   (22 reactions)   tags: image, image show aspect ratio, IMAGEVIEW Don't use this code. Better solution in B4XImageView (XUI Views) (https://www.b4x.com/android/forum/threads/b4x-b4ximageview-imageview-resize-modes.121359/#content) Fit = Resize the image to the container size while preserving the image ratio. Leaves empty space if the image aspect ratio... Private fx As JFX Private MainForm As Form Private xui As XUI '<... = Form1 MainForm.RootPane.LoadLayout("1") MainForm.Show Dim bmp As B4XBitmap = xui... Page: 1   2   3   4   5   6   7   |