0
정말 간단한 일을하고 싶지만 그렇게 간단하지는 않습니다. 현재 Appearance.Button
인 Checkbox
과 현재 상태에 따라 BackgroundImage
2 개가 있습니다. 나는 "박스"자체를 피하기 위해 Appearance.Button
을 선택했다. 하지만 내 이미지가 이미 국경을 가지고 있기 때문에 Checkbox
의 경계선을 제거하고 싶습니다. 그래서 다시 Appearance.Normal
으로 전환했습니다.체크 박스 및 BackgroundImage 크기 문제
문제는 가능한 경우 상자를 숨기는 방법을 모른다는 것입니다.
myCheckbox.setButtonDrawable(android.R.color.transparent); //Hide the "box"
myCheckbox.setBackgroundResource(R.drawable.myImages); //Display my images
.NET에서이 작업을 수행 할 수있는 방법이 있나요 :이 작업을 수행 할 수 있습니다 예를 들어 안드로이드와
?myCheckbox.Appearance = Appearance.Button
myCheckbox.FlatAppearance.BorderSize = 0
myCheckbox.FlatStyle = FlatStyle.Flat
내가
Appearance.Button
왼쪽하지만
Flat
속성을 변경하는 데 필요한 :