GithubHelp home page GithubHelp logo

lonelym-viewlib's Introduction

LonelyM-ViewLib

更新说明
0.0.3 - 新增可自定义alert弹窗确定,取消文字.confirm||cancel
0.0.2 - 修复DialogUpdate在些手机上有title空白
gradle
compile 'com.lonely-mushroom:viewlib:0.0.3'
maven
allprojects {  
    repositories {  
        jcenter()  
        maven { url "https://jitpack.io" }  
    }  
} 
更新js弹窗
DialogUpdateWidget.getInstance().createDialog(context, true).show();
Toast
ToastWidget.getInstance().createToast(context, "给我提示", ToastWidget.STATUS_SUCCESS).show();
等候框
DialogWidget.getInstance().createLoadingDialog(context, true);
底部选择器
SheetBean bean = new SheetBean();
bean.setTitle("测试");
List<BensEntity> list = new ArrayList<>();
list.add(new BensEntity("1"));
list.add(new BensEntity("2"));
list.add(new BensEntity("3"));
bean.setBtns(list);
SheetViewWidget.getInstance().createFragment(MainActivity.this, bean, new SheetViewWidget.SheetViewListener() {
	@Override
	public void listener(String title) {
	    ToastWidget.getInstance().createToast(context, title, ToastWidget.STATUS_SUCCESS).show();
	}
});
选择器
AlertBean alertBean = new AlertBean();
alertBean.setTitle("测试");
alertBean.setMessage("message");
alertBean.setIsJudgment(true);
AlertWidget.getInstance().createFragment(context, alertBean, new AlertWidget.AlertManagerListener() {
	@Override
	public void listener(boolean flag) {
		ToastWidget.getInstance().createToast(context, flag + "", ToastWidget.STATUS_SUCCESS).show();
    }
});

lonelym-viewlib's People

Contributors

beilo avatar

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.