Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use double picker #8

Closed
faizan321 opened this issue Dec 17, 2016 · 1 comment
Closed

How to use double picker #8

faizan321 opened this issue Dec 17, 2016 · 1 comment

Comments

@faizan321
Copy link

How to use double picker?

@RameshBhupathi
Copy link
Owner

` //Two Options PickerView
twoPicker = new MyOptionsPickerView(MainActivity.this);
final ArrayList twoItemsOptions1 = new ArrayList();
twoItemsOptions1.add("AA");
twoItemsOptions1.add("BB");
twoItemsOptions1.add("CC");
twoItemsOptions1.add("DD");
twoItemsOptions1.add("EE");
final ArrayList twoItemsOptions2 = new ArrayList();
twoItemsOptions2.add("00");
twoItemsOptions2.add("11");
twoItemsOptions2.add("22");
twoItemsOptions2.add("33");
twoItemsOptions2.add("44");

    twoPicker.setPicker(twoItemsOptions1, twoItemsOptions2, false);
    twoPicker.setTitle("Picker");
    twoPicker.setCyclic(false, false, false);
    twoPicker.setSelectOptions(0, 0);
    twoPicker.setOnoptionsSelectListener(new MyOptionsPickerView.OnOptionsSelectListener() {
        @Override
        public void onOptionsSelect(int options1, int option2, int options3) {
            // twoTVOptions.setText("Two Options " + twoItemsOptions1.get(options1) + " " + twoItemsOptions2.get(option2));
            vMasker.setVisibility(View.GONE);
            Toast.makeText(MainActivity.this, "" + twoItemsOptions1.get(options1) + " " + twoItemsOptions2.get(option2), Toast.LENGTH_SHORT).show();
        }
    });`

Check Sample app u can find easily

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants