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.
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 ) ;...
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!
User interfaces
Article included in this offer
"Software technologies and System architectures"
(
227 articles
)
Updated and enriched with articles validated by our scientific committees
A set of exclusive tools to complement the resources
Bibliography
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!