Professional Documents
Culture Documents
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
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
ampe_
Main Achviy ]AVA
package choeximple'dem
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
2mer lcuyout
DenA
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
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