Skip to content
forked from ZieIony/Carbon

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

License

Notifications You must be signed in to change notification settings

aligamal-dev/Carbon

 
 

Repository files navigation

Android Arsenal   Maven Central   Maven Central   Dropbox

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)

What's new

  • Carbon 0.16.0 moves to androidx. There's no corresponding support version. Use 0.15.3 if needed
  • backdrop layout, banner layout
  • full support for font resources back to api 14
  • new approach to colored shadows using MaterialShapeDrawable
  • cut and rounded corners for all views

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
  • font resources
  • edge effects
All APIs
  • simple to use xml attributes for stroke, cut corners, rounded 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, BackdropLayout, Banner

Samples

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 98.4%
  • Kotlin 1.6%