Info

h JjU; onOptionsItemSelected( Menultem item), ill J'iS

jm mm& on, wwim««»«««- -wmim. w&^um r a ft $4t *ä js m

Android MiiC^^ftaÄ^.li^^'li.WÄ W (Menultem ), ^JflJii-t//

public boolean onOptionsltemSelected(Menultem item) { switch (item.getltemld()) \ case ITEMO:

actionClickMenuIteml();

break;

case ITEM1:

actionClickMenuItem2(); break; )

return super.onOptionsItemSelected(item);)

MnVBj^-fiMW^ Menultem Mf&fiW—^llf fJtfÜiä 1!H(ft id I] j'

i&fKj* menu DWM, Is menultem ffittT' ^htft— (ft id, üjiÄ^tffi

Kid, MiWK^iiJ/Rfi^itrS'JSP^menuitem j\ id MH item.getltemld()$i#0 ft .hiilWt «•I'TTW^ilJ. Sffip 'T'-.li ITEMO flWMIMj* actionClick Menultem 1 ()Jj'Y~h» I^M^äj^J I I KM 1 flWfä, Äff actionClickMenuItem2()# So Mt /jäftÄ"t Button, # f I. il M '4 t Button ill 'k o

Android -Intent in Activity ittQM

\mm -mvH^Uiimw^^ft Activity(»/«HjttftttotfJL

um IJL+AtiJl I t Activityo && Activity &oJWAI # 11 '¿if J^f"]& Wfll'l.

(2) -tSrl'ft Activity. M/n'^iit Activity JftlAflJ Android if] manufcst '!L

(3) jffiiit start Activity*) Wife Activity0

(4) Mil start Act i v ity For Result() iJ»l ffl Activity D

(5)4-1' 'J m Activity Z fuj it if 4tl 5 »Jg fft It j£,

7.5.1 mmm^Tik c i) wmn ti/fiBitaffl 7-40

(2) 'YJ-.lr button 1 h'i34 Afft Wlid ftllftl 7-41 Jfr/fc„

(3) 'T'-.li button3 BiiAWJflTliiWPa 7-42

(4) ,1 i- button2 /fi at A (ft Yf tfll I ffl 7-43 ffr /j< o

0 0

Post a comment