Android Question Bug in listview?

buras3

Active Member
Licensed User
Longtime User
Hey

I get each time different colours when i Release and i Debug
in listview
non of colours are correct to the code

B4X:
            If WithMini<>"" Then
                ListViewOrders.TwoLinesLayout.Label.TextColor=Colors.Yellow
            Else
                ListViewOrders.TwoLinesLayout.Label.TextColor=Colors.White
            End If
       
            ListViewOrders.AddTwoLines2(Name & " " & Adress & " " &  OrderRem & " " & WithMini &  " " &  ArryRow(7) & FromShop, Arrived ,StrIds)
            ListViewOrders.TwoLinesLayout.Label.TextSize=20
            ListViewOrders.TwoLinesLayout.Label.Width=ListViewOrders.Width-23dip
            ListViewOrders.TwoLinesLayout.SecondLabel.Width=ListViewOrders.Width-23dip
 

DonManfred

Expert
Licensed User
Longtime User
All items of the same type (here TwoLines) do have the same color.

You can use TwoLines Layout for type 1 and TwoLinesAndBitmap Layout (change layout to look the same as TwoLines) to be able to use two colors. One color for each type.

or

Switch to CustomListView. Here you can change the color of each Item you add.
 
Last edited:
Upvote 0
Top