5
Tôi muốn có một nút trong Android với màu sắc khác nhau cho đường viền nút.Cách đặt màu đường viền nút lập trình trong Android?
Button Bt = new Button(this);
Bt.setId(i+1);
Bt.setBackgroundColor(getResources().getColor(R.color.white)) ;
Bt.setText(restList.get(i));
Bt.setLayoutParams(params3);
Bt.setTextColor(Color.parseColor("gray"));
layout.addView(Bt);
Tôi làm cách nào để lập trình?