# User interface example using `app::ui`
module ui_example is
+ example
app_name "app.nit UI"
app_namespace "org.nitlanguage.ui_example"
android_api_min 21
var another_label = new Label(parent=layout, text="Close it by tapping the back button.")
end
-redef class App
- redef fun on_create
- do
- # Create the main window
- push_window new UiExampleWindow
- super
- end
-end
+redef fun root_window do return new UiExampleWindow