android输入框圆形,GitHub - mylhyl/Android-CircleDialog: 仿IOS圆角对话框、进度条、列表框、输入框,ad广告框,支持横竖屏切换...
Android-CircleDialog
基于DialogFragment封裝,已封裝的對話框類型有,常規對話框、列表框、輸入框、進度框;
每個對話框類型也支持自定義邊框圓角、背景透明度、字體大小與色值
初衷是掌握知識點,此庫不一定適合你的產品整體風格,當然能夠適合你的項目最好不過,有建議和不足之處歡迎騷擾
知識點
全代碼創建shape、selector、Layout,主要是Drawable所使用類如下:
ShapeDrawable、RoundRectShape、GradientDrawable、ClipDrawable、LayerDrawable、StateListDrawable
效果圖
引入
implementation 'com.mylhyl:circleDialog:5.3.7.1'
如果版本號后面有-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時按需求設置背景
v3版本開始放棄百分比適配
3.0.9開始,刷新dialog界面的方法由create改為refresh
v4版本開始,除字體大小保持原來的sp單位,偏移量px外,其它寬、高、間距、均改為了dp單位
v5版本已經適配為androidx
聯系方式
可能會因為工作忙碌原因沒有及時回復,請聯系我的個人微信號:48025211
License
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.
總結
以上是生活随笔為你收集整理的android输入框圆形,GitHub - mylhyl/Android-CircleDialog: 仿IOS圆角对话框、进度条、列表框、输入框,ad广告框,支持横竖屏切换...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 影子卫士和影子系统哪个好用_影子系统是什
- 下一篇: 自动内存管理