Show Menu
Cheatography

CSS to Android Layout Cheat Sheet (DRAFT) by

A map between CSS and Android layout design

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Text

font-size
androi­d:t­extSize
color
androi­d:t­ext­Color
font-w­eight
androi­d:t­ext­Style

Layout

width
androi­d:l­ayo­ut_­width
height
androi­d:l­ayo­ut_­height
float
androi­d:g­ravity
fill_p­arent => 100%
 

Padding

padding
androi­d:p­adding
paddin­g-b­ottom
androi­d:p­add­ing­Bottom
paddin­g-left
androi­d:p­add­ingLeft
paddin­g-right
androi­d:p­add­ing­Right
paddin­g-top
androi­d:p­add­ingTop