본문 바로가기
[android] Gradle Tutorial #1 [android] Gradle Tutorial #1 http://tools.android.com/tech-docs/new-build-system/user-guide Build System 의 목적 code 와 resource 의 reuse 를 쉽게 한다. app 의 여러 variant 에 따라 multi-apk 를 생성하거나, 약간 다른 기능을 하는 app 을 쉽게 생성해낸다. build process 를 쉽게 설정하고, 확장하고, 개인화 할 수 있다. IDE 와 잘 연동된다. 왜 Gradle 인가? plugin 을 통해 custom build logic 을 만들어 낼 수 있는 진보된 빌드 시스템 혹은 툴킷이다. Groovy 기반 DSL ( Domain Specific Language) 을 빌드 로직을 .. 2018. 10. 4.
[ios] .c 파일을 import 한 후 build 가 안 된다면 pch 파일을 확인해봐라. [ios] .c 파일을 import 한 후 build 가 안 된다면 pch 파일을 확인해봐라. pch 파일은 빌드할 때 매번 사용되는 녀석으로, c 를 컴파일 할 때도 사용된다.그래서 pch 파일에 objective-c 에서 사용하는 녀석에 대한 import 문이 있다면 compile 에러가 난다. pch 파일에서 아래와 같이 ifdef 구문으로 처리해주어야 한다. ( c 에서는 ObjectiveC 의 header 를 import 못하니깐 )#ifdef __OBJC__#import “ObjecitveCHeader.h"#endif #endif, #ifdef, .c import, build, C, Compile, compile error, endif, ifdef, import, Objective-C, PCH.. 2018. 1. 31.
[android] Build 할 때 MissingTranslation 관련 에러가 난다면.. [android] Build 할 때 MissingTranslation 관련 에러가 난다면.. 여러가지 방법이 있지만, 가장 쉽게 전체적으로 문제를 해결하려면 module 의 build.gradle 에 아래와 같은 조건을 넣어주면 된다. android { ... lintOptions { disable 'MissingTranslation' }} Android, android missingtranslation, build, disblae 'missing translation', lintoptions, missingtranslation, [android] Build 할 때 MissingTranslation 관련 에러가 난다면.. 2018. 1. 21.
[ios] Umbrella Framework? Umbrella Header? [ios] Umbrella Framework? Umbrella Header? https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html -Umbrella Framework 는 표준 Framework 와 비슷하다.Umbrella Framework 는 header file 들을 include 하고 있다.그리고 subframework 들을 encapsulate 한다. -Umbrella framework 는 내부의 구현을 잘 숨겨서 필요한 interface 만 제공할 수 있고,precompiled header 를 사용해 build 도 더 빨리 할 수 있는 장점이 있.. 2017. 11. 27.
[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.
[android] ActionBarSherlock vs. ActionBar Compatibility android, ActionBarSherlock vs. ActionBar Compatibility ActionBarSherlock 이 Framework Source 를 ( ActionBar Compatibility ) 기반으로 했기 때문에 큰 차이가 없다. 추후나 build 등을 고려하면 Compatibility 를 사용하는 것이 좋다.확장성 등을 생각하면 ActionBar Sherlock 이 더 좋다. 얼마전 ( 2013. 07. 30 ) ActionbarSherlock 새 버전이 release 되었다. ActionBarSherlock Donwload actionbar compat, actionbarcompatibility, actionbarsherlock, build, compare, release,.. 2014. 1. 7.
[android] view 를 최적화시켜보자 ( Hierarchy Viwer & Pixel Perfect ) 안드로이드, View 를 최적화시켜보자 ( Hierarchy Viewer & Pixel Perfect ) 출처 : http://developer.android.com/tools/debugging/debugging-ui.html Optimizing Your UI ( UI 최적화하기 ) layout 때문에 앱이 느려질 수 있다.layout 에 관련된 debug 는 Hierarchy Viewer 와 lint tools 를 통해 할 수 있다. Hierarchy Viewer 는 layout 의 계층도를 보여주며, 각 node 가 얼마나 성능을 내는가를 볼 수 있다.그리고 Pixel Perfect window 를 통해 확대해 볼 수도 있다. lint 는 static code scanning tool 로 일반적으로 .. 2013. 9. 2.
[VB6] Database 사용하기 Database 사용하기 [이전강좌] Multimedia 의 사용 ( 음악 및 동영상 재생 ) Data Control. Data Control 을 삽입한다.Data Control 의 DatabaseName Property를 클릭하여, 연결할 DB File을 선택한다.RecordSource Property를 통해 특정 table 을 선택하여 사용할 수 있다. DB 내용을 연결하려는 곳( 예를 들면 TextBox ) 의 DataSource 에 Data Control 을 연결해주고, DataField 를 특정 column 에 연결해준다. 만일 DB의 내용을 순서대로 사용할 것이 아니라면, DataControl1.RecordSet.MoveFirstDataControl1.RecordSet.MoveLastDataC.. 2013. 6. 21.
[칵테일/레시피] 데킬라 선라이즈( Tequila Sunrise ) 데킬라 선라이즈 ( Tequila Sunrise ) 유래 멕시코 대표 칵테일. 영화제목도 있으며 멕시코의 석양을 표현했다고 한다. 제조된 칵테일을 보면 왜 데킬라 선라이즈라고 했는지 감을 잡을 수 있다. 준비물 데킬라, 그레나딘 시럽, 오렌지 쥬스 글라스 Highball Glass - 보통 물잔과 비슷한 큰 원통 잔. 용량은 5~9oz 레시피 1. 잔에 얼음 세팅 2. 데킬라 1oz build 3. 오렌지쥬스 3oz build ( fill 하라는 recipe 도 많음 ) 4. 그레나딘시럽 0.5oz build ( 중앙에 조심스럽게 뿌리라는 조언 많음 ) 사실 oz (온즈) 는 무게의 단위이기 때문에 레시피에 사용되는 계량컵으로 1oz 를 측정하는 것은 정확하지는 않습니다. 물의 경우가 1g = 1ml 가.. 2013. 1. 6.
반응형