仿IOS圆角对话框、进度条、列表框、输入框,ad广告框,支持横竖屏切换
JCenter
服务已经宣布停止维护,对于旧版本
大家可以使用阿里云镜像引用,以后新版本
将会发布在JitPack
在项目根目录下的build.gradle
文件中加入
allprojects {
repositories {
maven { url 'https://maven.aliyun.com/repository/jcenter' }
}
}
在项目根目录下的build.gradle
文件中加入
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
DialogFragment
封装,已封装的对话框类型有,常规对话框、列表框、输入框、进度框;
每个对话框类型也支持自定义边框圆角、背景透明度、字体大小与色值全代码创建shape
、selector
、Layout
,主要是Drawable
所使用类如下:
ShapeDrawable
、RoundRectShape
、GradientDrawable
、ClipDrawable
、LayerDrawable
、StateListDrawable
implementation 'com.github.mylhyl:Android-CircleDialog:5.3.8'
如果版本号后面有-alpha,那说明最后一个版本是预览版,可能存在bug谨慎使用,稳定版则没有-alpha后缀
例如
稳定版:implementation 'com.mylhyl:circleDialog:x.x.x'
预览版:implementation 'com.mylhyl:circleDialog:x.x.x-alpha'
appcompat-v7
、cardview-v7
、recyclerview-v7
AbsBaseCircleDialog
背景为透明,自定义layout时按需求设置背景create
改为refresh
sp
单位,偏移量px
外,其它宽、高、间距、均改为了dp
单位androidx
48025211
Copyright 2017 mylhyl
Licensed 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://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed 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 and
limitations under the License.