본문 바로가기
[android] xml 의  tool 을 사용하자 [android] xml 의 tool 을 사용하자 https://medium.com/sebs-top-tips/tools-of-the-trade-part-1-f3c1c73de898https://developer.android.com/studio/write/tool-attributes.html -xmlns:tools="http://schemas.android.com/tools" aapt 는 tools: attribute 를 ignore 한다.그래서 실제 apk 에는 들어가지 않는다. - 위와 같이 tools: 를 사용하면 실제 xml 에서 pre draw 할 때는 tools:text 가 android:text 처럼 작동하지만,apk 는 들어가지 않는다. aapt( android asset packaging .. 2017. 5. 30.
[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] how to apply actionBarStyle and android:actionBarStyle both? android, how to apply actionBarStyle and android:actionBarStyle both? android developer reference 문서를 보면,actionbar 에 custom style 을 적용하면서 compatibility 이슈를 동시에 해결하려면android:actionBarStyle 과 actionBarStyle 을 동시에 적용할 것을 설명해준다. 하지만, Eclipse 에서 실제로 적용해보면 인식할 수 없다는 xml error 가 발생한다. 이는 다음과 같이 해결할 수 있다. 1. tools 라는 name space 를 정의해준다. xmlns:tools="http://schemas.android.com/tools" 2. android:actionBar.. 2014. 3. 5.
[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] Menu 만들기 Menu 만들기 [이전강좌] 컴파일과 배포 ( Compile and Distribution ) 새로운 Project 를 만들 때 VB Application Wizard 를 선택해서 만들면, Wizard 를 통해 쉽게 Menu 를 만들 수 있다. 또는 Standard.exe 를 비롯한 다른 project 를 만든 후에Menu Editor 를 사용해서 Menu 를 추가할 수도 있다. Menu Editor 는 [Tools] - [Menu Editor] 또는 Ctrl + E 로 실행시킬 수 있다. [다음강좌] 프린터( Printer ) 로 프린트하기 Menu, menu editor, menu 만들기, menu 추가, sub menu, Tools, vb, vb application wizard, VB6, Visu.. 2013. 6. 27.
반응형