E-learn.ro
Panou utilizatori
Utilizator Parola
Creeaza cont nou    Recupereaza parola
Login
Newsletter
Introdu adresa ta de email
Inscrie-te
Inchide panoul de utilizatori
Add to Google

Tutoriale Android

Descarca toolbar

Toolbar E-learn.ro Facebook Twitter

SISTEME DE OPERARE  /  Android  /  Aplicatii (5)

User Interface - Linear Layout

27.08.2012
User Interface - Linear Layout

Scopul acestui tutorial este de a face o prezentare a celui mai simplu layout existent pe platforma Android si anume Linear Layout, dar in cadrul careia vor fi integrate si alte tipuri de controale.

Total vizualizari: 12715 12715 afisari   |   Comentarii  0   |   Rating   |   (3 voturi)   |   Timp necesar: 35 min 35 min   |   Nivel de cunostiinte necesar: Incepator  Incepator

Autor: magda.badita Incepator
Adauga la tutoriale favorit Adauga la tutoriale favorite
Pagina:
« 12 3
comenteaza printeaza

Padding:

Proprietatea "padding" determina spatiul intre widget-uri: padding_left, padding_top, padding_right, padding_buttom, padding.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mainlayout"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:paddingLeft="20dip">
<Button
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="Button 1">
</Button>
<Button
android:id="@+id/btn"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:paddingLeft="40dip"
android:text="Button 2">
</Button>
</LinearLayout>

LinearLayout in LinearLayout:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:orientation="horizontal">
<Button
android:layout_width= "wrap_content"
android:layout_height= "wrap_content"
android:text= "Button 1">
</Button>
<Button
android:layout_width= "wrap_content"
android:layout_height= "wrap_content"
android:text= "Button 1">
</Button>
</LinearLayout>
<LinearLayout
android:layout_height= "wrap_content"
android:layout_width= "fill_parent"
android:orientation= "horizontal">
<Button
android:layout_width= "wrap_content"
android:layout_height= "wrap_content"
android:text= "Button 3">
</Button>
<Button
android:layout_width= "wrap_content"
android:layout_height= "wrap_content"
android:text= "Button 4">
</Button>
</LinearLayout>
</LinearLayout>

Pagina:
« 12 3
comenteaza printeaza

Cuvinte cheie:   Magda Badita,   smartphone platforms,   tutorial android,   linear layout,  

Alte tutoriale Android:
Noteaza acest tutorial
Rating tutorial
 
(3 voturi)
Pentru a nota acest tutorial, trebuie sa fii logat!
Posteaza un comentariu
Pentru a posta un comentariu, trebuie sa fii logat!
0 TOP UTILIZATORI* 0 0
Tutoriale scrise de claibornelara
claibornelara Rang utilizator claibornelara - Incepator
5460
Tutoriale scrise de mcuemica
mcuemica Rang utilizator mcuemica - Incepator
5460
Tutoriale scrise de emonclercheap
emonclercheap Rang utilizator emonclercheap - Incepator
5285
Tutoriale scrise de ellarichards
ellarichards Rang utilizator ellarichards - Incepator
5270
Tutoriale scrise de beacherrosa
beacherrosa Rang utilizator beacherrosa - Incepator
5015
* Acest top reprezinta punctajele acumulate in ultimele 30 de zile.
Illustrator Excel Python PHP Flash SEO Lightroom MySQL Action Script Sony Vegas Dreamweaver CSS Verilog StyleSheet AJAX Ruby on Rails Photoshop Word Outlook Fireworks XML COREL DRAW PSD HTML Gimp Bridge Fotografie SWF RoR Powerpoint Swift 3D XHTML Javascript Vista JSON Java
Promovare:
Daca faci parte din comunitatea E-learn.ro si doresti promovarea acesteia, poti accesa pagina de promovare.
Arhiva newsletter:
Daca ai ratat un numar mai vechi, sau vrei sa revezi care au fost noutatile E-learn.ro la un moment dat, poti accesa arhiva de newslettere.
  Copyright © 2008-2013 E-LEARN.ro. Toate drepturile rezervate. Termeni si conditii.
Conceput si realizat de Neokinetics Software