项目作者: rey5137

项目描述 :
A library to bring fully animated Material Design components to pre-Lolipop Android.
高级语言: Java
项目地址: git://github.com/rey5137/material.git
创建时间: 2014-12-09T12:07:32Z
项目社区:https://github.com/rey5137/material

开源协议:Apache License 2.0

下载


Material

Download Android Arsenal

MaterialLibrary is an Open Source Android library that back-port Material Design components to pre-Lolipop Android. MaterialLibrary’s original author is Rey Pham.

Features

Demo


Get it on Google Play

Or try it here.

Getting Started

Add Gradle dependency:

  1. dependencies {
  2. implementation 'com.github.rey5137:material:1.3.1'
  3. }

AppCompat, CardView, RecyclerView library is required by Material library.

  1. dependencies {
  2. compile 'androidx.appcompat:appcompat:1.0.0'
  3. compile 'androidx.cardview:cardview:1.0.0'
  4. compile 'androidx.recyclerview:recyclerview:1.0.0'
  5. }

Now you can use any widget in com.rey.material.widget package as you wish. For styling, please view Wiki. Note that default style of widgets depend on theme of AppCompat. Here is an example:

  1. <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
  2. <!-- Customize your theme here. -->
  3. <!-- colorPrimary is used for the default action bar background -->
  4. <item name="colorPrimary">@color/colorPrimary</item>
  5. <!-- colorPrimaryDark is used for the status bar -->
  6. <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
  7. <!-- colorAccent is used as the default value for colorControlActivated
  8. which is used to tint widgets -->
  9. <item name="colorAccent">@color/colorAccent</item>
  10. <!-- You can also set colorControlNormal, colorControlActivated
  11. colorControlHighlight & colorSwitchThumbNormal. -->
  12. </style>

Donation

You can support the project and thank the author for his hard work.

Click here to lend your support to: Support Material Library project. and make a donation at pledgie.com !

PayPal

Contributing

Want to contribute? You are welcome!
Note that all pull request should go to dev branch.

Developed By

License

  1. Copyright 2015 Rey Pham.
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.