Android Question [SOLVED] - Problem with Expandable list based on xCustomListView

JMB

Active Member
Licensed User
Hi there,

I've downloaded the example for the Expandable list, but I seem unable to change the lblTitle bar on the item layout.

I've tried setting the alignment to left, and changing the font size, but when it runs, it always displays in the centre at the previous font size.

I can't see any reason why this would be locked down.

Any assistance as always gratefully received.

JMB
 

mangojack

Well-Known Member
Licensed User
I have just downloaded example and have no issues changing lblTitle properties both in the Designer Layout "Item" and in code.

B4X:
Sub CreateItem(clr As Int, Title As String, id As ItemData) As B4XView
    Dim p As B4XView = xui.CreatePanel("")
    p.SetLayoutAnimated(0, 0, 0, clv1.AsView.Width, id.ExpandedHeight)
    p.LoadLayout("Item")
    p.SetLayoutAnimated(0, 0, 0, p.Width,id.CollapsedHeight)
    lblTitle.SetTextAlignment("CENTER", "RIGHT")
    lblTitle.TextSize = 26
    lblTitle.Text = Title
    '............................
 

JMB

Active Member
Licensed User
Hi MJ,

How bizarre. I can't get it to change at all. I even added another label to the title and it doesn't show - it resolutely stays stuck to the values of the initial example.

Doesn't make sense...

JMB
 

JMB

Active Member
Licensed User
Ok, I downloaded it again - to a different destination and unzipped it to a different destination and it worked. I think it was mixed up with another project.

Anyway, it appears to be working fine!

Thanks for your input MJ.

JMB
 
Top