package kr.ac.mokwon.monein;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.*;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
public class AP1 extends Activity{
 TextView tvs[] ;
 Button btns[] ;
 
 public boolean onCreateOptionMenu(Menu menu){
  
  MenuInflater inflater = getMenuInflater();
  inflater.inflate(R.menu.menu, menu);
  
 return true;
 }
 
 public boolean onOptionsItemSelect(MenuItem item){
 
  switch(item.getItemId()){
  
  case R.id.memo:
   Toast.makeText(this, "작성메뉴입니다.", Toast.LENGTH_SHORT).show();
   return true;
  case R.id.modify:
   Toast.makeText(this, "수정메뉴입니다.", Toast.LENGTH_SHORT).show();
   return true;
  case R.id.delete:
   Toast.makeText(this, "삭제메뉴입니다.", Toast.LENGTH_SHORT).show();
   return true;
  case R.id.help:
   Toast.makeText(this, "도움말메뉴입니다.", Toast.LENGTH_SHORT).show();
   return true;
  case R.id.setting:
   Toast.makeText(this, "설정메뉴입니다.", Toast.LENGTH_SHORT).show();
   return true;
  }
 return false;
 }
@Override
 public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.set1);
    
  LinearLayout lv = (LinearLayout)findViewById( R.id.calendar_lLayout ) ;
    
  tvs = new TextView[3] ;
  tvs[0] = (TextView)findViewById( R.id.tv1 ) ;
  tvs[1] = (TextView)findViewById( R.id.tv2 ) ;
  tvs[2] = (TextView)findViewById( R.id.tv3 ) ;
    
  tvs[0].setTextColor(Color.BLACK);
  tvs[1].setTextColor(Color.BLACK);
     tvs[2].setTextColor(Color.BLACK);
    
     btns = new Button[4] ;
     btns[0] = (Button)findViewById( R.id.Button01 ) ;
     btns[1] = (Button)findViewById( R.id.Button02 ) ;
     btns[2] = (Button)findViewById( R.id.Button03 ) ;
     btns[3] = (Button)findViewById( R.id.Button04 ) ;
    
     gsCalendar cal = new gsCalendar( this, lv ) ;
    
     //cal.setSizePixel( 420, 385 ) ;
    
     cal.setControl( btns ) ;
     cal.setViewTarget( tvs ) ;
    
     cal.initCalendar( ) ;
    
     TextView not1=(TextView)findViewById(R.id.notice1);
     TextView not2=(TextView)findViewById(R.id.notice2);
     TextView not3=(TextView)findViewById(R.id.notice3);
    
     not1.setTextColor(Color.BLACK);
     not2.setTextColor(Color.BLACK);
     not3.setTextColor(Color.BLACK);
    
     LinearLayout lv2 = (LinearLayout)findViewById(R.id.layout2);
     lv2.setOrientation(1);
    
     not1.setText("윤병권");
     not2.setText("김현수");
     not3.setText("함태식");
    
 } 
 
} 고수분들 많이 도와주세요 (__)