Scrapbook/개발 및 프로그래밍

Spinner 사용하기

가을이짱짱 2011. 1. 12. 17:34
반응형
http://blog.naver.com/kyuhgmi/40119869063
android Spinner 사용하기

 this.cuisine = (Spinner) findViewById(R.id.cuisine);
         this.grabReviews = (Button) findViewById(R.id.get_reviews_button);
        
         ArrayAdapter<String> cuisines =
          new ArrayAdapter<String>(this,R.layout.spinner_view,getResources().getStringArray(R.array.cuisines));
         cuisines.setDropDownViewResource(R.layout.spinner_view_dropdown);
         this.cuisine.setAdapter(cuisines);
반응형