Fjir rrik nmtrhmwmWLftftMA aw

S -^ffift" ScrollView .

ScrollView tfjiMi? -^»»«i^TMrt*. »ii*i5&JBjj*Hi*, ffirtliitaiftLH

Itii Hgft LinearLayout *hlfli Sift fill ScrollView mif^WW SJ, Kff'ji:

<Scrol1View xir.lns:Android="http://schemas.Android.com/apk/res/Android" Android:layout width="fill parent" Android:layout_height="wrap content"> <LinearLayout> </LinearLayout> </ScrollView>

Xil\m ScrollView LinearLayout LinearLayout fftrt'ftfiiH

a SI 7-25 TimePickerActivity^®

7.3.12 ( ProgressBar ) ftigig&ffl

ProgressBarfc+#«*jJHWffl#. -it H If. Jffi tf} >& 1& St ft ^t St & M /J<» fH.JME Android 'I1, it tfJfc<V: main.xml 4'JWiHl -^«tffl.

Ktfi'K:

<Button Android:id^"@+id/pr6gress bar button"

Android:1hyout _widt h="wrap content" Android:layout_height="wrap_content" Androi d:text="ProgressBar" />

fcSL f-^Kf-% ProgressBar fft Button.

private Button .OnCl ickListener progress_bar__but tonlistener new But tori. OhClick

public void onClick(View v) \ Intent intent - new Intent ();

i nt e nt.s e t C1a ss(Ma i nAc t i v i t y.t hi s, Progress3arActivity.class>; startActivity(intent);

-1 .lift: t?L Si. JS ProgressBar Activity o

Jfi» <i'j5i ProgressBar Activity .java Aft, fn 5E JCXi JE® (ft M A' ft Ji progress bar.xml, /K progress bar.xml Aft^^inft^i'SiEffi^ftjiii/SKffi/j<:

<?xml version®"1.0" encoding-"utf-8"?>

<LinearLayout xmlns:Android "http://schemas.Android.com/apk/res/Android" Android:orient at ion-"vertical" Android:layout width="fill parent" Android:layout height^"wrap_content">

<TextView

Android:layout_width="wrap content"

»7% RffW^tfafi-Android fflft^ffl

Android: layout. _height="wrap_content" Android: text = /> "

<ProgressBar

Andre;d:id="@ ii d/progress_bar"

Android:layout width="wrap_content"

Android:layout height ="wrap content"/>

<TextView

Android: layout widt.h~"wrap content" Android:layout height~"wrap_content" Android: text = ,V.Ki£ri}£&" />' <ProgressBar Android:id "@+id/prpgress_horizontal"

style="?Android:attr/progressBarStyle Horizontal" Android:layout width-"200dip" Android:layout height "wrap_content" Android :rr,ax=" 100" Android:progress^"50" Android:secondaryProgress="75" /> </LinearLayout >

l-.ji^Cq'l^jSjjPTPt ProgressBar ili#. )UW*L% >HttJ® mm < progress horizontal) if it® 100, lUi-ffita/ii. 35 -tiitSM, % .titJSilJ 75» ¡¿ft'&wmft'. 1M;- "ProgressBar" &fflfj r<]VXft

Mi5iT»SSiiM 7-28 Bryp.

M SL in iilid^^'TWM j-i ft {'J & W * ut S ff W. ill £ "Si M F

SeekBar illfl -fU/K T'fKj ProgressBar tfl^m^MU. ^iiK-fi^S F SeekBar aJ&tiiMJ)

ft'XJt main.xml 'VfAW 'M^jv SeekBar fft&ffl. Fffi^:

<Button Android:id "@+id/seek_bar button"

Android:layout_width="wrap content" Android: layout, height^ "wrap_content" Android:text="SeekBar" />

fcX ^ id %i "seek bar_button" Ift&ffl. "SeekBar".

private Button.OnClickListener seek bar button listener new Button.OnClic kListenerO <

public void onClick(View v) ( Intent intent = new Intent();

intent.setClass(MainActi vity.this, SeekBarActivity.class);

startActivity(intent); }

^.-fiiSficifl. StiiSJ SeekBarActivityo fi'Jii -^Activity, limiW

At!?lJ seek bar.xml L:, {[■. seek bar.xm I 'f'gsJlll Seek Bar (ft Sift.

<SeekBar

Android:id="@+id/seek" Android:layout width®"fi11_parent" Android:layout_height="wrap_cont.ent" Android:max="100" And ro i d:t humb="ftdrawable/see ker" Android:progress="50"/>

■¿iX—t SeekBar , ift£Jt id %} seek. WMfiffiM®, 100=

mifift AndroidManifest.xml 'I'ift/Jtl SeekBarActivity Ift'NJ. 'A:fJft ft«» KJfPK:

<act i vit y Android: name ".SeekBarActi vi ty "></act i vi t y>

litr&M&F; {tK tJHH I' 'i'-iti "SeekBar". tf 7-29

rfr/j^o

AiLITjr^tjvf^ftH.fM, Jfl RatingBar -M

gft-rt: main.xml +ifilll —Hltf RatingBar ftTBilflftM. ^SM^i® Kflf;1<:

<Button Android:id="@+id/rating bar button"

Android: layout width- "wrap_content" Android:layout height^"wrap content" Android:text="RatingBar" />

'¿LX-^idft "rating bar_button " fft&ffi, Kffi/j"RatingBar"»

private Button .OnClickLi stener rating bar_button 1 istener = new Button .OnClickListener () {

public void onClick(View v) { InLerit intent = new Intent();

intent.setClass(MainActivity.this, RatingBarActivity.class); startAcLivity(interit) ;

.life ill niBMi'ilj RatingBar Activity, xK^ RatingBarActivity tiH&IWMM

^ RatingBar W. fiflj® -^Activity, ftM'/ii ll-^KAff'^J ratingbar.xml, ®Jg ¿ft 't'MsfiU

RatingBar fflftMfti'Jin K»r >i<:

<RatingBar Android: id="@+id/rating bar" Android: .Layout widt h-"wrap_content" Android:layout height="wrap_content" ratirigBarStyleSmal 1 - "true" />

m 7 ft mm^Jfrn-Android ft.*—t RatingBar mil, &ftK-id ratingjw, j&tfift AndroidManifest.xml 'I'WJII RatingBarActivity Mi

«activity Android: namp "RatingBarActivity"x/act ivity>

ft I: "RatingBar" fe'ffl, iitA RatingBar

FK^WM ImageView fflfl=, K fc«HJfl-:flb5ffljt. "Fffi

JBAMtfif««. g-jtfl:maiaxml "f»lm -^APftffl. K0W«

<But ton Android: id="'@ + id/image view button"

Android: 1 ayout_width="wrap content " Android: Iayout height="wrap_content" Android:text="ImageView" />

tX ^hid^j "image view button" Mft'fll. JUibT^W; "ImageView"«,

private Button .OnC.l ickListener imageview buttonlistener = new Button.OnClickListener(j {

public void onClick(View v) l Intent intent - new ln-tent 0 ;

intent.setCIas;3 (MainActivity.this, ImageViewActivity.class); start-Activity ( intent) ; I

Hff-x¿'{rfc, Image View Activity. & Activity Sft&fi]*«?!» ImageView

»3i£KflB®»ft W«« i'ft/S image view.xml, ft. ImageView, ^JftfWimT$T>T<:

clmaaeView

Android: id="@ + id/itnagebut ton" Android:src=*"@drawabie/eoe" Android:layoutwidth "wrap_content" Android:layout height "wrapcontent"/>

»ft Android:src «BEljtfitT-fllHfiH

Sjk Kfft src Ktfj drawable, PNG, JPG, GIF SSH/ttfrit. lfc4fci£ # eoeMobile RIMj Logo til^»

hifn ft AndroidManifest.xml 'I'^Ml L^ftS Activity M^iS, Kill K^f/T<:

<activity Android:name-"IroageViewActivity"x/activity>

h*di "ImageView" ft®, ImageView #|fij, ill® 7-31 0r>j<.

7-31 ImageView ^ifij

7.3.16 Sm&ifl ( ImageButton ) tfHS-^&ffl m ImageButton Sift. jt"iWföitt—^¡S/lföM.. ¥\9t& main.xm! 'I'WJP t

<Button Android:id-"@+id/image_button button" Android:layout_width="wrap_content" Android:layout height="wrap_content" Android:text="ImageButton" />

feX ^ id "image_button_ button" fHjföffl, "ImageButton".

private Button.OnClickListener image_button button listener = new Button.OnClickListener() { public void onClick(View v) { Intent intent = new IntentO;

intent.setClass(MainActivity.this, ImageButtonActivity.class); startActivity(intent);

©T-isiriS* Q&MHIH, mfm ImageButton Activity, ig Activity ImageButton ttlft

Wo image_button.xml, ftitt&ttl ^ImageButton, F

0PF:

<ImageButton id="@+id/irragebutton" Android:src="@drawable/play" Android:layout_width="wrap_content"

Android: layout height "wrap cor.tent"/> \ ftfgffff >

I'^RWI'. »JE Android:src Ä -Sfcffltt, Äfflfr&iJjiBtB UStKffl src KW drawablc T. PNG, JPG, GIF

I: AndroidManifest.xml ift+jftilLh^ili Activity fft^iS.

<acti vi ty Android:name="ImageButtonAct ivity"></act.ivity>

ImageButton £ng] 7-32 a [?1 7-32 ImageButton

7.3.17 tJJ&ffiK ( ImageSwitcher&Gallery )

KlfclS^HBWS ImageSwitcher ill Gallery &iHpHll#, ffi Jfl —Ä^'J

mit. Ä^ffliOT-etktijiÄWiKW. Ü5fc# main.xml tJUiq-^An««!, K&iMfWöi F/Tpk:

<Button Android: id="(<i + id/image_show button" Android:layout _widttv"wrap_content" Android:iayout_height "wrap_content" And r o i d:t e x t-"Image Swi t che r Ga i1e ry"/>

&5L "t" id "image show button" Wficfil, ^S-KSvi^A "ImageSwitcherGallery

0 0

Post a comment