dynastyX / Carbon

Material Design implementation for Android 2.1+

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Arsenal Maven Central

Carbon

Material Design implementation for Android 2.1 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. The library also features some additional non-standard extensions, like rounded corners for layouts or a Divider view for easy divider creation.

Features

  • realtime, animated shadows
  • the touch ripple
  • an elevation system (changing z order changes view rendering order)
  • rounded corners
  • SVG rendering
  • a floating action button view
  • text appearances, sizes, colors and many more useful definitions
  • roboto and roboto condensed fonts for buttons and text fields
  • predefined animation styles and visibility change animations
  • a saturation/brightness/alpha fade for ImageView
  • Divider, StatusBar and NavigationBar drag&drop view
  • dark and light themes in standard and AppCompat versions
  • a radial transition animation
  • circular progress indicators

YouTube

Instalation

Add the following line to dependencies:

compile 'tk.zielony:carbon:0.6.0'

And these two lines to android/defaultConfig:

renderscriptTargetApi 20
renderscriptSupportModeEnabled true

In case of any problems with these check the sample app.

Sample app

FAQ

Is it stable?

Seems like it's pretty stable. I'm testing it heavily on different devices and on real projects. There are minor problems with SVG rendering and shadow generation. Also the themes aren't perfect yet. These are the issues I know about. If you have something else, please let me know.

Are you using Lollipop's API on Lollipop devices?

No. Maybe one day.

Are you thinking about uploading the library to Maven?

Done!

Can you add [put your feature name here]?

If it's possible and reasonable, sure! Just let me know.

The shadows aren't working. It says something about the RenderScript

You have to add these lines to your android build config:

renderscriptTargetApi 20
renderscriptSupportModeEnabled true

Carbon uses RenderScript for generating shadows. Gradle doesn't support renderscript very well, so it has to be done that way.

Changelog

0.6.0
  • namespace changed to just 'carbon' - less to write in xml
  • uploaded to Maven repository
  • added a sample for using the new image loading animation with Picasso
0.5.2
  • added CircularProgress and a progress sample
  • tweaked light theme a bit, now it's not only gray,
  • changed radial transition sample to show transition between a fragment and a view
  • updated Toolbar,
  • SVGView color filter bugfixing
0.5.1
  • added dark and light AppCompat themes
  • added a text appearance demo
  • added touch ripples to the main list of demos
  • changed the demo theme to light
  • added this readme file
0.5.0
  • added dark and light themes
  • cleaned up a bit
  • the library is open-sourced as Carbon

About

Material Design implementation for Android 2.1+

https://androidreclib.wordpress.com/

License:Apache License 2.0


Languages

Language:Java 100.0%