본문 바로가기
[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.
[android] layout percentage 적용하기 layout percentage 적용하기 - layout weight 를 적용하면 된다. ...... - 이렇게 적용하면 가운데 들어간 layout 이 화면의 70% 를 차지하여 layouting 되고, 좌우로 15% 씩 여백이 생긴다. 도움이 되셨다면 손가락 꾸욱~ ( 로그인 필요 x ) 2012. 11. 26.
[android] listview select(click) highlight 제거 방법. listview select(click) highlight 없애는 방법. 아주 심플합니다. manifest 의 listview 속성에 다음을 추가해줍니다. android:listSelector="@android:color/transparent" 도움이 되셨다면 손가락 꾸욱~ ( 로그인 필요 x ) 2012. 11. 23.
[android] Camera APIs 출처 : 안드로이드 개발자 사이트 camera APIs manifest.xml 설정하기 카메라 사용하기 - 함수들은 Camera class 의 함수들.. 1. open(int) 로 Camera instance 얻기 2. getParameters() 로 기본 setting 을 얻는다. 3. 필요하다면 Parameters 를 수정한 후 setParameter 를 통해 수정된 parameter 전달. 4. 필요하다면, setDisplayOrientation( int ) 를 호출한다. 5. setPreviewDisplay( SurfaceHolder ) 를 호출하는데, 이 때 SurfaceHolder 는 initialize 가 끝난 상태여야 한다. 6. startPreview() 를 호출한다. 7. takePic.. 2012. 11. 21.
반응형