본문 바로가기

JY-Dev Tech Blog

검색하기
JY-Dev Tech Blog
프로필사진 JY-Dev

  • 분류 전체보기 (42)
    • 안드로이드 (34)
      • 레이아웃 (16)
      • 테스트코드 (5)
      • 그 외 여러가지 (11)
      • 코틀린 (2)
    • 유니티 (5)
    • 앱 개인정보 처리방침 (3)
Guestbook
Notice
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
Tags
  • 리스트뷰
  • Handelr
  • UI
  • WebCamTexture
  • 안드로이드
  • Unity
  • layout
  • 레이아웃
  • GPS
  • Ext
  • 조이스틱
  • camera
  • gradle
  • 그래들
  • Android
  • webcam
  • spinner
  • DP
  • bottom
  • GlobalComponent
  • 유니티
  • ListvView
  • Round Square
  • 스피너
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록DP (1)

JY-Dev Tech Blog

안드로이드(Android) - Int to Dp , Float to Dp (Dp 변환)

프로그램 내부에서 Dp 값을 변환하는 방법에 대해 알려드리겠습니다. [Kotlin] Int to Dp val Int.dp: Int get() = (this * Resources.getSystem().displayMetrics.density + 0.5f).toInt() Float to Dp val Float.dp: Int get() = (this * Resources.getSystem().displayMetrics.density + 0.5f).toInt()

안드로이드/그 외 여러가지 2020. 8. 11. 09:15
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바