Академический Документы
Профессиональный Документы
Культура Документы
COMPONENTES
VISUAIS
Hello World
CLASSE R.JAVA
Viso de projeto
app/build/generated/source/r
Relative Layout
Linear Layout
Grid Layout
Table Layout
ScrollLayout
Constraint Layout
http://www.devmedia.com.br/linear-table-e-relative-layouts-com-android-studio/341
27
https://developer.android.com/training/constraint-layout/index.html
LAYOUTS: LARGURA E ALTURA
PROPRIEDADES BSICAS
android: layout_width
android: layout_height
Podem ser:
wrap_content
android:layout_above
android:layout_toRightOf
android:layout_alighParentTop
android:layout_centerInParent
e muito mais
MARGIN E PADDING
android: layout_margin
android:padding
Top
Bottom
Left
Right
LAYOUTS: FRAME LAYOUT
android:layout_gravity
LAYOUTS: LINEAR LAYOUT
android:layout_gravity (externo)
android:gravity (interno)
LAYOUTS: GRIDLAYOUT E
TABLELAYOUT
BASTANTE SIMILARES
LAYOUTS: GRIDLAYOUT
android:columnCount
android:rowCount
android:layout_row
android:layout_column
android:layout_rowSpan
android:column_span
android:layout_gravity
LAYOUTS: TABLE LAYOUT
TableRow
Adiciona-se os componentes em tablerow
LAYOUTS: CONSTRAINT LAYOUT
TextView
android:autolink
Fontes
android:typeface
padro: monospace, normal, sans, serif
Multilinha
android:maxLine
android:ellipzine
COMPONENTES
Spinner
RadioGroup
RadioButton
ProgressBar
RatingBar
COMPONENTES
Autolink
Pattern pattern =
Pattern.compile(\\d{5}-\\d{3});
String esquema =
http://cep.republicavirtual.com.br/ +
web_cep.php?formato=jsonp&cep=;
Linkify.addLinks(textView,pattern,esquem
a);
COMPONENTES
Fontes extras
http://developer.android.com/downloads/d
esign/roboto-1.2.zip
TypeFace robotoBoldItalic =
Typeface.createFromAsset(getAssets(),
Roboto-BoldItalic.ttf);
textView.setTypeface(robotoBoldItalic);
COMPONENTES
Tachado
Bold
Sublinhado
textView.setPaintFlags(textView.getPaint
Flags() | Paint.STRIKE_THRU_TEXT_FLAG);
COMPONENTES
EditText - imeOptions
setOnEditorActionLIstener
setError
getId
ESTILOS
colors.xml
hexadecimal
RGB ou ARGB
styles.xml