Adobe Scan 01 Apr 2024

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Date

Page

Revisian

2m
to show Hello
Jauaptogram
paogda m and
Component
uSing Teet View "L.o" encoding"uEE-8"?7
Ans AXml vetsion
<linea Layou
LSChemas- andtoid .cOm
Xmlns andtoid" htp
andoid"
/,apk.
matehpatent"
andtoid layout-au idth
can dtoid layout - height "match patent"
an deoid gtavity : "cen+et
toolscontext :",MainAtiky

<Text View
Can daoid iid "íhTes+ View
andtoid layout-wid th a"wtap content"
andaid Layeut he is ht " wtap çootent"
andoidi te<+Size> "24sp"
andtoid tert >'lello wol"2

I Linfat Layeut 7
Java
ihpott andtoid .os Bundle:
impott andtoidx appompart. app. App
impott andeoid widget Je&tVieuw; Compalp
public class
mainActiiy erdends Applampot
vearide
clAssMate
Date
Page

paotected Void on (a eate (Bund le savedIns tan(eState )


Supet . on Caeate (sauedInstance State);
Set Coten View (R. layout. actiut 1-main)

TextView hTextView s find View ByIdCR. id.slatVi


hf h e t View.se Tet C"Hello w0d ld):
any fout atlibulesofEdit Tet Contoo),
Q2. Name
Ans.

OSe oSet Bint od cwhat we wanto typr

EditTezt
andtoid id "@tid LSim ple Edi+ Tes"

andtoid:layout-CenteInadent "tturb
an dtoid!int " En+er the n0. " / 7

2)Test Co lo Hint se 4o set thf Colbd ofdispl


4int
c Edit te t
anddoidid ="Ctid Lsimple EdiH Tet"
andtoid layot - -
anddoid layout
andtoid (ayoutocentet Ioloà eni-"t bei
andahidi hìnt "Enter!
an dooid textCo looHiot = '#o fo

3) t e t ! use to Set Test in Edt +et.


KEditTet

andtidiayout - S
andeid layOut -l!
andoidtt " Hello"
classmite
Date
Page

J trColo use to set calod_of 4rxt in Edi4 tot


KEdit text
andtoid id " +idlSinmple Edit TeL
andBoid layoutI
andaoid layat
Cn dtoid text=Hello
andtaid: teytColot :" H ofo"
a2 State Iatet List its types
Ans nAten 15 a mes Sagin obiect that weCan use to dEqueT
an artion foOm an_an comop0ent.AnTntentrs
basicay s an intention +o do ation

7 To st agt An artivity
2To S+att a Sedice
3 To Delive, a BA odcost

ypes
1 Explid Tntent
Tmplicit Tateat

QA0efine Btoad cast tfcived


AnsAbad cast ereivet iS a ComponeAt thot dose noti
but te (ejves and deacls to btoaadcast annoupceMens
Many bèáad cass o igihatr in System cae bo any
othet ahplicaion can aso in iciate bdoala.sy
Bt0ad Cast eceivets do not dis play
intea ace (uJ)
thesditetly fileot rilayaut activity code the
lemenis he
ciher activty
ment) appèopiate
<fag plalin
an 40
oadded bemay and Files
xm ofform the in
toded tagmentS
ates
4poGn Actikity within
an befavio
that inetface
ot
ttono c
presents4 te
Component
that uSable te
modulat lopmenta
a is fragm
nt deveAndaoid n
ment frug Explain Ans.
otthin
evlapmn, application Andoid nirst
of
mobile betueen ages mess ieut
muDit (orn Seavite)
a 1s
evrn pP
adaoid ietice
in Ss eine

You might also like