• Stars
    star
    1,389
  • Rank 33,838 (Top 0.7 %)
  • Language
    Java
  • Created over 9 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

仿iOS的AlertViewController

Android Gems

Android-AlertView

仿iOS的AlertViewController 几乎完美还原iOS 的 AlertViewController ,同时支持Alert和ActionSheet模式,每一个细节都是精雕细琢,并把api封装成懒到极致模式,一行代码就可以进行弹窗.

Demo

demo是用Module方式依赖,你也可以使用gradle 依赖:

   compile 'com.bigkoo:alertview:1.0.3'

config in java code

new AlertView("上传头像", null, "取消", null,
                new String[]{"拍照", "从相册中选择"},
                this, AlertView.Style.ActionSheet, new OnItemClickListener(){
                    public void onItemClick(Object o,int position){
                        Toast.makeText(this, "点击了第" + position + "个", 
                        Toast.LENGTH_SHORT).show();
                    }
                }).show();
                
//或者builder模式创建
new AlertView.Builder().setContext(context)
                .setStyle(AlertView.Style.ActionSheet)
                .setTitle("选择操作")
                .setMessage(null)
                .setCancelText("取消")
                .setDestructive("拍照", "从相册中选择")
                .setOthers(null)
                .setOnItemClickListener(listener)
                .build()
                .show();
new AlertView("标题", "内容", null, new String[]{"确定"}, null, this, 
                AlertView.Style.Alert, null).show();

另外还支持窗口界面拓展,更多操作请下载Demo看。

More Repositories

1

Android-ConvenientBanner

Simple and convenient banner, loop viewpager with 3D effects
Java
4,777
star
2

Android-SVProgressHUD

SVProgressHUD For Android
Java
653
star
3

Android-QuickSideBar

帮助快速查阅对应分组的侧边栏
Java
632
star
4

Android-PictureTagView

仿nice图片上打标签控件
Java
612
star
5

Android-SnappingStepper

A beautiful UI control with flexible control of the number of changes.
Java
272
star
6

Android-MVVMFramework

Using Databing and Retrofit to build a fast MVVM framework
Java
176
star
7

iOS-RatingBar

iOS版的评分控件
Swift
105
star
8

iOS-ViewPagerIndicator

Paging indicator widgets,iOS版的分页指示器,可以配合UIScrollView使用完成分页控制
Swift
67
star
9

Android-SimpleView

项目常用自定义控件集合
Java
32
star
10

iOS-AlbumView

iOS的swift版相册功能,左右拨动切换图片,手势放大缩小,支持单击触发自定义事件
Swift
20
star
11

huobipro

flutter仿火币客户端
Dart
18
star
12

Android-Kata

build android project fast,这可能是最快速的android基础搭建框架,世间皆是套路
Java
17
star
13

Android-TagFlexboxLayout

基于FlexboxLayout的流式布局控件,比FlowLayout好用
Java
16
star
14

GradleDemo

通过gradle进行多渠道打包的Demo
Java
8
star
15

KataDemo-androidlite

Kata框架的Demo账房先生记账软件
Java
8
star
16

flutter_kata

Quickly build a framework for flutter application
Dart
5
star
17

iOS-GuideView

swift写的引导界面
Swift
4
star
18

AlabomBackStage

俄罗斯外贸平台Alabom的管理后台系统
Java
4
star
19

NightLife

dribbble design - NightLife for flutter parallax effect
Dart
2
star
20

NaturalHome

demo of flutter_kata
Dart
1
star