Created
May 9, 2013 16:33
-
-
Save letroll/5548624 to your computer and use it in GitHub Desktop.
android template for intellij
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<templateSet group="android"> | |
<template name="lh" value="android:layout_height="$END$"" description="layout_height" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="true" /> | |
<option name="XML" value="true" /> | |
<option name="JAVA_CODE" value="false" /> | |
<option name="JAVA_STATEMENT" value="false" /> | |
<option name="JAVA_EXPRESSION" value="false" /> | |
<option name="JAVA_DECLARATION" value="false" /> | |
<option name="JAVA_COMMENT" value="false" /> | |
<option name="JAVA_STRING" value="false" /> | |
<option name="COMPLETION" value="false" /> | |
<option name="GROOVY" value="false" /> | |
<option name="GROOVY_EXPRESSION" value="false" /> | |
<option name="GROOVY_STATEMENT" value="false" /> | |
<option name="GROOVY_DECLARATION" value="false" /> | |
<option name="MAVEN" value="false" /> | |
<option name="OTHER" value="false" /> | |
</context> | |
</template> | |
<template name="lw" value="android:layout_width="$END$"" description="layout_width" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="true" /> | |
<option name="XML" value="true" /> | |
<option name="JAVA_CODE" value="false" /> | |
<option name="JAVA_STATEMENT" value="false" /> | |
<option name="JAVA_EXPRESSION" value="false" /> | |
<option name="JAVA_DECLARATION" value="false" /> | |
<option name="JAVA_COMMENT" value="false" /> | |
<option name="JAVA_STRING" value="false" /> | |
<option name="COMPLETION" value="false" /> | |
<option name="GROOVY" value="false" /> | |
<option name="GROOVY_EXPRESSION" value="false" /> | |
<option name="GROOVY_STATEMENT" value="false" /> | |
<option name="GROOVY_DECLARATION" value="false" /> | |
<option name="MAVEN" value="false" /> | |
<option name="OTHER" value="false" /> | |
</context> | |
</template> | |
<template name="btn" value="<Button android:id="@+id/$ID$" android:layout_height="$HEIGHT$" android:layout_width="$WIDTH$" android:text="@string/$STRING$"/>$END$" description="android button" toReformat="false" toShortenFQNames="true"> | |
<variable name="ID" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="HEIGHT" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="WIDTH" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="STRING" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="true" /> | |
<option name="XML" value="true" /> | |
<option name="JAVA_CODE" value="false" /> | |
<option name="JAVA_STATEMENT" value="false" /> | |
<option name="JAVA_EXPRESSION" value="false" /> | |
<option name="JAVA_DECLARATION" value="false" /> | |
<option name="JAVA_COMMENT" value="false" /> | |
<option name="JAVA_STRING" value="false" /> | |
<option name="COMPLETION" value="false" /> | |
<option name="GROOVY" value="false" /> | |
<option name="GROOVY_EXPRESSION" value="false" /> | |
<option name="GROOVY_STATEMENT" value="false" /> | |
<option name="GROOVY_DECLARATION" value="false" /> | |
<option name="MAVEN" value="false" /> | |
<option name="OTHER" value="false" /> | |
</context> | |
</template> | |
<template name="ll" value="<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="$WIDTH$" android:layout_height="$HEIGHT$"> $END$ </LinearLayout>" description="Linear Layout" toReformat="false" toShortenFQNames="true"> | |
<variable name="WIDTH" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="HEIGHT" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="true" /> | |
<option name="XML" value="true" /> | |
<option name="JAVA_CODE" value="false" /> | |
<option name="JAVA_STATEMENT" value="false" /> | |
<option name="JAVA_EXPRESSION" value="false" /> | |
<option name="JAVA_DECLARATION" value="false" /> | |
<option name="JAVA_COMMENT" value="false" /> | |
<option name="JAVA_STRING" value="false" /> | |
<option name="COMPLETION" value="false" /> | |
<option name="GROOVY" value="false" /> | |
<option name="GROOVY_EXPRESSION" value="false" /> | |
<option name="GROOVY_STATEMENT" value="false" /> | |
<option name="GROOVY_DECLARATION" value="false" /> | |
<option name="MAVEN" value="false" /> | |
<option name="OTHER" value="false" /> | |
</context> | |
</template> | |
<template name="rl" value="<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="$WIDTH$" android:layout_height="$HEIGHT$"> $END$ </RelativeLayout>" description="relative layout" toReformat="false" toShortenFQNames="true"> | |
<variable name="WIDTH" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="HEIGHT" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="true" /> | |
<option name="XML" value="true" /> | |
<option name="JAVA_CODE" value="false" /> | |
<option name="JAVA_STATEMENT" value="false" /> | |
<option name="JAVA_EXPRESSION" value="false" /> | |
<option name="JAVA_DECLARATION" value="false" /> | |
<option name="JAVA_COMMENT" value="false" /> | |
<option name="JAVA_STRING" value="false" /> | |
<option name="COMPLETION" value="false" /> | |
<option name="GROOVY" value="false" /> | |
<option name="GROOVY_EXPRESSION" value="false" /> | |
<option name="GROOVY_STATEMENT" value="false" /> | |
<option name="GROOVY_DECLARATION" value="false" /> | |
<option name="MAVEN" value="false" /> | |
<option name="OTHER" value="false" /> | |
</context> | |
</template> | |
<template name="fl" value="<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="$WIDTH$" android:layout_height="$HEIGHT$"> $END$ </FrameLayout>" description="frame layout" toReformat="false" toShortenFQNames="true"> | |
<variable name="WIDTH" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="HEIGHT" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="true" /> | |
<option name="XML" value="true" /> | |
<option name="JAVA_CODE" value="false" /> | |
<option name="JAVA_STATEMENT" value="false" /> | |
<option name="JAVA_EXPRESSION" value="false" /> | |
<option name="JAVA_DECLARATION" value="false" /> | |
<option name="JAVA_COMMENT" value="false" /> | |
<option name="JAVA_STRING" value="false" /> | |
<option name="COMPLETION" value="false" /> | |
<option name="GROOVY" value="false" /> | |
<option name="GROOVY_EXPRESSION" value="false" /> | |
<option name="GROOVY_STATEMENT" value="false" /> | |
<option name="GROOVY_DECLARATION" value="false" /> | |
<option name="MAVEN" value="false" /> | |
<option name="OTHER" value="false" /> | |
</context> | |
</template> | |
<template name="tv" value="<TextView android:id="@+id/$ID$" android:layout_height="$HEIGHT$" android:layout_width="$WIDTH$" android:text="@string/$STRING$"/>$END$" description="TextView" toReformat="false" toShortenFQNames="true"> | |
<variable name="ID" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="HEIGHT" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="WIDTH" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="STRING" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="true" /> | |
<option name="XML" value="true" /> | |
<option name="JAVA_CODE" value="false" /> | |
<option name="JAVA_STATEMENT" value="false" /> | |
<option name="JAVA_EXPRESSION" value="false" /> | |
<option name="JAVA_DECLARATION" value="false" /> | |
<option name="JAVA_COMMENT" value="false" /> | |
<option name="JAVA_STRING" value="false" /> | |
<option name="COMPLETION" value="false" /> | |
<option name="GROOVY" value="false" /> | |
<option name="GROOVY_EXPRESSION" value="false" /> | |
<option name="GROOVY_STATEMENT" value="false" /> | |
<option name="GROOVY_DECLARATION" value="false" /> | |
<option name="MAVEN" value="false" /> | |
<option name="OTHER" value="false" /> | |
</context> | |
</template> | |
<template name="lv" value="<ListView android:id="@+id/$ID$" android:layout_height="$HEIGHT$" android:layout_width="$WIDTH$" android:text="@string/$STRING$"/>$END$" description="ListView" toReformat="false" toShortenFQNames="true"> | |
<variable name="ID" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="HEIGHT" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="WIDTH" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="STRING" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="true" /> | |
<option name="XML" value="true" /> | |
<option name="JAVA_CODE" value="false" /> | |
<option name="JAVA_STATEMENT" value="false" /> | |
<option name="JAVA_EXPRESSION" value="false" /> | |
<option name="JAVA_DECLARATION" value="false" /> | |
<option name="JAVA_COMMENT" value="false" /> | |
<option name="JAVA_STRING" value="false" /> | |
<option name="COMPLETION" value="false" /> | |
<option name="GROOVY" value="false" /> | |
<option name="GROOVY_EXPRESSION" value="false" /> | |
<option name="GROOVY_STATEMENT" value="false" /> | |
<option name="GROOVY_DECLARATION" value="false" /> | |
<option name="MAVEN" value="false" /> | |
<option name="OTHER" value="false" /> | |
</context> | |
</template> | |
<template name="im" value="<ImageView android:id="@+id/$ID$" android:layout_width="$WIDTH$" android:layout_height="$HEIGHT$" android:src="@drawable/$SRC$"/>$END$" description="ImageView" toReformat="false" toShortenFQNames="true"> | |
<variable name="ID" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="WIDTH" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="HEIGHT" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="SRC" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="true" /> | |
<option name="XML" value="true" /> | |
<option name="JAVA_CODE" value="false" /> | |
<option name="JAVA_STATEMENT" value="false" /> | |
<option name="JAVA_EXPRESSION" value="false" /> | |
<option name="JAVA_DECLARATION" value="false" /> | |
<option name="JAVA_COMMENT" value="false" /> | |
<option name="JAVA_STRING" value="false" /> | |
<option name="COMPLETION" value="false" /> | |
<option name="GROOVY" value="false" /> | |
<option name="GROOVY_EXPRESSION" value="false" /> | |
<option name="GROOVY_STATEMENT" value="false" /> | |
<option name="GROOVY_DECLARATION" value="false" /> | |
<option name="MAVEN" value="false" /> | |
<option name="OTHER" value="false" /> | |
</context> | |
</template> | |
<template name="pb" value="<ProgressBar android:id="$ID$" android:layout_height="$HEIGHT$" android:layout_width="$WIDTH$" android:indeterminate="$INDETERMINATE$"/>$END$" description="ProgressBar" toReformat="false" toShortenFQNames="true"> | |
<variable name="ID" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="HEIGHT" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="WIDTH" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="INDETERMINATE" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="false" /> | |
<option name="XML" value="true" /> | |
<option name="JAVA_CODE" value="false" /> | |
<option name="JAVA_STATEMENT" value="false" /> | |
<option name="JAVA_EXPRESSION" value="false" /> | |
<option name="JAVA_DECLARATION" value="false" /> | |
<option name="JAVA_COMMENT" value="false" /> | |
<option name="JAVA_STRING" value="false" /> | |
<option name="COMPLETION" value="false" /> | |
<option name="GROOVY" value="false" /> | |
<option name="GROOVY_EXPRESSION" value="false" /> | |
<option name="GROOVY_STATEMENT" value="false" /> | |
<option name="GROOVY_DECLARATION" value="false" /> | |
<option name="MAVEN" value="false" /> | |
<option name="OTHER" value="false" /> | |
</context> | |
</template> | |
<template name="loo" value="Logger.loge(this,"$END$");" description="Log with Logger in class without context" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="false" /> | |
<option name="XML" value="false" /> | |
<option name="JAVA_CODE" value="true" /> | |
<option name="JAVA_STATEMENT" value="true" /> | |
<option name="JAVA_EXPRESSION" value="true" /> | |
<option name="JAVA_DECLARATION" value="true" /> | |
<option name="JAVA_COMMENT" value="false" /> | |
<option name="JAVA_STRING" value="false" /> | |
<option name="COMPLETION" value="true" /> | |
<option name="GROOVY" value="false" /> | |
<option name="GROOVY_EXPRESSION" value="false" /> | |
<option name="GROOVY_STATEMENT" value="false" /> | |
<option name="GROOVY_DECLARATION" value="false" /> | |
<option name="MAVEN" value="false" /> | |
<option name="OTHER" value="false" /> | |
</context> | |
</template> | |
</templateSet> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment