Notice
Recent Posts
Recent Comments
Link
«   2024/09   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Tags
more
Archives
Today
Total
관리 메뉴

데브팜

Carbon 라이브러리 본문

Android

Carbon 라이브러리

퓨새 2018. 1. 3. 17:18

유용하게 사용하고 있는 Carbon 라이브러리를 번역해보았습니다.

번역에 잘못된 부분이 있다면 댓글 달아주세요.

손쉬운 이해를 위하여 의역된 부분들이 있습니다.

Carbon#

Android 4.0(아이스크림 샌드위치) 혹은 그 이상의 버전에 Material Design을 적용시키기 위한 라이브러리입니다.
Carbon은 Lollipop API(Material Design이 처음 나온 버전) 기능을 그대로 옮겨놓은 것이 아닙니다.
실제 디자인 작업 시 유용하게 사용되는 것들을 커스텀하여 추가 구현해 놓은 라이브러리입니다.


(Carbon의 모든 widget은 안드로이드 support 라이브러리를 상속받아 구현되었습니다. support라이브러리를 버그 수정하고 기능 추가 및 업그레이드 했다고 보면 됩니다, 기존 support 라이브러리 기능을 모두 지원하고 있습니다.)

*Material Design(머티리얼 디자인)은 구글에서 발표한 플랫폼 및 기기 전반의 표현 방식, 모션 및 상호 작용 디자인에 대한 종합적인 지침입니다. (참고: https://developer.android.com/design/material/index.html?hl=ko)

Carbon은 다음을 시도합니다:

1. 객체를 손쉽게 만들고자 합니다. (xml이나 ViewOutlineProvider를 직접 만드는 대신 특정 cornerRadius='dp'를 설정할 수 있습니다)
2. 어떤 API든 Carbon의 어떤 기능을 사용하든 모두 동일하게 보여지도록 하고자 합니다.
3. 백포트 기능(손쉽게 상위 버전의 기능을 하위버전에 적용시켜주는 기능) (주의: shadow에 gradient를 사용하지 마세요!)
4. 고쳐지지 않은 안드로이드의 버그를 수정합니다 (ex) 중력이 설정되지 않은 경우 FrameLayout은 child(하위 레이아웃)의 padding을 무시합니다)

Features#

(아래 사항들 중 단어 자체로 기능과 의미를 나타내고 있는 것들은 영문 그대로 남겨 두었습니다)

Android 4.x#
  • Elevation 설정할 때 필요한 그림자를 생성해 줌
  • 터치 리플 가능 (물결 터치 효과)
  • 둥근 모서리 효과
  • circular reveal
  • theme xml attribute
  • widget과 drawable tint 설정
All APIs#
  • 모서리와 리플(물결효과)을 위한 xml 속성들
  • 그림자에 색상 지정 가능
  • 밝기 / 채도 조절 가능
  • SVG 지원 (transformations, 텍스트, 그라디언트 등의 기능도 지원)
Useful extensions and bugfixes#
  • html text
  • percent layouts, anchors, colored insets
  • view stroke
  • visibility animations
  • ttf/otf fonts
  • text auto size
  • TextMarker
Material constants, widgets and components#
  • colors, dimensions, typography
  • RecyclerView를 바로 사용할 수 있는 행과 어댑터
  • DropDown, FloatingActionMenu, RangeSeekBar, ExpandableRecyclerView, FlowLayout, TableView

Samples#

385-20181-3-1648-11.png 970-20181-3-1648-15.png 415-20181-3-1648-21.png

287-20181-3-1648-26.png 570-20181-3-1648-32.png 790-20181-3-1648-35.png

835-20181-3-1648-42.png 482-20181-3-1648-46.png 164-20181-3-1648-53.png

769-20181-3-1648-57.png 438-20181-3-1649-1.png 466-20181-3-1649-4.png

345-20181-3-1649-10.png

License#

Copyright 2015 Marcin Korniluk 'Zielony'

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.