Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- firebasefunctions
- Imageview
- 뷰바인딩
- 안드로이드스튜디오
- ButtonWithButton
- Dialog
- 안드로이드
- ViewModel
- FRAGMENT
- 밑줄
- lifecyclescope
- MaterialButton
- Kotlin
- 팝업액티비티
- OutlinedButton
- ArrayList
- RealtimeDB
- Activity
- BottomSheetDialog
- button
- textview
- ROOM
- firebase
- androidstudio
- 코틀린
- 랜덤ID
- 안드로이드 스튜디오
- Android
- EditText
- nav_graph
Archives
- Today
- Total
안드로이드 앱 개발
OutlinedButton/테두리 있는 버튼 만들기 본문
<Button
android:id="@+id/loadCusData"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:fontFamily="@font/notosanscjkkrmedium"
android:includeFontPadding="false"
android:text="@string/load_cus_btn"
android:textColor="@color/mainPink"
android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:strokeColor="@color/mainPink"/>
Button의 xml 속성에서
style 속성을 추가한다.
그리고 경계선의 색상을 변경하고 싶다면
app:strokeColor의 속성으로 컨트롤하면 된다. (기본색상은 옅은 회색이다.)
추가로, 경계선의 두께는
app:strokeWidth로 컨트롤 할 수 있다.