Last active
April 20, 2022 08:43
-
-
Save kingori/fa4a71bf4e844b02d772d8c6d667fd32 to your computer and use it in GitHub Desktop.
Live template for ConstraintLayout xml attributes for Android
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
<templateSet group="ConstraintLayout"> | |
<template name="cbb" value="app:layout_constraintBottom_toBottomOf="$cursor$"" description="constraint bottom to bottom of id" toReformat="true" toShortenFQNames="true"> | |
<variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="cbp" value="app:layout_constraintBottom_toBottomOf="parent"" description="constraint bottom to bottom of parent" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="cbt" value="app:layout_constraintBottom_toTopOf="$cursor$"" description="constraint bottom to top of id" toReformat="false" toShortenFQNames="true"> | |
<variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="cll" value="app:layout_constraintLeft_toLeftOf="$cursor$"" description="constraint left to left of id" toReformat="false" toShortenFQNames="true"> | |
<variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="clp" value="app:layout_constraintLeft_toLeftOf="parent"" description="constraint left to left of parent" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="clr" value="app:layout_constraintLeft_toRightOf="$cursor$"" description="constraint left to right of id" toReformat="false" toShortenFQNames="true"> | |
<variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="crl" value="app:layout_constraintRight_toLeftOf="$cursor$"" description="constraint right to left of id" toReformat="false" toShortenFQNames="true"> | |
<variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="crp" value="app:layout_constraintRight_toRightOf="parent"" description="constraint right to right of parent" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="crr" value="app:layout_constraintRight_toRightOf="$cursor$"" description="constraint right to right of id" toReformat="false" toShortenFQNames="true"> | |
<variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="ctb" value="app:layout_constraintTop_toBottomOf="$cursor$"" description="constraint top to bottom of id" toReformat="false" toShortenFQNames="true"> | |
<variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="ctp" value="app:layout_constraintTop_toTopOf="parent"" description="constraint top to top of parent" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="ctt" value="app:layout_constraintTop_toTopOf="$cursor$"" description="constraint top to top of id" toReformat="false" toShortenFQNames="true"> | |
<variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="cpp" value="app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" " description="constraint center of parent" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="css" value="app:layout_constraintStart_toStartOf="$cursor$"" description="constraint start to start of id" toReformat="false" toShortenFQNames="true"> | |
<variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="csp" value="app:layout_constraintStart_toStartOf="parent"" description="constraint start to start of parent" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="cse" value="app:layout_constraintStart_toEndOf="$cursor$"" description="constraint start to end of id" toReformat="false" toShortenFQNames="true"> | |
<variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="ces" value="app:layout_constraintEnd_toStartOf="$cursor$"" description="constraint end to start of id" toReformat="false" toShortenFQNames="true"> | |
<variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="cep" value="app:layout_constraintEnd_toEndOf="parent"" description="constraint end to end of parent" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
<template name="cee" value="app:layout_constraintEnd_toEndOf="$cursor$"" description="constraint end to end of id" toReformat="false" toShortenFQNames="true"> | |
<variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="XML" value="true" /> | |
<option name="XML_TEXT" value="false" /> | |
</context> | |
</template> | |
</templateSet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mac 기준 디렉터리 변경:
~/Library/Preferences/AndroidStudio4.0/templates