Debian Codegraph @

templates/eclipse/other/CustomView/root/res/layout/sample.xml.ftl

raw
1 <FrameLayout
2 xmlns:android="http://schemas.android.com/apk/res/android"
3 <#if !isLibraryProject && (!(isGradle??) || !isGradle) >
4 xmlns:app="http://schemas.android.com/apk/res/${packageName}"
5 <#else>
6 xmlns:app="http://schemas.android.com/apk/res-auto"
7 </#if>
8 android:layout_width="match_parent"
9 android:layout_height="match_parent">
10
11 <${packageName}.${viewClass}
12 android:background="#ccc"
13 android:layout_width="300dp"
14 android:layout_height="300dp"
15 android:paddingLeft="20dp"
16 android:paddingBottom="40dp"
17 app:exampleDimension="24sp"
18 app:exampleColor="#33b5e5"
19 app:exampleString="Hello, ${viewClass}"
20 app:exampleDrawable="@android:drawable/ic_menu_add" />
21
22 </FrameLayout>