eunda_coding

  • 홈
  • 태그
  • 방명록

디자인적용안됨 1

android custom switch / androidx.appcompat.widget.SwitchCompat 디자인 적용 안되는 이슈

안드로이드 개발하면서 custom switch를 적용해야하는 일이 있었다. ↑ 이런 디자인인데 처음에 swithch를 사용했는데 이렇게 androidx.appcompat.widget.SwitchCompat 사용하라는 말~ 근데 무시했었다.근데 아무리 별짓을 다해도 원하는 사이즈보다 작게 셋팅이 되어서 며칠간 찾아보다가 해결책을 찾았다!! 1. androidx.appcompat.widget.SwitchCompat 로 변경 switchCompat에서는 track이랑 thumb 디자인 네임스페이스가 아래와 같이 사용해서 변경해주었다.app:track="@drawable/selector_switch"android:thumb="@drawable/selector_switch_thumb" 2. switchMinWid..

안드로이드스튜디오 2024.09.20
이전
1
다음
더보기
프로필사진

eunda_coding

파이썬을 차근차근 배워가며 기록하는 중입니당

  • 분류 전체보기 (76)
    • 백준 문제풀이 (63)
    • 안드로이드스튜디오 (11)
    • 아두이노 (2)

Tag

androidcustomprogressbar, customswitch, android viewholder, androidmedia, esp32data, android, android recyclerview adapter, 안드로이드뷰페이저2, esp32bluetooth, androidmp3, android미디어재생, 안드로이드, 안드로이드뷰페이저, androidmediaplayer, androiddb, androidprogressbar, androidviewpager, androidcustomswitch, androidrecyclerview, 디자인적용안됨,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
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 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바