본문 바로가기
[android] design support library [android] design support library https://android-developers.googleblog.com/2015/05/android-design-support-library.html -android design support library 를 통해서 navigation drawer view, floating labels for editing text, floating action button, snackbar, tabs, motion & scroll framework 등을 2.1 이상 버전에서 사용 가능하다. -gradle 에 아래를 추가하자! compile 'com.android.support:design:22.2.0' 이 녀석은 Support v4 와 AppCompat .. 2017. 8. 4.
[android] PageTransformer 와 함께 하는 ViewPager 의 화려한 animation [android] PageTransformer 와 함께 하는 ViewPager 의 화려한 animation 참조 : https://medium.com/@BashaChris/the-android-viewpager-has-become-a-fairly-popular-component-among-android-apps-its-simple-6bca403b16d4 -ViewPager.PageTransformater interface 를 구현하면 매번 screen transition 이 발생할 때마다 tansformPage() 함수가 불린다. -position 값은 screen 의 center 로 부터 해당 page 가 어디에 위치하느냐를 나타낸다.page 가 screen 전체를 가득 채웠을 때에는 0 값을 가진다... 2016. 10. 4.
[android] v7 에 추가된 RecyclerView 에 대해 알아보자 #2 [android] v7 에 추가된 RecyclerView 에 대해 알아보자 #2 출처 : https://developer.android.com/preview/material/ui-widgets.html#recyclerview v7 에 추가된 RecyclerView 에 대해 알아보자 #1 RecyclerViewRecyclerView 는 더 향상되고, 더 유동적인 버전의 ListVIew 라 할 수 있겠다.이 widget 은 recycle 될 수 있고, scroll 될 수 있는 view 들을 갖는다. 즉 listview 나 gridview 로 보면 되겠다. RecyclerView 는 사용하기 편하다. 다음의 것들을 제공하기 때문이다.- item positioning 을 위한 LayoutManager- 일반적인.. 2015. 11. 29.
안드로이드 4.4 Kitkat UI/UX 변경사항 안드로이드 4.4 Kitkat UI/UX 변경사항 출처 : https://developer.android.com/design/patterns/new.html#kitkat 기본 Color 가 Blue -> White. Pinch Zoom -> Double Tap Zoom Pinch Zoom 은 한손 조작이 어려워서, Double Tap 하면 Zoom mode 에 들어가서 위로 scroll 하면 확대, 아래로 scroll 하면 축소가 된다. 다시 Double Tap 을 하면 Zoom mode 가 풀어진다. 시스템 Bar 들의 투명모드 시스템 Bar 들이 투명모드가 될 수 있다. 상단 status bar, action bar, 그리고 software button 이 있는 navigation bar 도 투명으로.. 2014. 5. 14.
scroll container 에 padding 값을 줄 경우 꼭 봐야 할 내용! scroll container 에 padding 값을 줄 경우 꼭 봐야 할 내용! Scroll Container 의 top 혹은 bottom 에 padding 을 주었다면 android:clipToPadding="false" 를 주어야 한다. 그렇지 않으면 scroll 하면서 이 padding 부분이 사라지게 된다. Left, Right 에 padding 을 줄 경우에는 scroll indicator 가 안쪽으로 존재할 수 있는데 이는android:scrollbarStyle="outsideOverlay" 로 설정해주면 해결된다. 요약하면 padding 값을 줄 경우 아래와 같이 xml 설정을 하면 된다. Android, android:cliptopadding, android:scrollbarStyle, .. 2014. 4. 29.
[android] how to make scrollview scroll to bottom programatically. android, how to make scrollview scroll to bottom programatically. ScrollView.fullScroll( View.FOCUS_DOWN ); Android, Bottom, focus_down, fullscroll, how to make scrollview scroll to bottom programatically., Programatically, scroll, scrollview, smoothscroll 2014. 1. 27.
[android] how to disable gridview scrolling. android, how to disable gridview scrolling [En]Not only the GridView but also all kinds of AdapterView can be adjusted not to scroll by making new class which extends the view. You can do nothing in the onTouchEvent and onInterceptTouchEvent function which are responsible for taking MotionEvent and do scrolling logic. [Kr]GridView 뿐만 아니라 모든 AdapterView 들의 Scrolling 을 막는 데는 아래와 같이 해당 View 를 exten.. 2013. 9. 23.
[android] WebView 의 위치가 갑자기 확 바뀌는 현상 안드로이드, WebView 의 위치가 갑자기 확 바뀌는 현상 WebView 의 위치가 갑자기 확 바뀌는 현상의 원인은 WebView 가 Focus 를 받기 때문이다.( 물론 다른 이유가 있을 수 있지만, 필자의 경우의 원인은 이거였다. ) 필자가 겪은 증상은 한 Fragment 에서 아래와 같은 layout 이 있는 상황. ScrollViewLinearLayout ( vertical )다른뷰들WebView 발생한 문제 재현은 해당 fragment 에서 다른 fragment 로 갔다가 돌아와서webview 부분을 클릭하면 webview 부분이 focus 를 받으면서 ( 직관적으로 알 수 없으나 해결결과를 보면 focus 를 받았다는 것을 알 수 있다. ) webview 쪽으로 scroll 이 확~ 이동하는.. 2013. 9. 17.
[CSS] overflow property 에 대해 알아보자. CSS, overflow property 에 대해 알아보자. CSS 의 overflow 는 div 와 같이 block component 에 잘 사용되는 style option 이다.이 옵션은 태그 안에 들어가는 내용물이, 이를 담고 있는 container 의 영역을 벗어날 경우내용물(contents) 를 어떻게 처리할가를 정의하는 것이다. 예를 들어 { overflow:hidden; } 와 같이 overflow 내용을 hidden 으로 표시하면 container 를 벗어나는 내용물은 표시하지 않는다. overflow value 값 설명 visible 기본값으로 overflow 되는 값들을 container 밖에라도 그냥 다 보여준다. hidden overflow 되는 값들을 숨긴다. scroll over.. 2013. 6. 27.
반응형