Tutorials & Examples

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

[B4X] AS SegmentedTab - Custom tab width


AS SegmentedTab Custom Tab Width.gif


B4X:
    ASSegmentedTab3.mBase.Color = xui.Color_ARGB(255,42, 156, 255)...
 

Attachments

  • AS SegmentedTab Custom Tab Example.zip
    178.1 KB · Views: 159

maybe not so simple way to clean up texts from wikipedia api

this might be far from perfect, but it works well for me. This little routine replaces useful html tags to bb tags, and gets rid of unwanted html tags in fetched wikipedia api texts.

B4X:
Sub...
 

[B4X] AS Settings with AS BottomDatePicker

Attachments

  • AS Settings with AS DatePicker.zip
    179 KB · Views: 60
Last edited:

[B4X] Supabase - Storage Bucket


This is a very simple tutorial on how to use the storage bucket options.

CREATE...
 

Sound Meter

Hello.
the project was prepared using only the libraries in the forum.

live line chart #Johan Schoeman...
 

Attachments

  • Screenshot_20230422-130730.jpg
    Screenshot_20230422-130730.jpg
    5.7 KB · Views: 286
  • sound1.zip
    34.3 KB · Views: 214
  • Screen_Recording_20230422_130822_1.gif
    Screen_Recording_20230422_130822_1.gif
    88.5 KB · Views: 241

[B4X] AS Settings - ComboBox Property


With this property, the user can quickly select one of several options via a combobox. It use the native combo box for...
 

[B4X] AS TextFieldAdvanced - ComboBox

Attachments

  • AS TextFieldAdvanced ComboBox Example.zip
    179.5 KB · Views: 97

[B4X] Supabase - Database Limit and Offset


LIMIT and OFFSET allow you to retrieve just a portion of the rows that are generated by...
 

[B4X] AS TextFieldAdvanced - Underline Style

Attachments

  • AS TextFieldAdvanced Underline Example.zip
    203.4 KB · Views: 101

Share SQLite database between 2 devices

This is just a proof of concept to show that Device A behave like a server hosting a database and Device B connects to it accessing the "shared" database. It is a response to this question...
 

Attachments

  • ShareDB.zip
    17.6 KB · Views: 115
Last edited:

[B4X] AS Settings with AS TimePickerDialog

Attachments

  • AS Settings with AS TimePickerDialog.zip
    179.3 KB · Views: 47
Last edited:

[B4X] AS ViewPager - Infinite scrolling


A small example project on how to achieve endless scrolling in both directions with the as...
 

Attachments

  • AS ViewPager Infinite scrolling Example.zip
    11.5 KB · Views: 139
Last edited:

[B4X] AS PopupMenu with icons


(53) mage.png
(54) mage.png


B4X:
Private Sub ShowMenu
    
    aspm_Main.Initialize(Root,Me,"aspm_Main")...
 

Attachments

  • AS PopupMenu with Icons.zip
    177.4 KB · Views: 121

RegEx.Matcher2 and getting first and last words of String

This example not only retrieves the first and last word of a String, but also sets a Label with the first letters of both the first and last words.
I use it to populate a CustomListView with...
 
Last edited:

LatLong To Timezone

Hi,
I was looking for a code to know the timezone information from Latitude and Longitude coordinates and I found the code here LatLongToTimezone but it is written in java so I used it in...
 

Attachments

  • B4A_TimezoneMapper.zip
    434.5 KB · Views: 211

[B4X] AS DraggableBottomCard - Drag Indicator - Confirm Button


(43) mage.png


DragIndicator:
    'DragIndicator
    Dim xpnl_DragIndicator As B4XView = xui.CreatePanel("")...
 

Attachments

  • AS DraggableBottomCard ConfirmButton.zip
    11 KB · Views: 119
Last edited:

[B4X] AS Settings - Text Property


This property is for text input. Normal text, numbers or decimal numbers.

1707945375522.png


AS_SettingsTextExample.gif


Example...
 

[B4X] AS Settings - DescriptionItem


This is a description item, this can be used to provide more information about a particular feature.

1707947080201.png
...
 

[B4X] Supabase - Realtime Postgres Changes


Listen to Postgres changes using Supabase Realtime...
 

[B4X] AS Settings - Action Property


This property is used, for example, to manage properties that are on another page. Or to open links, open a picker so...
 
Last edited:
Top