← All articles
mobile

IntelliJ Android Layout LiveTemplates

A set of free IntelliJ live templates for Android XML layouts -- shortcuts for buttons, list views and more to speed up writing view code.

Donn Felker

Donn Felker

2010.12.23 · 1 min read

I’m in the middle of writing a bunch of Android apps and I’ve gotten to the point where I’m tired of typing the same thing over and over so I’ve created some Android XML Live Templates for IntelliJ 10 CE.

The templates are for the XML layout system in Android. As time progresses I’m sure I’ll add in code templates and such, but for now here they are in the hopes that someone else might need/use them. They will speed up your view development immensely.

@font-face { font-family: “MS 明朝”; }@font-face { font-family: “MS 明朝”; }@font-face { font-family: “Cambria”; }p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Cambria; }.MsoChpDefault { font-family: Cambria; }div.WordSection1 { page: WordSection1; }

Shortcut

Result

btnButton XML layout with width, height, id and text
flFrameLayout XML layout with width, height
imImageView XML layout with width, height
lhandroid:layout_height=”” XML
llLinearLayout XML Layout with width, height
lvListView XML Layout with width, height
lwandroid:layout_width=”” XML
pbProgressBar XML layout with width, height and indeterminate options
rlRelativeLayout XML layout with width, height
tvTextView XML Layout with width, height, id and text

Download the Templates

Donn Felker

Written by Donn Felker

I've spent 25+ years shipping software, writing books, and running my own companies. I write about thinking clearly, working for yourself, and doing real work while AI rewrites the rules. New essays land here every week.

Get the newsletter

Keep reading