Android Question slide menu change text size

DATASOFT (SOLUSOFT S A)

Member
Licensed User
Longtime User
i am trying to change the text size but only 1 at time but they change all at same time

B4X:
men.AddItem("Follow me ",Null,20,1)
men.AddItem("Follow you ",Null,10,2)

B4X:
Public Sub AddItem(Text As String, Image As Bitmap,size As Int ,ReturnValue As Object)
    Dim item As ActionItem
    item.Initialize
    item.Text = Text
    item.Image = Image
    item.Value = ReturnValue
    item.Value = size

    If Not(Image.IsInitialized) Then
        mListView.TwoLinesAndBitmap.Label.TextSize= size
        mListView.AddTwoLinesAndBitmap2(Text, "", Null, ReturnValue)
    Else
        mListView.TwoLinesAndBitmap.Label.TextSize= size
        mListView.AddTwoLinesAndBitmap2(Text, "", Image, ReturnValue)
    End If
End Sub
 
Top