package com.beem.project.beem.ui;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TextView;

import com.beem.project.beem.R;

public class ChangeStatus extends Activity {
    
    private TextView mTextStatus;
    private Button mOk;
    private Button mClear;
    private static final String[] mStatus = {"Available for chat", "Available", "Busy", "Away",
	"Unavailable", "Disconnected"};
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.changestatus);
        
        mTextStatus = (TextView) findViewById(R.id.ChangeStatusText);
        mOk = (Button) findViewById(R.id.ChangeStatusOk);
        mClear = (Button) findViewById(R.id.ChangeStatusClear);
        mOk.setOnClickListener(mOnClickOk);
        mClear.setOnClickListener(mOnClickClear);
        
        
        Spinner s1 = (Spinner) findViewById(R.id.ChangeStatusSpinner);
        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
                android.R.layout.simple_spinner_item, mStatus);
        adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        s1.setAdapter(adapter);
    }
    
    private OnClickListener mOnClickOk = new OnClickListener() {
	public void onClick(View v) {

	};
    };
    
    private OnClickListener mOnClickClear = new OnClickListener() {
	public void onClick(View v) {
	    mTextStatus.setText(null);
	};
    };
}
