spinner를 다음과 같이 구현하여 봤는데 나라이름을 클릭하고 나서
"내가 선택한 나라는 xxx다"라고 텍스트로 나타내려면  어떻게 코드를 짜야하져..
밑에 코드 있으니 도와주세요 자세하게 ....ㅜㅜ결과%20화면.PNG








package com.textbook.spinnerdemo;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.AdapterView.OnItemSelectedListener;

public class SpinnerCountryDemo extends Activity implements OnItemSelectedListener {
    /** Called when the activity is first created. */
 

TextView selText;
Spinner spin;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
       
  
        selText = (TextView)findViewById(R.id.selText);
        spin = (Spinner)findViewById(R.id.Spinner01);
       
             
        spin.setOnItemSelectedListener(this);
    }
   
    @Override
    public void onItemSelected(AdapterView<?> parent, View v,
    int position, long id) {
     
    TextView text_sel = (TextView)spin.getSelectedView();
    selText.setText(text_sel.getText());
 
    }
   
   
    @Override
    public void onNothingSelected(AdapterView<?> parent) {
    selText.setText("");
  
       
    }
}