반응형
참고자료: https://boilerplate.tistory.com/51
버튼에 Ripple 효과 적용하기
Android 버튼에 Ripple Effect를 주는 방법에 대해서 알아보도록 하겠습니다. 먼저 결론부터 말해보자면, 2가지 방법을 추천합니다. 1) MaterialButton, MaterialCardView 를 사용하는 방법 (Android Support Desi..
boilerplate.tistory.com
일반 버튼보다 MaterialButton, MaterialCardView를 쓰는 것이 디자인 커스터마이징에 더 유용하다!
<com.google.android.material.button.MaterialButton
android:id="@+id/connectButton"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:backgroundTint="#51D9F6"
android:text="매칭 시작"
android:textSize="18dp"
android:textStyle="bold"
app:cornerRadius="15dp"
app:rippleColor="#fff" />
댓글