문제

I know how to set a button borderless in xml.But how to set button borderless in source code, because it is created dynamically.

올바른 솔루션이 없습니다

다른 팁

Make button image and do:

button.setBackgroundResource(R.drawable.button_image);
button.setBackgroundResource(android.R.color.transparent);

don't forget to put exactly:

android.R.color.transparent

if you put R.color.transparent only (without android), there will be an error in the code when doing this

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top