I am taking an online android course on Coursera. The first assignment is to build a app which could properly present text and image.
Apart from what I learned from the first three lectures, I also tried to add something interesting. I wanted to show two photos in the same place and allowed users to switching between them. So I chosed Toggle Button.
However, I was not quite followed the instructions on Android Developer Online Doc. Besides, some problems like ‘variables are not resolved’ occurred.
After searching for the solution on Stackoverflow and finding example apps, I finally managed to achieve what I want.