在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):rey5137/material开源软件地址(OpenSource Url):https://github.com/rey5137/material开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):MaterialMaterialLibrary is an Open Source Android library that back-port Material Design components to pre-Lolipop Android. MaterialLibrary's original author is Rey Pham. FeaturesDemoOr try it here. Getting StartedAdd Gradle dependency: dependencies {
implementation 'com.github.rey5137:material:1.3.1'
} AppCompat, CardView, RecyclerView library is required by Material library. dependencies {
compile 'androidx.appcompat:appcompat:1.0.0'
compile 'androidx.cardview:cardview:1.0.0'
compile 'androidx.recyclerview:recyclerview:1.0.0'
} 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: <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">@color/colorPrimary</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<!-- colorAccent is used as the default value for colorControlActivated
which is used to tint widgets -->
<item name="colorAccent">@color/colorAccent</item>
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight & colorSwitchThumbNormal. -->
</style> DonationYou can support the project and thank the author for his hard work. PayPal ContributingWant to contribute? You are welcome!
Note that all pull request should go to Developed By
License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论