Make sure that you actually wrote some text in the Text field. The designer shows the view's name if there is no other text available.
Good answer..... Now, how to set color and background color for progress
bar??
Using this code:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim ProgressBar1 As ProgressBar
Dim ss As ColorDrawable
ss.Initialize(Colors.Blue, 20)
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("qwe")
ProgressBar1.Background = ss
Progressbar1.Progress = 54
Progressbar1.Color = Colors.Red
The progress bar is green on my device, but yellow in the emulator
What am I doing wrong?
Boowho