[Android] add image to app #1355
-
Hi, I need to add image on my app. And if user clicks some button, it should be changed to another image. On Windows, toga.Imageview works well. But after install app in my phone using apk, it does not work. I saw Imageview does not support android on toga tutorial pdf file. Is there any way to add image that can be changed by responsing some action like clicking button on android app? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yes, it is possible; and the code you need shouldn't be any different to what you're doing on Windows. The critical thing will be to get the path specifying the path to the image file correct. The examples folder gives an example of an ImageView that works across platforms. |
Beta Was this translation helpful? Give feedback.
Yes, it is possible; and the code you need shouldn't be any different to what you're doing on Windows. The critical thing will be to get the path specifying the path to the image file correct.
The examples folder gives an example of an ImageView that works across platforms.