sina39000
Member
Hello
A simple problem:
How can i change ListView TextSize property in run time?
I want to change ListView Font Size By simply enter size value in EditText1 and press Button1 but it not works
A simple problem:
How can i change ListView TextSize property in run time?
B4X:
Sub Process_Globals
End Sub
Sub Globals
Private Button1 As Button
Private EditText1 As EditText
Private ListView1 As ListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout1")
EditText1.Text = 20
ListView1.SingleLineLayout.Label.TextSize = EditText1.Text
ListView1.SingleLineLayout.ItemHeight = EditText1.Text*4
For i = 0 To 10
ListView1.AddSingleLine("Item No "&i)
Next
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub ShowList
ListView1.Clear
ListView1.SingleLineLayout.Label.TextSize = EditText1.Text
ListView1.SingleLineLayout.ItemHeight = EditText1.Text*4
For i = 0 To 10
ListView1.AddSingleLine("Item No "&i)
Next
End Sub
Sub Button1_Click
ShowList
End Sub
I want to change ListView Font Size By simply enter size value in EditText1 and press Button1 but it not works