티스토리 뷰
안드로이드/compose
[Android Studio]android Compose clickable ripple remove ripple rounded 안드로이드 컴포즈 클릭 이펙트 변경
eqrw105 2021. 10. 29. 15:39[Android Studio]android Compose clickable ripple remove ripple rounded 안드로이드 컴포즈 클릭 이펙트 변경
//동그란 모양의 이펙트
Icon(
modifier = Modifier
.width(24.dp)
.height(24.dp)
.clickable(
interactionSource = MutableInteractionSource(),
indication = rememberRipple(bounded = false)
) {
},
painter = painterResource(id = R.drawable.ic_build_white_24dp),
contentDescription = "설명"
)
//이펙트 제거
Icon(
modifier = Modifier
.width(24.dp)
.height(24.dp)
.clickable(
interactionSource = MutableInteractionSource(),
indication = null
) {
},
painter = painterResource(id = R.drawable.ic_build_white_24dp),
contentDescription = "설명"
)
//기본 이펙트
Icon(
modifier = Modifier
.width(24.dp)
.height(24.dp)
.clickable {
},
painter = painterResource(id = R.drawable.ic_build_white_24dp),
contentDescription = "설명"
)
'안드로이드 > compose' 카테고리의 다른 글
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- non-zero exit code detected
- 깃허브 잔디 옮기기
- 안드로이드 해시키
- 깃허브에서 깃랩으로
- amplify next.js
- Android Studio
- nextjs ssr deploy
- rn oss
- react.js useEffect
- github mirror
- next useEffect
- next.js ssr deploy
- react native oss
- next.js useEffect
- 안드로이드 스튜디오
- react native 오픈소스 라이선스
- 카카오 해시키
- rn 오픈소스 라이센스
- 라이브러리 라이센스
- 안드로이드 스튜디오 해시키
- 깃랩 잔디 옮기기
- Build failed because of webpack errors
- gitlab mirror
- 커밋 이메일 변경
- 깃랩에서 깃허브로
- room error
- 코틀린
- kotlin
- amplify build error
- kakao api notworking
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함