Android Question Save and load colors for listviews

Heinz

Active Member
Licensed User
Longtime User
Hello, what going wrong in my app. It still close by appstart.
I have a tabhost with four listviews. the user can choose a color for each listview.
Now, i want save the users choosen colors in a textfile (Farben.csv) an at a new
start of the app, the app reads the four colors and set this colors to the four
listviews. if the users click cancel or no at the colorpicker, the colors.white (set in the
designer) is the actual color. A colordialog, as the designer have, would be
better.

What going wrong in the subs Farben_Click and LeseFarben ?
 

Attachments

  • EKListen.zip
    46.2 KB · Views: 104

MicroDrie

Well-Known Member
Licensed User
What going wrong in the subs Farben_Click and LeseFarben ?
You have 4 listviews of which you only change one background color, but only write that one new background color. You forget to save the other three background colors of the other three list views in the Private Sub Farben_Click.

As a result, not 4, but only 1 background color line are available when reading the four background colors.
 
Upvote 0
Top