https://github.com/hashnuke/duby-workouts
Sample Android applications using Duby - a work in progress
https://github.com/hashnuke/duby-workouts
Last synced: 9 months ago
JSON representation
Sample Android applications using Duby - a work in progress
- Host: GitHub
- URL: https://github.com/hashnuke/duby-workouts
- Owner: HashNuke
- Created: 2010-04-23T13:03:15.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2010-07-27T04:54:36.000Z (over 15 years ago)
- Last Synced: 2025-03-30T19:28:27.311Z (12 months ago)
- Language: Java
- Homepage:
- Size: 207 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. Android applications with Mirah
h2. Application list
* HelloDuby - A simple Hello World app in Mirah(called Duby before). It uses the XML layout like any other Android app.
* HelloLinear - the LinearLayout example from the Android site.
* HelloRelative - the RelativeLayout example from the Android site.
* HelloTable - the Table example from the Android site.
h2. Troubleshooting
p. When you are creating your own apps make sure you add the exec stuff in your build.xml file in your Android app dir. "Here's the snippet":http://gist.github.com/376569
p. Note that you'll have to change the arg value for the java exec. change the @../gen/singalong/helloduby/R.java@ to something of the form @../gen/your-pkg-path/R.java@. You can leave the rest of the stuff intact.
By doing the above you'll have the R.layout, R.strings and other R stuff working but in a little different way. You'll have to do:
@import "Layout", "singalong.helloduby.R$layout"@
in your Mirah file to be able to refer to layouts like @Layout.main@ instead of @R.layout.main@
So for drawable, you can do @import "Drawable", "singalong.helloduby.R$drawable"@ and then use Drawable.something. This work around is only until the guys get nested classes working in Mirah. Once that works. You'll be free from this aliasing (i guess that's what it's called).
p. And then in your default.properties file (it's in the root dir of your application directory), enter the following in a new line:
p. @target-version=android-2.1@
If you have a different version, you might want to set that
h2. Apps for Reference
* "Converse":http://darcsden.com/alex/converse-duby: An IRC app by alexsuraci in Mirah.