Android Question Why this is marked red in the editor ?

kohle

Active Member
Licensed User
Longtime User
See screenshots
 

Attachments

  • 18-12-_2018_11-48-46.png
    18-12-_2018_11-48-46.png
    4.1 KB · Views: 199
  • 18-12-_2018_11-49-45.png
    18-12-_2018_11-49-45.png
    4.5 KB · Views: 142

kohle

Active Member
Licensed User
Longtime User
in the activity_create event.
Its a xcustomlistview view which is in a layout, which is loaded in the activity_create event,
after this is a if else construction it showed this color (screenshot)
of the first 2 letters.

It compiles and runs without problems.

I had this several times in different projects, i thought to post it now . After I added some code its normal again. But the code before was ok.

Thinking red , thinking of an error...
 

Attachments

  • 18-12-_2018_11-48-46.png
    18-12-_2018_11-48-46.png
    4.1 KB · Views: 111
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
1/2 O.T.

Sometimes (i have to investigate in which cases) I get strange colors (but blue, if I remember well) when I drag lines (Alt + PgUp or PgDown).

Doing...
It should disappear if you press enter on that line.
all colors return to normal.
 
Upvote 0

Sandman

Expert
Licensed User
Yeah, the editor sometime messes up the coloring, I get that quite often. Pressing enter on a line seems to redraw the line so it's fine again. Nothing to worry about, it's probably just some tiny edge case in the highlighting code that might - or not - get fixed at some point.
 
Upvote 0
Top