User interfaces
Android -Application development for mobiles
Article REF: H1590 V1
User interfaces
Android -Application development for mobiles

Author : Daniel ENSELME

Publication date: February 10, 2013 | Lire en français

Logo Techniques de l'Ingenieur You do not have access to this resource.
Request your free trial access! Free trial

Already subscribed?

3. User interfaces

A special feature of Android UI construction is that it can be carried out either programmatically or declaratively.

A screen is the result of the organization of different containers, themselves made up of views arranged according to a chosen layout.

Example of the programmatic construction of a user interface (UI)

LinearLayout container = new LinearLayout(this);

container.setLayoutParams( new LayoutParams(

LayoutParams.FILL_PARENT,

LayoutParams.WRAP_CONTENT );

container.setOrientation( LinearLayout.HORIZONTAL);

EditText editText = new EditText( this );

editText.setText( "Your name?" ) ;

container.addView( editText ) ;...

You do not have access to this resource.
Logo Techniques de l'Ingenieur

Exclusive to subscribers. 97% yet to be discovered!

You do not have access to this resource. Click here to request your free trial access!

Already subscribed?


Article included in this offer

"Software technologies and System architectures"

( 227 articles )

Complete knowledge base

Updated and enriched with articles validated by our scientific committees

Services

A set of exclusive tools to complement the resources

View offer details