Android Question Spinner problem with Chat example.

Beja

Expert
Licensed User
Longtime User
Hello friends,
Attached is a test app for modifying Erel's chat example.
Pls tell me what wrong I might be doing. I only put a spinner and added a few items to it.
the error comes at run time. Whenever clicking (touching) on the spinner, there is a horizontal
line in the middle of the device's screen (not the app window). A screen shot is also attached.
Any help appreciated.
 

Attachments

  • Spinner1.zip
    9.8 KB · Views: 223
  • Spinner1.png
    176.4 KB · Views: 258

Beja

Expert
Licensed User
Longtime User
Erel,
Thanks and I beg to differ, but I think the line does not belong to the spinners.
First the line is too long, longer than the spinner and wherever you place the spinner the
line appears at the same place (device screen middle vertically and horizontally), and it appears
at the same place for both spinners.. I attached the project file with items for both spinners.
I am using Windows 8.1.
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
Erel is right. It's the spinner's contents.
In your example you dim your spinner to the wrong activity (main). You should dim it to chatActivity and populate it there.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
mc71
Thanks so much.. I owe you one.
will post a wish on the wish forum and ask Erel to switch the activities automatically when the layout (in designer) is
changed. Now when you switch to a different layout in the designer, the old activity still active!.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…