Android Question Problems interfeice, when using a gradient fill

Lakhtin_V

Active Member
Licensed User
Longtime User
In my application, I use a gradient fill with round corners. Sometimes I do not have the correct buttons and labels in the lists.
The right half of the label or button is not displayed
B4X:
    clrEvent2=Colors.RGB(219,140,131)
    clrEvent3=Colors.RGB(173,64,50)
    clrLst11=clrEvent3
    clrLst22=clrEvent2
....
    clrEventUP(0) = clrEvent2
    clrEventUP(1) = clrEvent3
    gdUPevent.Initialize("TOP_BOTTOM", clrEventUP)
    gdUPevent.CornerRadius=Rc*Ksize
.....
    If lang<1 And lang>3 Then lang=1
    listViewL.Initialize("listViewL")
    listViewL.Color=clrLst22
    listViewL.SingleLineLayout.Label.Background=gdUPevent
    listViewL.SingleLineLayout.Label.Height=7%y
    listViewL.SingleLineLayout.Label.TextSize=fntTxtS
    listViewL.SingleLineLayout.Label.Gravity=Gravity.CENTER
    listViewL.AddSingleLine2("Қазақша",1)
    listViewL.AddSingleLine2("Русский",2)
    listViewL.AddSingleLine2("English",3)
    listViewL.ScrollingBackgroundColor = clrLst11
    listViewL.SingleLineLayout.Label.Padding = Array As Int (5dip, 5dip, 5dip, 5dip)
    Activity.AddView(listViewL, 29%x, 72%y, 40%x, 26%y)
    listViewL.SetSelection(lang)
    listViewL.Invalidate
link screenshot my problem
https://yadi.sk/i/XdUiw8vj3KRzFp
 
Last edited:
Top