본문 바로가기
[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] Material Design 개략적으로 알아보기~ Implementing Material Design in Your Android App http://android-developers.blogspot.kr/2014/10/implementing-material-design-in-your.html Material Design 은 Android 5.0 ( Lollipop, LOS ) 부터 등장한 안드로이드의 디자인이다. 전반적인 Animation 에 대한 가이드는 아래 링크를 참조하면 좋다.https://material.io/guidelines/motion/material-motion.html Tangible Surfaces * Shadow 아래와 같이 xml 에서 elevation 을 주면, z axis 로 이동한 효과를 내며, system 에서 dynam.. 2017. 4. 10.
How to implement a Floating Activity in an Android App. How to implement a Floating Activity in an Android App. 출처 : http://cases.azoft.com/android-tutorial-floating-activity/ 만들고자 하는것. - Floating Activity ( Transparent ) - 단말의 orientation 에 상관없이 화면의 약 2/3 를 차지하며, center 에 위치하는 것. 만드는 과정 - Activity size 와 location 계산하기.- Activity 를 transparent 하게 만들기.- Background 가 touch 를 받지 않도록 하기. 1. Activity size 계산하기 ActionBar 를 사용하는 경우에 ActionBar 는 항상 동일한 위치에 존.. 2015. 3. 8.
[android] Launch UX Improvement. [android] Launch UX Improvement. reference : http://cyrilmottier.com/2013/01/23/android-app-launching-made-gorgeous/ Summary 안드로이드는 activity theme 에 따라 view 가 완전히 불러지기 전에 preview window 를 보여준다.이 때 theme 을 제대로 control 하지 않으면 이상한 전환 현상을 보여주기 때문에 부자연스럽다. 이를 개선하기 위해서 첫번째로..actionbar 를 사용하지 않으면 이를 제거해주자.theme 의 parent 를 android:Theme.Holo.NoActionBar 를 주면 된다. 두번째로는 배경화면을 기본 시작화면 색깔과 맞추는 것이 좋다.그렇다고 Sp.. 2014. 4. 4.
[android] Actionbar 에 overflow menu 보여주기. android, Actionbar 에 overflow menu 보여주기. Hard menu button 이 없는 경우에만 actionbar 에 보여진다. 만약 hard menu button 이 software button 으로 존재한다면, software button 옆에 overflow icon ( 세로로 점 3개 ) 가 나타나고, 그렇지 않으면 menu button 을 누르면 아래에서 over flow menu 가 튀어나온다. 강제로 넣고 싶다면 이렇게 해보아라. actionbar, hard menu button, hard menu key, menu button, overflow menu, showasaction, soft menu key, software menu key, [android] Acti.. 2014. 3. 27.
[android] activity progressbar ( shown on actionbar if it exists ) android, activity progressbar ( shown on actionbar if it exists ) @Overrideprotected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); setProgressBarIndeterminate(true); setProgressBarIndeterminateVisibility(true);} actionbar, actionbar progressbar, activity, activity progressbar, Example, ProgressBar, requ.. 2014. 3. 11.
[android] custom actionbar theme example android, custom actionbar theme example actionbar, actionbarstyle, actionBarTabTextStyle, android:actionbarstyle, android:actionBarTabTextStyle, android:background, android:textcolor, android:titleTextStyle, app theme, background, CODE, custom actionbar, custom actionbar theme, exmaple, sample, tab theme, TextAppearance.AppCompat.Widget.ActionBar.Title", textcolor, textsize, theme.appcompat.ligh.. 2014. 3. 10.
[android] PagerTitleStrip example android, PagerTitleStrip example PagerTitleStrip? ViewPager 안에 들어가 ActionBar 의 Tab 과 비슷한 효과를 낼 수 있는 녀석을 이야기한다. xml java FragmentPagerAdapter{private static final String[] titles = { "Page 1", "Page 2", "Page 3", "Page 4" }; @Overridepublic CharSequence getPageTitle(int position) { return titles[position];}} actionbar, Android, android.support.v4.view.PagerTitleStrip, android.support.v4.view.View.. 2014. 2. 26.
[android] minSdkVersion 에 대한 요즘 추세는 14. android, minSdkVersion 에 대한 요즘 추세는 14. minSdkVersion 에 대한 요즘 추세는 14. 그 이유는 여러가지가 있는데, 핵심만 요약하면. 1. Actionbar 와 holo theme 을 적용하기 쉽다. ( 추가 open source library 가 필요없다. ) 2. 풍부한 Animation 이 가능하다. 3. 4.0 부터는 하드웨어가 대부분 고사양이기 때문에 메모리를 비롯한 성능 이슈가 많이 완화되었다. 4. ICS 이전 버전들은 bug 가 많아 방어코드를 많이 삽입하거나, 기획 자체를 바꿔야 하는 경우가 많다. 4.0 이하 버전들의 비중은 점점 줄어들고 있다.중국이나 인도 타겟이 아니라면 API Level 14 이상을 지원하는 것을 강력하게 추진해보자! 14, a.. 2014. 1. 21.
반응형