User Interface

User interface
- Todos los atributos después de android:...
Layouts
- Distribución, posición y dimensión de los elementos.
- FrameLayout: layout_width y layout_height
- LinearLayout: layout_weight, orientation, ...
- TableLayout: stretchColumns, shrinkColumns, collapseColumns...
- TableRow (layout span)
- RelativeLayout
Botones
- Sirven para ser pulsados:
- Button (Text, layout_width, layout_height)
- ToggleButton (textOn, textOff, ...)
- ImageButton (source,...)
Imágenes
- Vista que muestra una imagen
- ImageView (layout_width, layout_height, src)
- setImageResource()
Etiquetas, cuadros de texto
- Mostrar texto fijo y editar texto
- TextView (layout_width, layout_height, text, background, typeface)
- EditText (layout_width, layout height, below)
CheckBoxes, radioButtons
- Selectores
- CheckBox (layout_width ,alyout_height, text)
- isChecked()
- RadioGroup(orientation)
- RadioButton (text)
- getCheckedRadioButtonId()
Listas desplegables
- Varios elementos en lista desplegable
- Spinner (layout_width, layout_height, text)
- Uso de adapter
Listas
- Varios elementos representados en forma de lista
- ListView (layout_Width, layout_height)
- RecyclerView
- Uso de adapter
- Se pueden modificar los elementos de la lista, para que se muestre más que un simple string.
Grids
- Ver elementos en disposición de cuadrícula
- GridView(layout_width, layout_height, numColumns, columnWidth, horizontalSpacing, verticalSpacing, stretchMode)
- Uso de adapter
Pestañas
- Diferentes vistas separas por pestañas
- TabHost
- TabWidget (pestañas en sí)
- FrameLayout (contenido de pestañas)
- LinearLayout (contenido de cada pestaña)
- TabLayout (android 5)
- TabHost
8 - User Interface
By androidjedi
8 - User Interface
- 380