package credit.android.dg;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TableRow;

public class Message extends Activity{
	private TableRow tr1;
	private TableRow tr2;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.message);
		tr1 = (TableRow) findViewById(R.id.tr1);
		tr2 = (TableRow) findViewById(R.id.tr2);
		
		tr1.setOnClickListener(new View.OnClickListener() {        
        	public void onClick(View view){        		
        		setContentView(R.layout.read_message);}
        });
		tr2.setOnClickListener(new View.OnClickListener() {        
        	public void onClick(View view){        		
        		setContentView(R.layout.read_message);}
        });
	}

}
