Android Question CustomView/TabStrip

Lee Ingram

Member
Licensed User
Longtime User
I like what I have been able to do with CustomView/TabStrip. I just need to be able to make each page background a different color. I currently have five pages. I can't seem to get or understand why this isn't working. I would like add 4 buttons to each page also. My text scrolls great. I am still trying to make a HELP menu.

clv1.BackgroundColor(Colors.Red)
clv1.DefaultTextBackgroundColor=Colors.Cyan
Neither one of these seen to work??

Each 'TabStrip1.LoadLayout("Page","-PPS TOOL PAIRING-")' has a different Title, and I would like to make each one a different Color.

B4X:
Activity.LoadLayout("Main")
    Activity.Title= "PAIRING   CONNECTION   ZERO/CAL HELP"
    clv1.Initialize(Me,"clv1")
    pnl1.Initialize("clv1")
      
    '=========================Pairing==================
    TabStrip1.LoadLayout("Page","-PPS TOOL PAIRING-")
        clv1.DefaultTextBackgroundColor=Colors.Cyan
        'clv1.sv.Color = 0xFFD9D7DE
    clv1.DefaultTextColor = Colors.Blue
    clv1.DefaultTextSize = 24
    clv1.DefaultTextBackgroundColor = Colors.Black
    clv1.BackgroundColor(Colors.Red)
    clv1.AsView.Color = Colors.Cyan
    pnl1.Color=Colors.Cyan
  
    clv1.AddTextItem("   -2x2 PAIRING-", "a")
  
    clv1.AddTextItem($"
        1) go To settings
        2) Select Bluetooth
        3) click on only visible To paired devices
        4) click scan
        5) click on available devices   like: WHT_207AJ08313
        6) enter password  ( 61735)
        "$, "")
    clv1.AddTextItem("  -4x4-PAIRING-", "a")
 

Lee Ingram

Member
Licensed User
Longtime User
The simplest way is to create a different layout file for each page.
Toda Raba. It was very simple. I had been working on this for days. I have tried to add a button on one of the pages in the Designer and it does not show on the page.
I would like to put 4 buttons on each page, and I have 5 pages. Thank you again. Lee
 
Upvote 0
Top