droid.fullSetProperty("imageView1","src","file:///sdcard/download/panda72.png")
I am fairly new to programming anything for Android so I am not 100% sure if I'm doing this correctly or just simply missing something.What I am trying to do is add a .png to a button as a background, I assumed I could put the .png in the same folder as the main python file and change:android:background="#ff66a3d2" to android:background="@<image>.png"To my dismay it seems my logic is missing something crucial with this, and due to my lack of experience with attempting an interface using xml, and especially xml on Android through sl4a/Python for Android.
Robbie Matthews gives a full, no-holds barred introduction to Android programming for tablets. No previous experience required! Learn More …
Hi,
As an example take a look @ the code here... http://code.google.com/p/python-for-android/source/browse/sl4atools/fullscreenwrapper2/examples/calcount2_example.zip
It loads a new layout for taking user input on clicking a button in the main screen and then goes back once input is complete.
Best regards
Srinath
Hmmm I don't know if actiondone event is captured in sl4a code currently... so you may not see it.
In this case you could simply add a separate click handler to your done button.
Regards
Srinath
--
You received this message because you are subscribed to the Google Groups "Py4A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-for-android+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.