본문 바로가기
[android] text 상단 여백 제거방법 - setIncludeFontPadding text 상단 여백 제거방법 - setIncludeFontPadding - font size( text size ) 가 커짐에 따라 글씨 자체에 상단 여백이 나타나는 현상을 확인하였다. 이는 여백의 공간이 font 자체에 포함되며 font size 가 커짐에 따라 그 여백 공간도 같이 커지는 현상으로 design 적용할 때 상당한 난해함을 불러일이키곤 한다. - 이를 해결하는 방법이 있으니, 바로 font의 여백을 무시하는 방법이다. setIncludeFontPadding( false ); or android:includeFontPadding="false" 도움이 되셨다면 손가락 꾸욱~ ( 로그인 필요 x ) 2012. 12. 3.
[android] Window Backgrounds & UI Speed 출처 : 안드로이드 개발자 article Android LayoutTricks #1 (성능개선) Android Layout Tricks #2 : Reusing Layouts ( 성능개선 ) Android Layout Tricks #3 : Optimize by merging Android Layout Tricks #4 : Optimize with stubs ( 성능 최적화 ) Window Backgrounds & UI Speed - Activity 의 최상단 view 인 DecorView 는 기본적으로 ColorDrawable 이 setting 되어 있기 때문에, Activity 에 배경을 전부 덮어버리는 background 를 사용하는 경우, 쓸데없이 ColorDrawable 이 더 그려지는 효과가 있다.. 2012. 11. 28.
[android] Android Layout Tricks #4 : Optimize with stubs ( 성능 최적화 ) 출처 : 안드로이드 개발자 article Android LayoutTricks #1 (성능개선) Android Layout Tricks #2 : Reusing Layouts ( 성능개선 ) Android Layout Tricks #3 : Optimize by merging Window Backgrounds & UI Speed Android Layout Tricks #4 : Optimize with stubs * 원문에서는 Tricks #3 으로 제공되지만, 다른 article 과의 연관성을 고려하여 #4 로 명명하였다. - android 는 ViewStub 이라는 특별한 widget 을 제공한다. 이 녀석은 거의 쓰이지 않는 view 들에 대해 이점을 제공한다. - ViewStub 은 매우 가벼운 vie.. 2012. 11. 28.
[android] Android Layout Tricks #3 : Optimize by merging 출처 : 안드로이드 개발자 article Android LayoutTricks #1 (성능개선) Android Layout Tricks #2 : Reusing Layouts ( 성능개선 ) Android Layout Tricks #4 : Optimize with stubs ( 성능 최적화 ) Window Backgrounds & UI Speed Android Layout Tricks #3 : Optimize by merging - 여기서는 태그에 대해 다룬다. - 태그는 view tree 의 level 을 줄여서 android layouting 을 최적화시킬 수 있다. - Title bar 가 있는 경우 기본 View tree 는 다음과 같이 구성된다. - 빨간박스가 Title bar 쪽이고 왼쪽 Fra.. 2012. 11. 28.
[android] Android Layout Tricks #2 : Reusing Layouts ( 성능개선 ) 출처 : 안드로이드 개발자 article Android LayoutTricks #1 (성능개선) Android Layout Tricks #3 : Optimize by merging Android Layout Tricks #4 : Optimize with stubs ( 성능 최적화 ) Window Backgrounds & UI Speed Android Layout Tricks #2 : Reusing Layouts - Android XML layout file 에서 모든 tag 는 실제 class instance 와 mapping 된다. ( 그 class 는 모두 View 의 subclass 여야 한다. ) UI Toolkit 에서는 View 에 mapping 되지 않는 3가지 특별한 tag 를 제공하는데,.. 2012. 11. 28.
[android] Android LayoutTricks #1 (성능개선) 출처 : 안드로이드 개발자 article Android Layout Tricks #2 : Reusing Layouts ( 성능개선 ) Android Layout Tricks #3 : Optimize by merging Android Layout Tricks #4 : Optimize with stubs ( 성능 최적화 ) Window Backgrounds & UI Speed Android LayoutTricks #1 - LinearLayout 을 남용하는 것은 view hierarchy 구성을 복잡하게 하곤 한다. 이렇게 view 갯수와 구조가 복잡해지면 성능이슈를 야기할 수 있다. ( initialization, layouting, drawing 등의 cost 발생 ) - 특히 LinearLayout 의.. 2012. 11. 28.
[android] decompile ( 디컴파일 ) 하는 방법 decompile ( 디컴파일 ) 하는 방법 1. apktools http://code.google.com/p/android-apktool/downloads/list - 이 녀석은 apk 로부터 resource 를 추출할 떄 쓰이는 툴이다. - apktool-install-windows-r04-brut1.tar.bz2 파일을 다운받아, 압축해제. 2. dex2jar http://code.google.com/p/dex2jar/downloads/list - 이 녀석은 dex 로부터 jar 를 생성하여, 최종적으로 소스코드를 볼 수 있도록 해주는 툴. - dex2jar-0.0.9.11.zip 파일을 다운받아, 압축 풀기 3. jdgui https://code.google.com/p/innlab/download.. 2012. 11. 27.
[android] listview scrollbar 변경하기 listview scrollbar 변경하기 - android:scrollbarThumbVertical="@drawable/" : scroll 막대기 이미지 - android:scrollbarTrackVertical="@drawable/" : scrollbar background 쪽 이미지 설정 도움이 되셨다면 손가락 꾸욱~ ( 로그인 필요 x ) 2012. 11. 26.
[android] Android App 에서 Analytics ( 통계 ) 내기. Android App 에서 Analytics ( 통계 ) 내기. 가장 많이 사용하는 android analytics provider 들은 1. Flurry - http://www.flurry.com/ - 업데이트가 6시간 단위 - 유료 2. Localytics - http://www.localytics.com/ - 업데이트가 거의 실시간 - 무료 ( freemium ) 3. Google Analytics for Android - https://developers.google.com/analytics/devguides/collection/android/?hl=ko - 상세 통계는 2일 후에, 꼭 필요한 정보류는 실시간 통계로 제공. - 무료 4. Kontagent - http://www.kontagent... 2012. 11. 26.
반응형