GithubHelp home page GithubHelp logo

foxtong / carbon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zieiony/carbon

0.0 1.0 0.0 8.34 MB

Material Design implementation for Android 4.0+. Shadows, ripples, vectors, fonts, animations, widgets, rounded corners and more.

Home Page: https://androidreclib.wordpress.com/

License: Apache License 2.0

Java 100.00%

carbon's Introduction

Android Arsenal   Maven Central   Dropbox

Google+   Google+   Twitter

Carbon

Material Design implementation for Android 4.0 and newer. This is not the exact copy of the Lollipop's API and features. It's a custom implementation of the most useful things as shown in the design specification. Carbon tries to:

  • make things easier (specify cornerRadius='dp' instead of creating an xml and/or a ViewOutlineProvider)
  • make it all work and look the same on all APIs (like CheckBox's left padding)
  • really backport features (don't use gradients for shadows!)
  • fix Android's everlasting bugs (FrameLayout ignores child's padding when no gravity is set)

Features

Android 4.x
  • generated, animated shadows with elevation system
  • the touch ripple
  • rounded corners with content clipping
  • circular reveal
  • theme xml attribute
  • widget and drawable tinting
All APIs
  • simple to use xml attributes for corners and ripples
  • colored shadows
  • brightness/saturation fade
  • SVG support (with transformations, text, gradients, etc.)
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
  • ready-to-use rows and adapters for RecyclerView
  • DropDown, FloatingActionMenu, RangeSeekBar, ExpandableRecyclerView, FlowLayout, TableView

Samples

Sample app Buttons / Usage sample CheckBoxes Colored shadows Component HTML PagerTabStrip Registration form Rounded corners SeekBar and RangeSeekBar Spinner Table layout Theme

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.

carbon's People

Contributors

zieiony avatar dsteve595 avatar jakub-swierk avatar

Watchers

Tong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.