Samples for the Material library by Zielony
Features the ripple touch feedback, elevation and the Roboto font.
Ready to go implementation of a round button with an icon, a ripple, and a cast shadow.
A layout used for rendering shadows. Each view with non-zero elevaion value should be placed in a ShadowLayout in order to cast shadows. Due to clipping issues on some devices this is neccessary, at least for now.
Toast's successor. Simple view used for displaying messages and simple actions.
ImageView used for rendering SVG files. Supports official SVG icons from Google, SVGs created in Illustrator and pretty much any well-formed SVG images. Internally uses the AndroidSVG library.
Two simple views for handling colored status and navigation bars on all versions of Android. On Lollipop these views set colorPrimaryDark, on KitKat change the status and navigation bar's gradients. On older versions does nothing. StatusBar should be placed at the top of each Activity and NavigationBar should be placed at the bottom.
Basic ImageView extended with most of the described features. Can use the new fade with brightness and saturation change.
The library adds several custom attributes, which can be used in xml to access material features in custom views.
Used by SVGView. Changes color of the rendered shape to the specified.
Used by SVGView. Should point to a raw resource containing an svg image.
Used by Button, FrameLayout and FloatingActionButton.
Used by Button, FrameLayout and FloatingActionButton. A View with non-zero elevation value has to be a child of a ShadowLayout instance.
Style reference used by FloatingActionButton.
Used by TextView and Button. Sets the Roboto typeface with a specified style. Can be one of the following values:
- black
- blackItalic
- bold
- boldItalic
- italic
- light
- lightItalic
- medium
- mediumItalic
- regular
- thin
- thinItalic
- condensedBold
- condensedBoldItalic
- condensedItalic
- condensedLight
- condensedLightItalic
- condensedRegular
Used by most of the views. Allows to specify an animation type to be used when setVisibility is called on that view. Can be one of the following values:
- none
- fade
- pop
- fly
- brightnessSaturationFade (only for ImageView)