Klaus/Sorex
Firstly Klaus I don't understand why you couldn't run the project, I have just downloaded it and run it on an emulator I have never used before. All worked.
DownLoad from PlayStore might help explanation.
F0-F15 represent programmed functions, when a position is programmed the text and text colour change. When the user wishes to program another position the FNumselect module is called and a list of the function positions is generated using listview. Currently this list shows F0-F15 in the default white text.
I want the list to show the actual text and text colour on the labels. A listview cannot different coloured text in different items. To do this CustomListView would work I am told. I have failed to come to grips with CustomListView. To bypass this I thought to produce 16 labels with the corect text and text colour, then position them over the corresponding item on the listview.
Calculator showing labels where keys have been programmed.
List of positions to be selection to be programmed
would be better if F7 and F10 showed the text on the calculator in Gold.
This is what I am trying to do.
The code that you have both shown in posts #12 & #13 is basically what I have done and does not work for me. If you can spot where the following code goes wrong please throw a brick at me. I can't see it.
For i = 0 To 15
Log(i)
For Each v As View In Activity.GetAllViewsRecursive
If v Is Label Then
Dim lbl As Label = v
If lbl.Tag = "F"&i Then
'lblText = lbl.Text
FNumLabel(i).Initialize("FNumLabel"&i)
Activity.AddView(FNumLabel(i), 0, 10%y, 100%x, 5.625%y)
FNumLabel(i).TextColor = lbl.TextColor
FNumLabel(i).Text = lbl.Text
FNumLabel(i).TextSize = 18*FontScale
FNumLabel(i).Height = 5.625%y
FNumLabel(i).Width = 100%x
FNumLabel(i).Color = Colors.Transparent
FNumLabel(i).Left = 0
FNumLabel(i).Top = 10%y + (i*5.625%y)
End If
End If
Next 'Builds the viewable list RecallView from the List "storelist"
'FNumView.AddSingleLine("")
Next
Thanks for your continuing help.
Roger