Android UI knowledge share

Descripción

A brief Slide Set for the second Android knowledge share with new starts.
dfsdgas dfgdfgsgdfsgsd
Diapositivas por dfsdgas dfgdfgsgdfsgsd, actualizado hace más de 1 año
dfsdgas dfgdfgsgdfsgsd
Creado por dfsdgas dfgdfgsgdfsgsd hace alrededor de 8 años
10
0

Resumen del Recurso

Diapositiva 1

    Key Components of Android UI
    Activities Fragments Views XML resource files Activity - A single, focused thing that the user can do. Almost all activities interact with the user, so the Activity class takes care of creating a window for you in which you can place your UI.Fragment - A piece of an application's user interface or behaviour that can be placed in an Activity. View - Basic building block for all UI components e.g. XML resource files - xml files that can define the UI for layouts, shapes, animations, dimensions, colours etc.

Diapositiva 2

    Activity
    Activities are the heart of the Android app.  They can loosely be viewed as the "controller" in the Android framework.In the diagram on the left we see the 'activity lifecycle' from creation to being destroyed. Typically the only methods we need to worry about are onCreate(), onResume() and onPause() / onStop().Example of a simple onCreate() method that defines what layout the activity should display on screen.@Overrideprotected void onCreate(Bundle savedInstanceState) {    super.onCreate(savedInstanceState);    setContentView(R.layout.activity_home);}
    Pie de foto: : Activity Lifecycle

Diapositiva 3

    Fragment
    A Fragment represents a behavior or a portion of user interface in an Activity. You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities. You can think of a fragment as a modular section of an activity, which has its own lifecycle, receives its own input events, and which you can add or remove while the activity is running (sort of like a "sub activity" that you can  reuse indifferent activities).

Diapositiva 4

    View
    A view is the basic building block of any UI element. Anything that you can see on the screen inherits from view. A view will typically have it's style defined in xml, and it's behaviour defined in Java. It's worth noting that it is possible to style views programmatically, but generally it's cleaner to keep this stuff separate. We can define our own custom views if the behaviour we require is not included in the standard framework. For example our Mind Maps uses a custom zoomable view to draw the nodes on to a canvas.

Diapositiva 5

    XML resources
    XML files are used to define the appearence of many UI elements in Android including: Layouts Animations Styles Colors Shapes Views Drawables

Diapositiva 6

    Thank you.Any questions please feel free to ask or email peter.smith@examtime.com For a comprehensive API reference and really good training material checkout http://developer.android.com/
Mostrar resumen completo Ocultar resumen completo

Similar

Fechas Históricas del Siglo XX
Diego Santos
Mind Mapping: 10 Estrategias para Docentes
maya velasquez
Test de Inglés para la Prepa Abierta 3
Raúl Fox
FARMACOLOGÍA DE LA MUSCULATURA ESQUELETICA
cass_baltazar
GENERALIDADES DE LAS EDIFICACIONES
yessi.marenco17
El Cerebro Humano
Ximena Olivera
Cómo Aprender Idiomas Usando Fichas
Diego Santos
INCONTINENCIA Y PROLAPSO
Luz Moor
AUTORES-LIBROS
ROSA MARIA ARRIAGA
LOS PRECIOS
Angela Guerrero
La desintegración del Renacimiento
amadis96