Giter VIP home page Giter VIP logo

android-circledialog's Introduction

Android-CircleDialog

  • 基于DialogFragment封装,已封装的对话框类型有,常规对话框、列表框、输入框、进度框; 每个对话框类型也支持自定义边框圆角、背景透明度、字体大小与色值
  • 初衷是掌握知识点,此库不一定适合你的产品整体风格,当然能够适合你的项目最好不过,有建议和不足之处欢迎*扰

知识点

全代码创建shapeselectorLayout,主要是Drawable所使用类如下: ShapeDrawableRoundRectShapeGradientDrawableClipDrawableLayerDrawableStateListDrawable

效果图

引入

Download latestVersion替换为左则Download图标后面的数字

 compile 'com.mylhyl:circleDialog:latestVersion'

如果版本号后面有-alpha,那说明最后一个版本是预览版,可能存在bug谨慎使用,稳定版则没有-alpha后缀
例如
稳定版:compile 'com.mylhyl:circleDialog:x.x.x' 预览版:compile 'com.mylhyl:circleDialog:x.x.x-alpha'

下载APK体验或手机扫描下面二维码

使用

注意

  • 依赖包:appcompat-v7cardview-v7recyclerview-v7
  • 继承基类AbsBaseCircleDialog背景为透明,自定义layout时按需求设置背景
  • v3版本开始放弃百分比适配
  • 3.0.9开始,刷新dialog界面的方法由create改为refresh
  • v4版本开始,除字体大小保持原来的sp单位,偏移量px外,其它宽、高、间距、均改为了dp单位 minSdkVersion:21

未完成功能

  • popup在item中智能识别弹出位置

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.