본문 바로가기
[android] Dependency conflict 해결하기 -아래 명령을 통해 dependency 와 그 버전을 확인 할 수 있다.만약 2개의 library 가 같은 lib 그러나 version 이 다른 dependency 를 가지고 있다면 highest dependency 를 가져간다../gradlew dependencies -같은 build variable 에 대해 공통의 dependency 가 있다면 위의 규칙을 따르지만,다른 build variable 에 대해서는 dependency conflict 가 발생 할 수 있다.예를 들면 compile 과 androidTestCompile 에 사용되는 lib 이 다른 version 을 가르킬 때이다. 이 경우 다음과 같이 dependency 를 제거할 수 있다. 1. 한 dependency 에서 conflict .. 2018. 3. 15.
[android] png 기반 GIF 를 바탕으로 VectorDrawable 로 치환해 animation 만들기 [android] png 기반 GIF 를 바탕으로 VectorDrawable 로 치환해 animation 만들기 https://medium.com/google-developers/animation-jump-through-861f4f5b3de4#.tcugnrmsy -GIF 를 Photoshop 으로 열면 timeline view 에 animation frame 들이 나온다. -Sketch 라는 vector drawing tool 을 이용해서 path 를 잡고 SGV 로 export 를 한다.몇몇 tool 은 자동으로 vector path 를 만들어 준다. -Mobile 단말에서는 SGV 를 fully 지원하지 못할 수 있기 때문에 simplified 된 버전이 안정적이다.아래 사이트를 통해서 simplif.. 2018. 3. 12.
[android] RxAndroid 맛보기 [android] RxAndroid 맛보기 http://www.vogella.com/tutorials/RxJava/article.htmlhttps://code.tutsplus.com/tutorials/getting-started-with-reactivex-on-android--cms-24387https://realm.io/kr/news/rxandroid/ -Observable.just() 는 Observable 을 생성한다.이렇게 생성된 Observable 에 subscribe 가 붙으면 곧바로 just() 에 전달된 녀석이 onNext() 로 전달된다.List list = Arrays.asList(“Android”, “Ubuntu”, “Mac OS”);Observable listObservable = .. 2018. 3. 10.
[android] RxJava가 뭐야? 맛보기! [android] RxJava가 뭐야? 맛보기! https://medium.com/@LIP/rxjava-29cfb3ceb4ca#.9nadkqnzxhttp://blog.danlew.net/2014/10/08/grokking-rxjava-part-4/ -RxJava 란 Reactive Programming 을 위한 라이브러리인 Rx(Reactive Extensions)의 JVM 판이다.Rx 라는 녀석은 C# 에서 처음 개념이 나왔다고 볼 수 있다.Rx 란 비동기처리와 이벤트기반의 프로그램 개발을 위해 유용한 기능들을 제공하는 확장판이라고 볼 수 있다. -Reactive(반응적인) 코드의 기본적인 구성 요소는 Observable 들과 Subscriber 들이다.Observable 은 아이템들을 발행(emit).. 2018. 3. 9.
[android] Resource Merging 에 대한 이야기.. [android] Resource Merging 에 대한 이야기.. http://tools.android.com/tech-docs/new-build-system/resource-merging-Gradle build 에서는 resource merge 에 대해 새로운 규칙이 적용된다. 기존의 build system 에서는 resource folder list 를 aapt(Android Asset Packaging Tool) 에 전달하며,나중에 전달된 것이 overlay 로 작동한다. ( 옵션을 통해서 override 가 아닌 새로운 추가로 작동할 수도 있었다. )overlay 로 작동한다는 것은 새로운 resource 에 대해서 추가되는 방식이다. Gradle 에서는 aapt 에 전달하기 전에 single,.. 2018. 3. 6.
[android] ConstraintLayout Tutorial [android] ConstraintLayout Tutorial https://developer.android.com/training/constraint-layout/index.html -ConstraintLayout 은 RelativeLayout 과 매우 비슷하게 Flat 한 view hierarchy 를 만들 수 있으면서도. 조금 더 유연하게 사용할 수 있다.그리고 Android Studio Layout Editor 를 통해 쉽게 설정할 수도 있어 편리하다. ( 이것을 key 로 미는 듯 ) -여기서 궁금한 거 하나 더!!Flat view hierarchy 는 알겠는데 그만큼 성능도 좋을까?결론은 성능도 좋다. ( 다른 layout 에 비해 약 10% 이상 빠르다 )https://medium.com/.. 2018. 3. 3.
[android] Messaging Style Notification Tutorial https://blog.stylingandroid.com/nougat-messaging-style-notifications/ -Bundled Notification 이란 녀석은 Notification 들을 각각 만들고, Notification framework 를 사용하여 grouping 을 하는 개념이라면,Messaging Style Notification 은 Notification 하나에 여러 Message 를 담는 것을 의미한다. -Messaging Style Notification 은 Nougat 부터 사용 가능하다. -NotificationCompay.MessagingStyle messagingStyle = buildMessageList(messages);Notification notificat.. 2018. 3. 1.
[android] Direct Reply Tutorial https://blog.stylingandroid.com/nougat-direct-reply/ -Direct Reply 는 Notification 으로부터 App Launch 없이 바로 답장을 보내는 기능이다.Message App 에 한정되지 않고 모든 앱이 사용 가능하다. -Direct Reply 는 Android N Nougat 버전에 한해 사용 가능하다. -Direct Reply 의 키는, Notification 을 만들 때 remoteInput 을 추가하는 것이다.// notification 생성private static final String REPLY_KEY = “reply”;private static final String REPLY_LABEL = “Input reply”; // Action.. 2018. 2. 28.
[android] Google Sign In 준비하기 #1 [android] Google Sign In 준비하기 #1 https://developers.google.com/identity/sign-in/android/start-integrating -Google Sign-In 을 사용하기 위해서는 아래와 같은 조건이 필요하다. 단말 Android 2.3 이상 & Google Play Store 개발환경 최신버전의 Android SDK Android 2.3 이상 Google Play Services 설치 ( sdk manager 통해 ) -아래 명령을 통해 keystore 의 SHA1 추출keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore -https://de.. 2018. 2. 22.
반응형