Button but=new Button(this);
but.setText("T-"+k);
but.setTag(z+"-"+k+"-"+status);
but.setTextColor(Color.BLACK);
but.setBackgroundColor(Color.rgb(tableR, tableG, tableB));
but.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
String id = v.getTag().toString();
Toast.makeText(getApplicationContext(), "Get Value:"+id, 500).show();
}
});
but.setText("T-"+k);
but.setTag(z+"-"+k+"-"+status);
but.setTextColor(Color.BLACK);
but.setBackgroundColor(Color.rgb(tableR, tableG, tableB));
but.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
String id = v.getTag().toString();
Toast.makeText(getApplicationContext(), "Get Value:"+id, 500).show();
}
});
No comments:
Post a Comment