package com.cookandroid.project4_2;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {
	TextView text1, text2;
	CheckBox chkAgree;
	RadioGroup rGroup1;
	RadioButton rdoDog, rdoCat, rdoRabbit;
	Button btnOK;
	ImageView imgPet;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		setTitle("애완동물 사진 보기");

		// 위젯을 변수에 대입
		text1 = (TextView) findViewById(R.id.Text1);
		chkAgree = (CheckBox) findViewById(R.id.ChkAgree);

		text2 = (TextView) findViewById(R.id.Text2);
		rGroup1 = (RadioGroup) findViewById(R.id.Rgroup1);
		rdoDog = (RadioButton) findViewById(R.id.RdoDog);
		rdoCat = (RadioButton) findViewById(R.id.RdoCat);
		rdoRabbit = (RadioButton) findViewById(R.id.RdoRabbit);

		btnOK = (Button) findViewById(R.id.BtnOK);
		imgPet = (ImageView) findViewById(R.id.ImgPet);

	}

}
