Donn Felker

Not A Subscriber?

Join thousands of people who build and refuse to get left behind. One message a week on building, using AI as an accelerator, and staying sharp in the new AI frontier.

Receive one free message a week

December 23, 2010 Donn Felker

IntelliJ Android Layout LiveTemplates

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