package credit.android.dg;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class Sold extends Activity{
	
	private ImageView icon;
	private TextView price;
	private View option1;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.money_item_sold);
		icon = (ImageView) findViewById(R.id.drug_icon_1);
		icon.setImageResource(R.drawable.mushrooms_icon_sell);
		
		option1 = (View) findViewById(R.id.option1);
		price = (TextView) findViewById(R.id.t1_r);
		
		
		option1.setOnClickListener(new View.OnClickListener() {        
        	public void onClick(View view){        		
        		Change();
        		icon.setImageResource(R.drawable.lsd_icon_sell);
        		price.setTextColor(Color.GREEN);
        	}
        });
	}
	
	public void Change(){
		Intent i = new Intent(this, About.class);
	}

}
