hi
i am trying to change text align from right to left or left to right at runtime
i try something like this but it does not work - no change
perhaps gravity is not the right way ?
anyone can help
thanks
For i = 0 To Activity.NumberOfViews - 1
G = Gravity.RIGHT
If Activity.GetView(i) Is Label Then
L = Activity.GetView(i)
L.Gravity = G
End If
If Activity.GetView(i) Is CheckBox Then
C = Activity.GetView(i)
C.Gravity = G
End If
If Activity.GetView(i) Is EditText Then
E = Activity.GetView(i)
E.Gravity = G
End If
If Activity.GetView(i) Is RadioButton Then
R = Activity.GetView(i)
R.Gravity = G
End If
Next
i am trying to change text align from right to left or left to right at runtime
i try something like this but it does not work - no change
perhaps gravity is not the right way ?
anyone can help
thanks
For i = 0 To Activity.NumberOfViews - 1
G = Gravity.RIGHT
If Activity.GetView(i) Is Label Then
L = Activity.GetView(i)
L.Gravity = G
End If
If Activity.GetView(i) Is CheckBox Then
C = Activity.GetView(i)
C.Gravity = G
End If
If Activity.GetView(i) Is EditText Then
E = Activity.GetView(i)
E.Gravity = G
End If
If Activity.GetView(i) Is RadioButton Then
R = Activity.GetView(i)
R.Gravity = G
End If
Next