본문 바로가기
[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] 앱이 지원하는 File Type 등록하고 처리하기 [iOS] 앱이 지원하는 File Type 등록하고 처리하기 -https://developer.apple.com/library/content/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.html#//apple_ref/doc/uid/TP40010411-SW1 CFBundleDocumentTypes 를 Info.plist 에 포함시켜야 한다.이 key 에 대한 값은 dictionary 의 array 형태를 갖는다.각 dictionary 는 처리할 파일에 대한 정보를 갖는다.한 dictionary 에 여러 개의 파일 타입을 정의할 수도 있다.. 2018. 2. 20.
[ios] Application State 가져오는 방법 [ios] Application State 가져오는 방법 [UIApplication sharedApplication].applicationState UIApplicationStateActiveUIApplicationStateInactiveUIApplicationStateBackground Active, applicationState, background, Inactive, UIApplicationStateActive, UIApplicationStateBackground, UIApplicationStateInactive, [ios] Application State 가져오는 방법, 상태 2018. 2. 11.
[ios tutorial] Local Notification [ios tutorial] Local Notification -앱이 Foreground 상태가 아닐 때 사용자에게 어떤 정보를 알리기 위해 주로 사용한다.앱이 Foreground 상태일 때에는 Notification 이 표시되지 않고, Callback 을 받아 따로 처리해야 한다. -사용자는 Local Notification 과 Remote Notification (Push) 에 대한 차이를 알기 어렵다.둘 다 스크린상의 alert 나 banner, app badge, 사운드 등의 형태로 알람을 제공한다. Permission -iOS8 부터는 badge icons, alert message 표시, 소리 재생 등의 기능을 사용하기 위해서는 interaction type 을 등록 & User 의 Permis.. 2018. 1. 29.
[ios tutorial] UIImage RenderingMode ( Template Image ) [ios tutorial] UIImage RenderingMode ( Template Image ) 출처 :https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/UIKitUICatalog/index.html#//apple_ref/doc/uid/TP40012857-UIView-SW7https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/#//apple_ref/c/tdef/UIImageRenderingMode -UIImageRenderingMode 는 3가지 형태가 있다. Automatic AlwaysOriginal Templ.. 2018. 1. 28.
Android O Background 실행 제한 Android O Background 실행 제한 https://developer.android.com/about/versions/oreo/background.html#services -앱이 Background 로 돌 때는 디바이스의 리소스를 사용한다. 예를 들면 RAM, CPU.이런것들이 리소스를 많이 사용하는 게임이나 비디오 시청 등에 방해가 된다.이를 개선하기 위해 Android 8.0 ( API 26 ) 부터는 background 작업에 대한 제한이 추가되었다. Overview -많은 안드로이드 앱과 서비스는 동시에 돌 수 있다.예를 들면 게임을 한 윈도우에서 하면서 다른 윈도우에서는 브라우징을 하고, 백그라운드에서는 음악도 재생할 수 있다.더 많은 앱들이 한번에 돌면서 시스템에 더 많은 부하가 생.. 2017. 10. 20.
[android] onActivityResult 는 app 이 background 일 때 불리지 않는다 [android] onActivityResult 는 app 이 background 일 때 불리지 않는다 - onActivityResult 는 app 이 background 일 때 불리지 않는다그래서 foreground 로 app 이 올라올 때 불리게 된다. -참고로 FLAG_ACTIVITY_NEW_TASK 를 통해 다른 task 로 수행된 activity 에 대한 결과는 항상 cancel (RESULT_CANCELED) 로 들어온다.( https://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int, android.os.Bundle) ) Note that thi.. 2017. 9. 20.
[android] click 위치로부터 화면(Activity) 전개하는 animation 넣기 [android] click 위치로부터 화면(Activity) 전개하는 animation 넣기 http://frogermcs.github.io/Instagram-with-Material-Design-concept-part-2-Comments-transition/ -y 값을 새로 open 되는 Activity 에 전달한다. -Activity 의 theme 에 background transparent 를 넣고, root view 를 scaleY 로 0.1f 정도 놓는다. -onCreate() 단계에서 scaleY 를 1.f, pivotY 를 전달받은 값, duration 을 200 정도로 설정한 animation 을 root view 에 주면 된다. activity, Android, animation, ba.. 2017. 7. 10.
[iOS Study] 병렬 프로그래밍 가이드 ( 병렬 앱 디자인 ) [iOS Study] 병렬 프로그래밍 가이드 ( 병렬 앱 디자인 ) https://developer.apple.com/library/ios/documentation/General/Conceptual/ConcurrencyProgrammingGuide/ConcurrencyandApplicationDesign/ConcurrencyandApplicationDesign.html#//apple_ref/doc/uid/TP40008091-CH100-SW1 -전통적 방법으로의 복수개의 코어를 사용하는 방법은 여러개의 thread 를 만들어 사용하는 것이다.그러나 thread 를 사용한 코드는 scale 측면에서 좋지 않다.core 가 처리하기 좋은 thread 의 갯수를 아는 것도 쉽지 않고, thread 들을 효율적으.. 2017. 7. 1.
반응형