본문 바로가기
[Android] GlobalLayoutListener 해제 ( remove ) 의 Version 분기. Android GlobalLayoutListener 해제 ( remove ) 의 Version 분기. OnGlobalLayoutListener 는 Keyboard의 존재여부나, View 의 redraw 후의 변경된 width 혹은 height 등을 측정할 때 좋다.하지만 이 녀석이 젤리빈 이후에 listener 를 해지하는 api 이름이 변경되었다. 이전 API 의 이름이 이상하기는 하여 당연한 수정이라고 볼 수는 있지만...정말 코드를 버전분기하는 것은 여간 귀찮고 지저분한 코드 처리가 아닐 수 없다. http://developer.android.com/reference/android/view/ViewTreeObserver.html#removeGlobalOnLayoutListener 여튼 아래와 같이 .. 2014. 5. 8.
[Tutorial] AndEngine GLES1, GLES2, GLES2 Anchor Center 의 차이 [Tutorial] AndEngine GLES1, GLES2, GLES2 Anchor Center 의 차이 출처 : http://www.matim-dev.com/gles1-versus-gles2---comparison.htmlhttp://www.matim-dev.com/gles2-anchor-center.html GLES1, GLES2 의 차이가 뭔가요? -AndEngine 은 GLES2, GLES2 Anchor Center ( 최신 ) 이렇게 두가지 버전이 있다. ( GLES1 버전은 개발하다 멈췄다. ) -GLES 는 Android version 이 2.2 이상이여야 한다. -몇몇 개발자들은 GLES2 가 GLES1 에 비해 몇몇 경우에 더 느리다고 이야기하기도 한다. -GLES2 가 최신판이며, 현.. 2014. 5. 8.
[Tutorial] AndEngine Most Important Concepts [Tutorial] AndEngine Most Important Concepts 출처 : http://www.matim-dev.com/most-important-concepts.html Engine Frame 단위로 어떤 명령어들을 처리하는 Controller 이다.Engine 은 모든 content 를 담고 있는 Scene 을 주기적으로 update 한다. LimitedFPSEngine특정양의 update 를 control 할 수 있다. IResolutionPolicy multi resolution 에 대해서 어떻게 처리할지를 구현하는 interface. RatioResolutionPolicy모든 것을 scale 해서 적당한 ratio 로 만든다. ( black line 이 생길 수 있다. ) Fill.. 2014. 5. 7.
[android air] Activity lifecycle on the flash ( onResume, onPause, onStart, onStop ) [android air] Activity lifecycle on the flash ( onResume, onPause, onStart, onStop ) NativeApplication.nativeApplication.addEventListener( Event.ACTIVATE, onStart );NativeApplication.nativeApplication.addEventListener( Event.DEACTIVATE, onStop ); function onStart( e : Event ){// Do sth..} function onStop ( e : Event ){// Do sth..} activate, addEventListener, android activity lifecycle, Callback,.. 2014. 5. 7.
Android Transition Framework (TransitionManager, Transition, Scene) 의 작동 원리 Android Transition Framework (TransitionManager, Transition, Scene) 의 작동 원리 참조 : http://lucasr.org/2014/03/13/how-android-transitions-work/ Transition Framework Transition 은 layout change 에 대한 animation 을 지원한다.layout change 는 add, remove, move, resize, show, hide 등을 이야기한다. Transition Framework 는 3개의 핵심으로 구성된다. Scene Root, Scene, Transition. Scene Root 는 ViewGroup 으로 Transition 이 일어나는 배경이 되는 Cont.. 2014. 4. 30.
[android] segmented control - open source library [android] segmented control - open source library https://github.com/hoang8f/android-segmented-control RadioButton, RadioGroup 등을 이용해서 iOS 의 segmented control 의 UI 를 입혀놓은 이쁜 open source library. IOS, open source library, radiobutton, radiogroup, segmented control, [android] segmented control - open source library 2014. 4. 29.
scroll container 에 padding 값을 줄 경우 꼭 봐야 할 내용! scroll container 에 padding 값을 줄 경우 꼭 봐야 할 내용! Scroll Container 의 top 혹은 bottom 에 padding 을 주었다면 android:clipToPadding="false" 를 주어야 한다. 그렇지 않으면 scroll 하면서 이 padding 부분이 사라지게 된다. Left, Right 에 padding 을 줄 경우에는 scroll indicator 가 안쪽으로 존재할 수 있는데 이는android:scrollbarStyle="outsideOverlay" 로 설정해주면 해결된다. 요약하면 padding 값을 줄 경우 아래와 같이 xml 설정을 하면 된다. Android, android:cliptopadding, android:scrollbarStyle, .. 2014. 4. 29.
Admob 의 standalone sdk 가 deprecated 된다? Admob 의 standalone sdk 가 deprecated 된다? Admob 의 standalone sdk 가 deprecated 된다는 이야기를 들었다. 그럼 지금까지 앱 퍼블리쉬하고 유지보수 안 하는 사람들은 어떻게 하는가?Google Play Service 로 통합하지 않으면 모든 standalone sdk 를 사용한 앱들은 광고부분에서 먹통이 되는가 궁금했다. 그래서 공식사이트를 열심히 살펴보았다. standalone sdk 를 deprecated 시키는 이유는 google play 의 정책에 위배된다고 하는데.사실 한곳에서 지속적 유지보수를 하기 위해 + Google 의 여러가지 서비스를 사용하게 하기 위해서 Google Play Service 를 사용하게 하려는 수작(?) 이다. 2011.. 2014. 4. 28.
[android] textAllCaps 속성. [android] textAllCaps 속성. android:textAllCaps = "true" 는 해당 TextView 의 text 를 모두 대문자로 만든다.API 는 setAllCaps( boolean ) 이는 API Level 14 부터 제공되는 기능. 만약 API Level 14 이전에 이 기능을 쓰려면,AppCompat 에서 제공되는 CompatTextView 를 사용하면 된다.단, android:textViewStyle 을 기본으로 상속하지 않기 때문에 따로 지정해주어야 한다. xml 에서 사용하려면 android.support.v7.internal.widget.CompatTextView, android:textAllCaps = "true", android:textViewStyle, api .. 2014. 4. 28.
반응형