http://qmuiteam.com/android/get-started/
这个链接是官方文档和教程
如果还是看不懂怎么导入的看这里
1.在app下的build.gradle里添加依赖
dependencies {
...............
...............
compile 'com.qmuiteam:qmui:1.1.3' //导入QMUI
}
2.然后在style.xml文件下将parent="QMUI"
<style name="AppTheme" parent="QMUI.Compat">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
到这一步已经导入完毕
3. 覆盖组件的默认表现
你可以通过在项目中的 theme
中用 <item name="(name)">(value)</item>
的形式来覆盖 QMUI 组件的默认表现。具体可指定的属性名请参考 @style/QMUI.Compat
中的属性。