Info

China

China

Russia

Germany

Ukraine

Belarus u Q

£ 7 * -Android j?S)nft SpinnerActivity.java 1 (-1 nf VX & flf- $0 4ft it It it, «iftttWiU K0W:

spjnner_2 = (Spinner) findViewByld(R.id.spinner_2);

ArrayAdapter<CharSequence> adapter - ArrayAdapter.createFromResource( this, R.array.countries, Android.R.layout.simple_spinaei item);

adapter.setDropOownViewResource(Android.R.layout.3imple spinner_dropdown i tern);

sp:nner_2.se'Adapter(adapter); %

I MiKfchBiW R.array.countriesX>J/^WtfiiJcAifJ Spinner 2 111, ifrj R.array.countries Wtfi&fl: XML

¿ft'I'ffifc&Xffij. K-y/vi^/h res/values/11 ^ KJPr£ array.xml [ftif'^Aill

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

<!-- Used in Spinner/spinner_2.java -> <String-array name "countries'^ <item>China2</item> <item>Russia2</item>

< item>Germany2</ . tem> <item>Ukraine2</.tem> <item>Belarus2</item>

< ■ tem>USA2</i terr > </string-array>

</resources>

fc imWft:

frfclc ft 'I' mft&X £ ^ countries MM (array), iii/ett f FJ setDropDown

View Resource JC i$£j!E ^J Spinner 2 igfi«U*nJ WfiilJS 7-21 rfpT^J&X*

*KJff*.lr» Spinner ftfiiijffi 7-22 PiiiK^f-o fHa©© 12:301

SplnnrrActivily

Somm-r 1

Clima

Ill 7-21 Spinner

■ HI M

ifioiaaci 12:31

0 0

Post a comment