仿MIUI10对话框系列,目前已实现对话框,输入框,列表选择框。

网友投稿 602 2022-11-05

仿MIUI10对话框系列,目前已实现对话框,输入框,列表选择框。

仿MIUI10对话框系列,目前已实现对话框,输入框,列表选择框。

简介

仿MIUI10对话框(界面,动画,功能)支持对话框,输入框,多行输入框,列表对话框,进度对话框

使用

Step 1.先在 build.gradle(Project:XXXX) 的 repositories 添加:

allprojects { repositories { ... maven { url "https://jitpack.io" } }}

Step 2. 然后在 build.gradle(Module:app) 的 dependencies 添加:

dependencies { implementation 'com.github.oyo775881:MiuiDialog:+'}

Step 3. 设置各个按钮颜色(如不设置,则使用默认色)

MiuiDialogHelper.get().setAccentColor(R.color.title);//主色MiuiDialogHelper.get().setNegativeColor(R.color.title);//取消按钮颜色MiuiDialogHelper.get().setPositiveColor(R.color.title);//确认按钮颜色MiuiDialogHelper.get().setListArrow(R.drawable.ic_miui_arrow_right);//列表选中箭头

效果

对话框

输入框

列表框

进度框

文档

对话框

输入框

多行输入框

列表框

进度框

Licenses

Copyright 2018 oyo775881Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at http://apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:JDK的下载安装
下一篇:JSP自定义标签
相关文章

 发表评论

暂时没有评论,来抢沙发吧~