본문 바로가기
[android] Ripple 에 대해 알아보자 [android] Ripple 에 대해 알아보자 https://blog.stylingandroid.com/ripples-part-1/https://guides.codepath.com/android/ripple-animation -Ripple 자체는 Android L ( LOS ) 부터 나왔다.그러나 필자는 Ripple 을 실제로 처리할 일이 없어서, 그런 것이 있구나~ 하는 상태로 지내왔으나 이제 쓸 일이 있어서 정리해본다. -Ripple 은 새로운 RippleDrawable 이라 불리는 새로운 Drawable 이다.xml 로는 아래와 같이 정의하며, 기존 selector 정의해서 쓰듯 일반적으로 background 에 지정해주면 된다. -Ripple 을 그냥 적용해버리면, effect 가 해당 view.. 2018. 3. 30.
[ios] NSManagedObject description 에서는 relationship 을 print 하지 말자!! [ios] NSManagedObject description 에서는 relationship 을 print 하지 말자!! -NSManagedObject 의 description 에서 relationship 에 해당하는 item 을 찍으면( 그런 item 은 기본으로 fault ), fault 가 fire 되지 않으면서 bad memory access error 가 발생할 수 있다. -게다가 해당 property 들을 실제로 접근해서 쓰는 것이 아닌데, description 을 호출했다는 이유로 fault 가 풀려 버린다면, 이는 메모리 낭비로도 이어질 수 있다. -그러므로, description 에서 relationship 을 print 하지 말아라!!!! bad memory access error, de.. 2017. 11. 9.
[android] design support library [android] design support library https://android-developers.googleblog.com/2015/05/android-design-support-library.html -android design support library 를 통해서 navigation drawer view, floating labels for editing text, floating action button, snackbar, tabs, motion & scroll framework 등을 2.1 이상 버전에서 사용 가능하다. -gradle 에 아래를 추가하자! compile 'com.android.support:design:22.2.0' 이 녀석은 Support v4 와 AppCompat .. 2017. 8. 4.
[android] list view 의 아이템 하나씩 나타나는 animation 효과 주기 [android] list view 의 아이템 하나씩 나타나는 animation 효과 주기 http://frogermcs.github.io/Instagram-with-Material-Design-concept-part-2-Comments-transition/ -// view 는 list의 itemViewview.setTranslationY(100); // 원래 등장하는 위치보다 조금 더 내려주고..view.setAlpha(0.f); // visibility 를 꺼준 후..view.animate() .translationY(0) .alpha(1.f) .setStartDelay(delayEnterAnimation ? 20 * (position) : 0) // position 마다 시간차를 조금 주고.. .s.. 2017. 7. 11.
[android] ListVIew 의 transcriptMode.. ( 추가된 item 으로 focus 이동 ) [android] ListVIew 의 transcriptMode.. ( 추가된 item 으로 focus 이동 ) 이놈 때문에 한참을 해맸다... android:transcriptMode 는 새로운 item 이 add 되었을 때 focus 이동을 할지를 결정하는 속성이다. disabled, normal, alwaysScroll 이렇게 3개의 값이 들어갈 수 있다. disabled기본 값으로 새로운 아이템 추가에 무대응이다. normaldata set이 change 되었을 때 ( 새로운 녀석이 추가되면 ) + 마지막 아이템을 보고 있었다면, 새로 추가된 마지막 아이템쪽으로 focus 를 이동시킨다. alwaysScrolldata set 이 change 되었을 때 현재 보고 있는 item 이 어떤 녀석인지 상.. 2016. 12. 22.
[android] Localize 에 대한 이야기. [android] Localize 에 대한 이야기. 참조 : http://blog.danlew.net/2014/09/08/what-should-i-localize/?utm_source=Android+Weekly&utm_campaign=c1f6bc0d27-Android_Weekly_119&utm_medium=email&utm_term=0_4eb677ad19-c1f6bc0d27-337262377 - xml 에 string 을 작성할 때 string res 를 사용하는 것이 localize 에 대한 기본이다. 보통 Lint 도 이 방법을 추천하지만, lint 가 잡아내지 못하는 항목들도 많다. - Lint 가 잡아내는 xml 항목들 android:text android:hint android:contentDe.. 2016. 11. 10.
[android] Render thread & Ripple ( Ripple 흉내내기 ) [android] Render thread & Ripple ( Ripple 흉내내기 ) 참조 : http://frogermcs.github.io/InstaMaterial-concept-part-3-feed-and-comments-buttons/ -Animation 등이 조금 더 general 하게 발전하면서, 모든 View operation 을 UI Thread ( Main Thread ) 에서만 처리하던 것이 문제가 되고 있다. 그래서 롤리팝에서부터는 Render thread 라는 게 생겨나서 rendering 과 main thread 가 분리되었다.Main thread 에서 atomic animation 을 만들어서 render thread 로 넘긴다.그래서 Rendering thread 에서 ani.. 2016. 9. 8.
[android] Shadow effect with custom shapes [android] Shadow effect with custom shapes 출처 : https://slothdevelopers.wordpress.com/2014/05/22/shadow-effect-with-custom-shapes/ Custom 한 버튼을 만드는 xml 정의이다. Custom 한 Shadow 와 Custom 한 버튼 모양을 만들기에 좋다. Android, Bottom, COLOR, Corner, custom button, custom shape, custom 버튼, Example, ITEM, layer-list, Left, Radius, Right, sample, selector, Shadow, shadow effect, Shape, Solid, state_pressed, Top, xm.. 2015. 12. 3.
MYSQL TUtorial #1 웹 데이터베이스 만들기 MYSQL TUtorial #1 웹 데이터베이스 만들기 MYSQL 시작 MySQL 사용을 위해서는 다음의 과정을 완료해야 한다. 1. 웹 서버에 MySQL 설치를 마쳐야 한다. 파일 설치 MySQL 실행한 사용자 설정 경로(path) 설정 필요하면 mysql_install_db 를 실행 루트 비밀번호 설정 필요없는 사용자와 테스트 DB 등을 삭제 MySQL 서버 돌리고 자동적으로 실행되도록 설정 사용자 설정 : GRANT 명령어 Global, Database, Table, Column 4단계로 권한 조정이 필요하다. GRANT privileges [columns] ON itemTO user_name [IDENTIFIED BY 'password'][REQUIRE ssl_options][WITH [GRANT.. 2014. 1. 21.
반응형