I saw the UI tutorial, I thought I'd point you at a snippet of code
I've written, to parse Android UI style XML dynamically:
It's open sourced, feel free to incorporate it into Ruboto if you'd
like.
--brendan
https://github.com/ruboto/ruboto-core/wiki
--
Uwe Kubosch
http://ruboto.org/
I see that I can use something like:
java_import "org.droiddraw.android.ViewInflater"
inflater = ViewInflater.new($activity)
view = inflater.inflate($xml)
$activity.setContentView view
But how can I get Ruboto to build that file into the .apk?
I can't seem to find similar instructions on the wiki.
Any quick pointers would be quite useful!
Thanks!
--brendan
How do I get ruboto to build ViewInflater.java (my custom Java code)
into the .apk.
Thanks
--brendan
All .java files in the src directory will be compiled and included in the apk.
--
Uwe Kubosch
u...@kubosch.no
http://kubosch.no/
https://github.com/ruboto/ruboto/wiki/Tutorial%3A-Using-ViewInflater
Let me know if there are any problems. I'm not very familiar with
Ruby, I imagine that you could probably load the XML from a file, but
I'm not sure how to do that.
--brendan