안드로이드 스튜디오에서 코드 작성시 중간선(취소선)의 의미
페이지 정보
본문
안드로이드 스튜디오에서 코드를 작성하다 보면, 중간선? 취소선? 이 나타날 때가 있다.
## CSS
html css style 에서 취소선으로 표현되는 text-decoration:line-through 와 같은 모양이다.
## 이유
deprecate 되었다는 의미이다.
더이상 지원되지 않으며, 앞으로 없어질지도 모른다는 뜻이다.
## 예제
before
```
Handler().postDelayed({
// code
}, 3000)
```
after
```
Handler(Looper.getMainLooper()).postDelayed({
// code
}, 3000)
```
## 참고
https://stackoverflow.com/questions/61023968/what-do-i-use-now-that-handler-is-deprecated
https://www.masterqna.com/android/32997/%EC%BD%94%EB%93%9C-%EC%9E%91%EC%84%B1%EC%8B%9C-%EC%B7%A8%EC%86%8C%EC%84%A0-%EC%9D%B4-%EB%82%98%EC%98%A4%EB%8A%94-%EA%B2%BD%EC%9A%B0%EB%8A%94-%EB%AD%94%EA%B0%80%EC%9A%94
## CSS
html css style 에서 취소선으로 표현되는 text-decoration:line-through 와 같은 모양이다.
## 이유
deprecate 되었다는 의미이다.
더이상 지원되지 않으며, 앞으로 없어질지도 모른다는 뜻이다.
## 예제
before
```
Handler().postDelayed({
// code
}, 3000)
```
after
```
Handler(Looper.getMainLooper()).postDelayed({
// code
}, 3000)
```
## 참고
https://stackoverflow.com/questions/61023968/what-do-i-use-now-that-handler-is-deprecated
https://www.masterqna.com/android/32997/%EC%BD%94%EB%93%9C-%EC%9E%91%EC%84%B1%EC%8B%9C-%EC%B7%A8%EC%86%8C%EC%84%A0-%EC%9D%B4-%EB%82%98%EC%98%A4%EB%8A%94-%EA%B2%BD%EC%9A%B0%EB%8A%94-%EB%AD%94%EA%B0%80%EC%9A%94
추천0
댓글목록
등록된 댓글이 없습니다.