package com.zhn.tongxunlu;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;

public class EditActivity extends Activity {
	TextView editName,editPhone;
	CircleImageView imageView;
	ImageView ivExit;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.contact_detail);
		editName = (TextView) findViewById(R.id.tvName);
		editPhone = (TextView) findViewById(R.id.tvNumber);
		imageView = (CircleImageView) findViewById(R.id.photo);
		ivExit = (ImageView) findViewById(R.id.imgExit);
		
		Intent intent = getIntent();
		Contact c = (Contact) intent.getSerializableExtra("Person_info");
		editName.setText(c.getName());
		editPhone.setText(c.getPhone());
		
		ivExit.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
	}

}
