Problems already???

boowho

Member
Licensed User
Longtime User
I know I'm doing something wrong......

I'm trying the trial version. I put together a simple activity with two buttons and a progress bar. The butons are solid colored (green and red) and the text color is black (I've tried white too).

When testing using either the emulator OR on my device, the text on the buttons is missing (or invisible).

Help......

A question..... Can one create a new VISUAL component using a library? In other words one that can be inserted from the designer and have it's properties, etc set interactively??

I'm also looking at App Inventor. I find there "puzzle piece" paradigm for creating the logic to be quite a intriguing. I believe that is the first new "idea" in programming since the whole visual (drag and drop) interface that came along with VB in the early '90s.

Thanks

Boowho???
 

boowho

Member
Licensed User
Longtime User
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
 
Upvote 0
Top