본문 바로가기
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.
[Tutorial] AndEngine Introduction [Tutorial] AndEngine Introduction * AndEngine 공식 사이트http://www.andengine.org/ 출처 : http://www.matim-dev.com/introduction-to-the-andengine.html Introduction -free open source OpenGL android game engine. -OpenGL 을 몰라도 Java 를 사용할 줄만 알면 OpenGL 의 feature 를 사용할 수 있다.물론 OpenGL 에 대한 지식과 경험이 있으면 더 도움이 된다. Feature -Multi resolution support -Multi touch supprot. -Physics extension -TiledMaps in TMX format .. 2014. 4. 24.
[android] Fragment State 제대로 관리하기. [android] Fragment State 제대로 관리하기. life cycle 중에 onPause 만 확실히 불리기 때문에 onPause 가 state 저장할 포인트이다.( onSaveInstanceState() 같은 녀석들이 확실히 불리지 않는다는 이야기다. ) 고로 onPause() 에서 FragmentManager.saveFragmentInstanceState( Context ) 를 호출하여 return 되는 Fragment.SavedState 라는 녀석을 어딘가에 저장을 하자.onSaveInstanceState 도 간헐적으로 불리므로 이 녀석 안에도 뭔가를 저장하는 코드를 넣어주자. onPause() 에서 savedstate 를 저장했다면 onDestroy() 에서는 이 녀석을 제거해주자. 저.. 2014. 4. 24.
android:foreground 속성은 언제 쓰이는가? android:foreground 는 android:background 와 반대되는 개념이다. android:foreground 의 경우는 main contents 를 가리면 안 되기 때문에 보통 alpha 를 먹인 이미지나 색상 등을 사용하며,어떤 item 을 선택했을 때 background selector 와 같은 효과를 볼 수 있지만, 앞쪽(컨텐츠보다 z 축으로 우리 눈쪽에 가깝게)에서 press 된 상태를 보기 위해 보통 사용된다. 말인 즉슨, 만약 어떤 버튼을 클릭하는데, 그 버튼의 컨텐츠가 버튼의 거의 전부를 cover 하고 있다면,selector를 background 로 설정했을 때, 해당 버튼을 press 하면 해당 버튼이 눌렸는지 판단하기 어렵다.이 경우 selector 를 foregro.. 2014. 4. 14.
[android] flood fill algorithm performance tests. android, flood fill algorithm performance tests. 위와 같은 공룡의 엉덩이, 발, 그리고 꼬리에 이르는 부분을 FloodFill algorithm 을 적용하여 색칠해보았다.avg 값은 5회의 결과를 평균 낸 값이다. 1. Very Intuitive and Simple Flood Fill Algorithm Recursive method call 을 이용하여, 한 점을 기준으로 동,서,남,북 pixel 에 대해 recursive call 을 호출하는 방식이다. private void floodFill3(Bitmap bitmap, Point fillStartPoint, int targetColor, int replacementColor){Queue queue = new L.. 2014. 4. 11.
[android] how to input xml percentage sign android, how to input xml percentage sign %% Android, how to input xml percentage sign, percentage sign, xml, % 2014. 4. 9.
Android Transition Animation (TransitionManager, Transition, Scene) Tutorial Android Transition Animation (TransitionManager, Transition, Scene) Tutorial 기본 참조 : http://blog.stylingandroid.com/archives/2143 Layout 의 변화에 대한 animation 을 지원한다.Layout 에 add, remove, move, resize, show, hide 등에 대한 기본 animation 을 지원한다. private ViewGroup mLayout1; @Overridepublic View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.in.. 2014. 4. 8.
[android] AutoCompleteTextView 때문에 Filterable 을 적용한 경우 example. android, AutoCompleteTextView 때문에 Filterable 을 적용한 경우 example. AutoCompleteTextView 때문에 Filterable 을 적용한 경우, 어떤 sequence 로 함수들이 불릴까? 1. getFilter ( 1회만 불림 ) 2. 글자 하나당 performFiltering, publishResults 가 순차적으로 불림. 3. publishResults 에서 notifyDataSetChanged 가 불리면getCount 를 부르면서 일반적인 list drawing 이 진행됨. private static class AutoCompleteAdapter extends BaseAdapter implements Filterable{ private List m.. 2014. 4. 8.
[android] compat version mapfragment xml example. android, compat version mapfragment xml example. Android, CLASS, com.google.android.gms.maps.MapFragment, com.google.android.gms.maps.SupportMapFragment, compat, compat version mapfragment xml example., fragment, map, map v2, map:cameraTargetLat, map:cameraTargetLng, map:cameraZoom, V2, xmlns 2014. 4. 7.
반응형