仿 iOS 圆角对话框 Android-CircleDialog
- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://git.oschina.net/contron/Android-CircleDialog
- 软件文档: https://git.oschina.net/contron/Android-CircleDialog/blob/master/README.md?dir=0&filepath=README.md&oid=94d5ada3ed5116f9f23cf9914ff6cbd372c6ba9e&sha=49c8cfd4870ff687e0a0bd6a9eed76da6da165ca
软件介绍
相比SuperDialog而言,此库支持横竖屏切换 基于DialogFragment封装,支持自定义边框圆角、背景透明度、字体大小与色值等。 列表选择框可以接收List与Arrays的数据源,详细见demo。 初衷是掌握知识点,此库不一定适合你的产品整体风格,当然能够适合你的项目最好不过,有建议和不足之处欢迎骚扰。
知识点
全代码创建shape、selector、Layout,三大Layout不用多讲,肯定都会的,主要是Drawable所使用类如下:
ShapeDrawable、RoundRectShape、GradientDrawable、ClipDrawable、LayerDrawable、StateListDrawable
效果图
引入
compile 'com.mylhyl:circleDialog:2.0.0'
eclipse 可以点击这里下载aar文件, 然后用zip解压取出jar包
使用
简单的对话框
new CircleDialog.Builder(this)
.setTitle("标题")
.setText("提示框")
.setPositive("确定", null)
.show();选择对话框
final String[] items = {"拍照", "从相册选择", "小视频"};
new CircleDialog.Builder(this)
.configDialog(new ConfigDialog() {
@Override
public void onConfig(DialogParams params) {
//增加弹出动画
params.animStyle = R.style.dialogWindowAnim;
}
})
.setTitle("标题")
.setTitleColor(Color.BLUE)
.setItems(items, new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
}
})
.setNegative("取消", null)
.configNegative(new ConfigButton() {
@Override
public void onConfig(ButtonParams params) {
//取消按钮字体颜色
params.textColor = Color.RED;
}
})
.show();
ANSI Common Lisp
Paul Graham / Prentice Hall / 1995-11-12 / USD 116.40
For use as a core text supplement in any course covering common LISP such as Artificial Intelligence or Concepts of Programming Languages. Teaching students new and more powerful ways of thinking abo......一起来看看 《ANSI Common Lisp》 这本书的介绍吧!
