Android Question B4XDialog bottom edge (line)

peacemaker

Expert
Licensed User
Longtime User
HI, All

Why always the dialogs have an ugly bottom line ? Some internal panel edge ?

1591616904479.png

B4X:
            Dialog.Initialize(Activity)
            Dialog.Title = "Title:"
         
            Dim options As B4XListTemplate
            options.Initialize
            options.Options = Array As String("Sunday", "Monday", "Bla-bla-blan-day")
            options.CustomListView1.DefaultTextBackgroundColor = Colors.Black
            options.AllowMultiSelection = False
            options.MultiSelectionMinimum = 1
            options.Resize(100%x, 80%y)
            options.CustomListView1.AsView.Width = 100%x
            Dialog.BackgroundColor = Colors.Black
            Wait For (Dialog.ShowTemplate(options, "", "", "")) Complete (Result As Int)
            If Result = DialogResponse.POSITIVE Then
                Chosen = L1.Get(L2.IndexOf(options.SelectedItem))
            Else
                Return
            End If

How to hide this line? The color of the dividers are also required to be customizable.
 
Last edited:

Mahares

Expert
Licensed User
Longtime User
The color of the dividers are also required to be customizable.
Use the below code to change the color of the divider:
B4X:
options.CustomListView1.sv.ScrollViewInnerPanel.Color=XUI.Color_Red
As for the bottom edge, I only see it when I scroll to the very bottom of the list, but as soon as I lift my finger, it disappear. This is what I see on my device. It is not annoying at all.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Look at my screenshot - when the list is short - the bottom edge line is always visible.
Ugly... :(
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
Look at my screenshot - when the list is short - the bottom edge line is always visible
Look at it on my device. When list is short, it is visible, but it is a perfect line, not distorted like your line.
 

Attachments

  • peace.png
    peace.png
    10.7 KB · Views: 141
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
:)ok-ok-ok.
But the question is the same: how to hide those line of some internal container ?


SOLVED:
B4X:
options.CustomListView1.AsView.SetColorAndBorder(Colors.Transparent, 0, Colors.Transparent, 0)
 
Last edited:
Upvote 0
Top