package com.bgstation0.android.sample.view_;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

//CANeBreB
public class MainActivity extends Activity implements OnClickListener{

	// ANeBreB¶¬
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        
    	// ùèÌ.
    	super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        // button1Ìú»
        Button button1 = (Button)findViewById(R.id.button1);	// button1ðæ¾.
        button1.setOnClickListener(this);	// thisðZbg.
        
    }
    
    // NbN³ê½.
 	@Override
 	public void onClick(View v) {
 		
 		// TODO Auto-generated method stub
 		// CustomViewÉ¶ñðZbg.
 		CustomView customView1 = (CustomView)findViewById(R.id.customview1);	// customView1ðæ¾.
 		customView1.mStr1 = "ABCDE";	// mStr1É"ABCDE"ðZbg.
 		customView1.mStr2 = "FGHIJ";	// mStr2É"FGHIJ"ðZbg.
 		customView1.mStr3 = "KLMNO";	// mStr3É"KLMNO"ðZbg.
 		customView1.invalidate();	// customView1.invalidateÅÄ`æ.
 		
 	}
    
}