0
여기에 프로그래밍 방식으로 테두리를 설정하려고합니다. 하지만 어떻게 설정할 수 있는지 모르겠습니다.무엇이 문제는 프로그래밍 방식으로 안드로이드에서 프로그래밍 방식으로 textview 테두리 설정에 관련된
TextView [] pairs;
pairs = new TextView[num_match];
for (int l = 0; l < num_match; l++) {
pairs[l] = new TextView(getActivity());
pairs[l].setTextSize(15);
pairs[l].setLayoutParams(lp);
pairs[l].setId(l);
pairs[l].setTag("" + l);
ShapeDrawable mDrawable = new ShapeDrawable(new OvalShape());
mDrawable.getPaint().setColor(0xff74AC23);
mDrawable.setBounds(2, 3, 4 + 3, 4 + 4);
pairs[l].setBackgroundDrawable(mDrawable);
pairs[l].setText(" " + l * l * l);
ll.addView(pairs[l]);
}
주는 코드가 맞으면 테두리 색을 어떻게 설정합니까? –