Android Studio/java

30. [안드로이드/java] 버튼 테두리 없애기

drizzle0925 2021. 10. 28. 11:50
728x90

버튼을 만드는데 버튼 속성을 없애고 싶을 때가 있습니다. 

그럴 때 아래와 같이 background 속성에 컬러 값을 넣어주면 됩니다.

 

버튼 > 속성 > background="#00ff0000"

 

예시

<Button
android:id="@+id/noBtn"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:backgroundTint="@color/white"
android:background="#00ff0000"
android:textColor="@color/gray"
android:text="아니오" />
728x90