Tutorials & Examples

Android development starts here. Please do not post questions in this sub-forum.

[B4X] [XUI] CustomListView - lazy loading / virtualization

xCustomListView v1.50 adds an important new event named VisibleRangeChanged. This event is fired whenever the visible range of items changes.

We can use this event to defer the items creation...
 
Last edited:

[B4X] [XUI] Creating custom views with XUI

Attachments

  • ClockView.bas
    1.4 KB · Views: 1,118

[B4X] [Visual Designer] Spreading Controls

Question: How can I build a layout with X controls spread horizontally or vertically?

Answer: You can use the designer script for this. As the designer script engine (currently) doesn't support...
 

Attachments

  • 1.zip
    9.5 KB · Views: 675

[B4X] [Video]How to's, B4A UI, andTutorials from Leafecodes

My Youtube Channel Link - Please Subscribe


This video takes you through the process of creating onboarding...
 
Last edited:

[B4X] [Video] IDE Tips

 

[B4X] [UI] Finding Design Inspiration - Tips

I would like to list here and give some tips where I get my design ideas for the apps I develope.

  1. Very simple, for example i want to design a Bottom Card, then i type on google images...
 
Last edited:

[B4X] [etp] Forms & User Input video tutorial


More videos: https://www.b4x.com/etp.html

The example app is attached.
Note that the correct library that needs to be checked, except of B4XPreferencesDialog, is XUI Views...
 

Attachments

  • User Input.zip
    2.7 KB · Views: 818

[B4X] [DSE] Designer Script Extensions

The soon to be released versions of B4A, B4i and B4J include a new feature named: designer script extensions. The new feature allows calling B4X code from the visual designer scripts.
Note that...
 

Attachments

  • DSExample.zip
    182.8 KB · Views: 815
  • DSExampleCLV.zip
    187.6 KB · Views: 718
  • DSExampleNumpad.zip
    18.8 KB · Views: 669
  • DSExampleToolbar.zip
    123.2 KB · Views: 674
  • DesignerUtils.b4xlib
    3.7 KB · Views: 574
Last edited:

[B4X] [BitmapCreator] Maximizing Performance with BC

1. This tutorial is about BitmapCreator v3.5+.
2. It is relevant for B4A, B4i and B4J.
3. The features discussed are only needed when making hundreds or more drawings per second.

Drawing...
 
Last edited:

[B4X] [BitmapCreator] Cross platform Falling Sand game

SS-2018-06-19_11.20.27.png


The main challenge here is the performance. All particles are updated if needed and redrawn every cycle.

The Particles...
 

Attachments

  • B4A_FallingSand.zip
    25.6 KB · Views: 750
  • B4i_FallingSand.zip
    177.6 KB · Views: 557
  • B4J_FallingSand.zip
    24.6 KB · Views: 609
  • GameUtils.bas
    6.5 KB · Views: 631
Last edited:

[B4X] [BitmapCreator] Creating cross platform games

Last edited:

[B4X] [B4XPages] What exactly does it solve?

B4XPages makes many things simple and even trivial.
As Android developers, we are dealing with these challenges for many years now so it might take us a while to understand how simple things can...
 
Last edited:

[B4X] [B4XPages] Splash Screen

B4A, B4i and B4J splash screen implementation. The implementation is different in each platform.

1. Don't miss the manifest editor code in B4A.
2. Don't use %y in the code. Use Root.Height...
 

Attachments

  • Project.zip
    67.7 KB · Views: 3,054
Last edited:

[B4X] [B4XPages] Pleroma / Mastodon Client

Roughly speaking, Mastodon is an open source, distributed, social network a bit similar to Twitter:

Pleroma is a lightweight implementation of Mastodon with some...
 
Last edited:

[B4X] [B4XPages] Network + AsyncStreams + B4XSerializator

java_USPawWZPiX.png


1592139571839.png


B4i_nUuTQqGuEH.png


Cross platform version, based on B4XPages, of...
 

Attachments

  • Network Example.zip
    220.7 KB · Views: 2,548
Last edited:

[B4X] [B4XPages] Menu badges

1628579674728.png


This is a B4i + B4A example. It adds a dynamic badge to the menu icon. It also shows how to update menu items at runtime.

Don't miss:
1. B4A - theme settings in manifest editor.
2...
 

Attachments

  • Project.zip
    16.6 KB · Views: 1,638

[B4X] [B4XPages] Intent based camera

B4A + B4i project that uses an intent in B4A and the Camera object in B4i to take a picture using the default camera app.

The B4A code depends on JpegUtils...
 

Attachments

  • CameraIntent.zip
    125.1 KB · Views: 340
Last edited:

[B4X] [B4XPages] GoogleMaps example

1594642169087.png


Example of showing a Google map, in a cross platform B4XPages project. The APIs of the three GoogleMaps libraries are quite different from one another, so we need to use platform...
 

Attachments

  • Project.zip
    10 KB · Views: 2,063

[B4X] [B4XPages] Flickr Stream - Cross platform stream of photos

Attachments

  • B4X-Flickr.zip
    270.5 KB · Views: 637
  • B4XPages-Flickr.zip
    260.2 KB · Views: 585
Last edited:

[B4X] [B4XPages] Firebase Push Example

Attachments

  • Push.zip
    7.3 KB · Views: 1,848
Top