GithubHelp home page GithubHelp logo

datepicker's Introduction

datepicker

##使用方法

 TYTimePickerView time = new TYTimePickerView(MainActivity.this, TYTimePickerView.Type.YEAR_MONTH_DAY);
            time.setTime(new Date());
            time.setCancelable(true);
            time.setOnTimeSelectListener(new TYTimePickerView.OnTimeSelectListener() {
                @Override
                public void onTimeSelect(Date date) {
                    SimpleDateFormat dateFormatter = new SimpleDateFormat("yyyy-MM-dd");
                    tvTitle.setText(dateFormatter.format(date));
                }
            });
            time.show();

TYTimePickerView有四种类型ALL, YEAR_MONTH_DAY, HOURS_MINS, MONTH_DAY_HOUR_MIN, YEAR_MONTH, 四种选择模式,年月日时分,年月日,时分,月日时分

     final List<String> list = new ArrayList<>();
        list.add("趸交");
        list.add("期交");

        final TYSingleCheckWheel2 singleCheckWheel2 = new TYSingleCheckWheel2(this);
        singleCheckWheel2.setData(list);
        singleCheckWheel2.show();
        singleCheckWheel2.setJobSelectListener2(new TYSingleCheckWheel2.OnJobSelectListener2() {
            @Override
            public void onJobSelect(int index) {
                tvProvice.setText(list.get(index));


            }
        });

TYSingleCheckWheel2 自定义Wheel的用法。

datepicker's People

Contributors

yyt231 avatar comefromcompter avatar

Watchers

James Cloos 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.