You are on page 1of 6

Paga No.

Data
Nhatt f s layut end explam Imear lajou-E
Yelative layaui W the help ob example
Ane: A layout debies theshntte jor a use mtcrkac
n the P P Sudh aS 4n achu f elesents m Hhe
layout are builE using a hiesenchy ob VfeO
VLOAOLP Deect
There ae ditserent teypes c layou ¢hisCm
loe decletd XML TÉe ar dmc Ma types o
layout 3 : :
Lineaglayout
Relative Jayout
neaslayDt
Ancheid Lnes layut ls a vfeuo goup Hhat
alian alu chiden m ether VeKTally a r hizamtally

Andpid Orentatim Anelend orientahan


Hotzanal "Vetcal

neadlayout AHbudes
TAndrutd fd Unfquely rdenhber the laye
Andro d Baselne Algneol pevent Hhe layru
tSagnmg Ts chrldem baseme
Anclnid tdNI Pis doawbale to s e ag a e r hal
detider betn butms
Page No.
Date

IYAnctro+ed onentim Specibies h e decton at


aenaments.
Andnid- weraht am- sum uPat dild eraht

ampe_
Main Achviy ]AVA
package choeximple'dem

Dmpat andmId. oS» Kundles


mpo andidape. AcHiy,

Fublre class amtchvitu extends ackray


a ) oveyfde -
pntec-ed ofeenceake, ( Kunde saNE dIngante
Cstaele)
Super OhCheate (Sared Tnstance stde )_
setccoentveS (R. layont.ac t-mam)

Activity-mam- KML'_
7 XML
Versim="1.0encodm.
LMea6aou mnSArdhoid up-g")
" hths1 Seheme
.ando-cCm
andyold:
apk/es]andard
layod wtdth = Sll- pqen
andnid ayadheghttg5ll-pebnt
adnd: DreenBndhon "Vedkal"
1
<Button android- rd= "Hd /bnsto-t
anderd lout-wdth =" Bcedp
androed auout-hean =" wP Tmtent
andod ttext -Sheat'/y

Buten ndroid rd="@hd /btn STtp


Andmd:iayout- dth=30cdp
andodlayouthetght ="Wap romtent
andmrd ext = stpL2

2mer lcuyout

DenA

orentehm:Uex bcal" OTentztn: "hm2at 0

) Pelahves Jayou to specikyha


AndojdRelakve layoud enable_uau
a e PosTtenc e l e h e ds smdh cttre. The
chld yew
ied aS 7elatves
View Can be sped
pOS bem os Dlh
to ca xelaivesto the pdeat
Srlmq alements
Page No0
Date

Tmpoo tantAttibts-
1)Andobid: tduniquehy Yelerhbes layerl
2andausd avity speoi bies hou
a n objet
chould posttron Is content 00 both
-fe 4 Y axes
Ancho id Janoac oaty-rhis mdtcades wbat
Vie choud hat be afbrcted by

Mamachviy-JAVA
Packaae cameKample demo,
mpatandabid 0s Bundle
npat an dovid appacVl y -
Public lass maM achvit4 extendc achy
Oveohtde
pmte teal Void omceae (Runde savecl Igtme
Supe mCkak (saveInstance state)
Set Conten E Víeu (R.la4a
achlma),

Acivity-mam XM L
<Relative Layout Xmns:
Andoid="https:lISchemes
ondmsid|apleesandnid'.
androi d layouuwidth="
andoid :laqout-heighéz 7-parent
"il-palent
andold:paddmq let t=
ah cdhrd poddmqrahta dp Is dp"

Fdittext andrtdiid
andwrd: laj outCrdh "eid/nome"
-

t st-pdhent
andwrd: loyos herght
Wrap-dsatecne-
p-tatecat"
Paga No.
Date

ahdoold hmt "@sihq/embriolea "]


KImeasleyOut ancdmre 'an entaton =( verhea
ahchmld: lajot-wiel h =
-pdhent
anchoid: layant-heteht t hfl-palent
analno Tz: lajgu-amparent stoyt= åe'y
andold layout -bela = Qhd/name"

Button aachroid:rd=«hd/Lth"
ancotd; layad -Ndth= wupCotemd *
anohrord: laat=haght"naap.comtend
ancmid: ext = rutton

K/Lnearlaynwt
</Relare loyod

DeMO

BuaO

Relativelayoud-
wTite Snot note on!
shaeel pefermces-
shae s p-ebenen le the Day m hfcha k
Lan sare and relhves small amoun s tphmihe
dato as_key values pairte a51e n h e cleuce
-
SBortge Sch as StmgmEjtod 1Looten hat
malse up Ynur pefe eesman XmL1bste madeMe
FegeNo.
Date

app on the devce Stzre4e


shaed prrekh ces an be hroDuahas ase
d mmy oa kaylualuec pas ghatd
prebenehce class alo pmvidesapTtoadug
mange this data
TO CLeade shaed prebnce uwe nees ta
Axete om perhie whenycuanE getvalg
coll get shared piebene s 0ehod ghe
dibbeent mades fer_ data seuhty

MoDE- PUBLTC makes t e bie publrc


MopE -PRAATE keeps epmva
MaDE-PppND- - Usedto reae data bm SP
1e
b)Feaures.ak Andmid
OReaut bu DL Andnd has beatibul qnd mhd»
USer Mtrface
connechvikyGsM/FQ6E CDmA, VmTS, wL
LTE NFC, £Rlaoth
storcge -s¢LIE La lrghtueght
vtlahmal
dat baSe fs U£ed tor data
medra Sppt-Amdhuis Sippab wfde staqe
Csmedtafemmat unge
web-Brooud Ser e Lnebkit layaut
porvadcd ith_charmi¬s 8 engve s_s
tmLS 4SS 3, TAUASMpt w
6mulh-toueh taya
7) mu
lH-Mgunchonali y
3) mu-1angnoce supprt
wisD) RLt -peesti-PRer CMnEctrr

You might also like