본문 바로가기
[Facebook] 그래프 API ( Graph API ) Overview [Facebook] 그래프 API ( Graph API ) Overview https://developers.facebook.com/docs/graph-api/overviewhttps://developers.facebook.com/docs/graph-api/using-graph-api-노드, 에지, 필드 라는 component 로 구성된다. 노드 : 사용자, 사진, 페이지, 댓글 같은 항목에지 : Node 간의 연결필드 : Node 에 대한 정보 -대부분의 그래프 API 요청에는 엑세스 토큰을 사용해야 한다. -각 Node 에는 고유한 ID 가 있고, Graph API 를 통해 해당 ID 를 접근하면 Node 에 대한 정보가 나온다.노드 ID 구조나 형식은 변경 가능성이 높기 때문에 해당 form 을 f.. 2018. 2. 26.
[ios] UIView 에 대한 이야기 [ios] UIView 에 대한 이야기 참조 : https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIView_Class/ -UIView 는 다른 View 를 가질 수 있다. -보통 Subview 는 superView 의 bound 에 clip 되지 않지만 clipsToBounds property 를 사용하면 clip 시킬 수 있다. -view 의 geometry 는 frame, bounds, 그리고 center property 에 의해 결정된다.frame 은 superview 기준의 position 과 size 를 결정할 때 사용된다.center 는 size 변화 없이 position 변경할 때 사용된다.bounds 는 view.. 2017. 11. 10.
[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.
어떻게 contents 를 vertical 중앙 정렬 시킬 것인가? ( vertical-align 에 대한 오해 ) 어떻게 contents 를 vertical 중앙 정렬 시킬 것인가? ( vertical-align 에 대한 오해 ) 출처 : http://phrogz.net/CSS/vertical-align/index.html table cell 에서의 vertical-align -css 의 vertical-align 이 valign attribute 와 비슷하게 작동한다.최신 browser 에서는 아래 3개의 코드가 똑같이 작동한다. inline element 에서의 vertical-align -inline element 에서는 align 처럼 작동한다.최신 browser 에서는 아래 3개의 코드가 똑같이 작동한다. 다른 element 에서의 vertically-center 는? -다른 element 에서는 사실 이 .. 2016. 4. 30.
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.
[기초강좌] HTML Styles - CSS - w3schools 번역 [기초강좌] HTML Styles - CSS - w3schools 번역 w3school 의 강좌 내용을 번역한 글입니다. 원문 : http://www.w3schools.com/html/html_css.asp CSS ( Cascading Style Sheets ) 는 HTML element 들을 스타일링 하는 데 사용된다. Styling HTML with CSS CSS 는 HTML 4 와 함께 소개된 것으로, HTML element 들을 더 나은 방법으로 스타일링 하는 데 사용된다. CSS 는 다음과 같은 방법으로 HTML 에 추가될 수 있다.* Inline - style 속성을 이용하여 HTML element 에 표기된다.* Internal - External Style Sheet External Sty.. 2014. 3. 11.
[android] ImageView ScaleType Tutorial android, ImageView Scale Type Tutorial ImageView ScaleType matrix ImageView 의 틀을 기준으로 왼쪽 상단을 꼭지점으로 표시된다.이미지가 resize 되지 않는다. fit_xy ImageView 의 틀에 딱 맞추어 이미지를 resize 하여 보여준다.찌그러져 보일 확률이 높다. fit_start ImageView 의 틀에 맞게 비율을 조정하되, 이미지 시작점을 상단에 맞춘다.가로 세로 중 먼저 fit 되는 쪽 기준으로 표시가 된다.이미지가 ratio 가 유지된다. fit_center ( default value ) ImageView 의 틀에 맞게 비율을 조정하되, 이미지 시작점을 중단에 맞춘다.가로 세로 중 먼저 fit 되는 쪽 기준으로 표시가 된.. 2013. 11. 7.
반응형