Coder Social home page Coder Social logo

ispinner's Introduction

ISpinner

996.icu 珍惜生命,拒绝996

一个二级下拉菜单栏

这是一个封装完整的二级菜单栏View

String[] parentContent = {"父级一","父级二","父级三"};
    String[][] childContent = {{"子级1_1","子级1_2","子级1_3"},{"子级2_1","子级2_2","子级2_3"},{"子级3_1","子级3_2","子级3_3"}};
    ISpinnerConfig mISpinnerConfig = new ISpinnerConfig(this,mDisplayMetrics.widthPixels,500)
            .addParentContent(parentContent)
            .addChildContent(childContent)
            .addParentLayout(R.layout.text_health_spinner_item)
            .addChildLayout(R.layout.text_health_spinner_item)
            .addSelectorBg(getDrawable(R.drawable.ispinner_item_selector_bg))
            .addSelectorTextColor(R.color.colorLightOrange)
            .addNotSelectorTextColor(R.color.colorBlack1)
            .addNotSelectorBg(getDrawable(R.drawable.ispinner_item_no_selector_bg))
            .addExternalBackground(getDrawable(R.drawable.ispinner_bg))
            .addListener(new ISpinnerUtil.ISpinnerListener() {
                @Override
                public void onChildItemClick(int parentPosition, String parentText, int childPosition, String childText) {

                }

                @Override
                public void onShow() {

                }

                @Override
                public void onDismiss() {

                }
            })
            .build();
    mISpinnerConfig.show(mText);
    //mISpinnerConfig.dismiss();

ispinner's People

Contributors

z3880341 avatar

Stargazers

天譩-倾仙 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.