| [comment encoding = UTF-8 /] |
| [comment] |
| Copyright (c) 2010, 2012 Obeo |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License 1.0 |
| |
| Any license can be applied to the files generated with this template |
| and Acceleo. |
| |
| author <a href="mailto:jonathan.musset@obeo.fr">Jonathan Musset</a> |
| [/comment] |
| [module listXML('http://www.eclipse.org/acceleo/example/android')/] |
| |
| [template public listXML(a : Activity)] |
| [file ('/res/layout/list.xml', false, 'UTF-8')] |
| <?xml version="1.0" encoding="utf-8"?> |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="wrap_content" android:layout_height="wrap_content"> |
| |
| <ListView android:id="@+id/android:list" android:layout_width="wrap_content" |
| android:layout_height="wrap_content" /> |
| <TextView android:id="@+id/android:empty" |
| android:layout_width="wrap_content" android:layout_height="wrap_content" |
| android:text="[a.name.toUpperFirst()/] is empty!" /> |
| |
| </LinearLayout> |
| [/file] |
| [/template] |