Git Product home page Git Product logo

duby-workouts's Introduction

Android applications with Mirah

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.

Troubleshooting

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

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).

And then in your default.properties file (it’s in the root dir of your application directory), enter the following in a new line:

target-version=android-2.1

If you have a different version, you might want to set that

Apps for Reference

  • Converse: An IRC app by alexsuraci in Mirah.

duby-workouts's People

Contributors

hashnuke avatar

Stargazers

 avatar Emmanuel Okyere avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.