여행가고 싶은 날

Spinner 사용하기 본문

Scrapbook/웹_앱_WEB_APP

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);
0 Comments
댓글쓰기 폼