[Kotlin] Kotlin 의 숨겨진 비용 #1 [Kotlin] Kotlin 의 숨겨진 비용 #1 https://medium.com/@BladeCoder/exploring-kotlins-hidden-costs-part-1-fbb9935d9b62 -“With great power comes great responsibility” 를 기억해야 한다.( 간단한 코드를 짜는 대신 대가가 있다는 얘기다 ) -Kotlin bytecode inspector 를 사용하면 Kotlin 코드가 어떻게 bytecode 로 변환되는지 볼 수 있다.Android studio plugin 으로 접할 수 있다.이를 보면 primitive type 의 boxing, code 에서 보이지 않는 기타 object 들의 instantiation, 그리고 각종 추가 method 들의 추.. 2018. 1. 16. [android] ~Jelly Bean WebView vs. Kitkat WebView. [android] ~Jelly Bean WebView vs. Kitkat WebView. http://stefanodacchille.github.io/blog/2014/02/23/webview-explorations/ Hit test result. WebView 에서 어떤 element 를 touch 했을 경우,WebView.getHitTestResult() 를 호출하면 hitTestResult object 가 return 된다. HitTestResult 에는 element type 과 url 값이 들어있다.예를 들어 tag 를 touch 했을 때는 WebView.HitTestResult.SRC_ANCHOR_TYPE 이 type 으로 return 된다. 기존 WebView 는 이 녀석이 지원하지 않는 e.. 2014. 4. 10. 반응형 이전 1 다음