Info

13.2.2 ifiit SharePreference #fit

X: J' SharePreference fl\l tii J ij > "J 8 ff. j&SRMl -

M. m^aum OPS msst®^ ÄRK»«^«^^, jtft&ßu&ft«« atswMM«

MsiJPo

« Jib, W. m T f» -iE' ftij & IK. / «•#» HS M # ft fj Ä. « F * -sic«-i W $ 31«t A HJ T.

« £ i ±, V* # »r tt 4 Fit # Ä £ *« £ # ft ft SÄ ±T •£ us ft «4,

13.3.1 frJJt^lIfl

«ifia'Wyf«. r.-fTff kclipe, File-New-Android Project

13.3.2 iRs&imRnwmn

Lifiiaiftiw^i/ffli.

• ftttHUSJKfih

1\:M&" ffftifc res/value U^ KM strings.xml scit'i'^to »» JB «mtotex, 'zmmto

<?xml version-"1.0" encoding="utf-8"?> <resources>

<string name-"ti tie"iftiri^ : </string> <s tiring name="app_name" >iTracks</st ring>

<st.ring name="menu new"ring> <31.ring name-"menu con">*$^2il8*</st ring> <string name "menu_setting">/h Ai£M</st r: ng> <string name="menu helps">^S/jf§^L</string> <string name "menuexit"Hi</sr.ring>

</resources>

\-Mimi\l&X7 title, app_naine^T'^.'|i, &tf]JSfflnrW3lffl. main

<?xml version-"l.0" encoding="utf-8"?>

<LinearLayout xmlns:android "http://schemas.android.com/apk/res/andro:d" android:orientat ion-"vertical" android: layout width="f i.1 parent"

android:layout height "fi11 parent"

<TextView android:layout _width-"fill_parent" android:layout height="wrap_content" android:text-"^string/title"

<ListView android: id "i?id/android: list" android: layout width-"fill parent." android:layout height-"fi11 parent" android:layout weight="0" android:drawSelectorOnTop="false" /> </LinearLayout>

9- lev And,oid Fioject

Kevr And rt>W Project

CtfinK

<V.«(« frol.cl tlim .inline »'ire. V II», i.fvU' iMlliw foil la Tue.« tu(«<

Android

Ä-f Google Map JFÄ^A^Hfeffl main.xml »fW. itffiffl LinearLayout , fifcE "Is- TextView ListView ffifh lU'l'TextView ftL^a^Wi-^gifflA " @string/title mitfiffifllfli ifii£ strings.xml ^fcX IW-n, "MiEid^:"; FW—t" id h "@id/android:list" Ift List View Ml

F onCreate M^JftftPi. iW&fl F0M<:

^Override public void onCreate(Bundle savedlnstanceState) \ super.onCreate(savedlnstanceState); setContentView(R.layout.main); render tracks();

Was this article helpful?

0 0

Post a comment