PickerView

by RameshBhupathi

RameshBhupathi / PickerView

PickerView Like Ios

123 Stars 39 Forks Last release: Not found 26 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

PickerView Android Arsenal

OptionsPickerView Like Ios Three Types of Options Pickers - Single OptionPicker - Double OptionPicker - Triple OptionPicker

Screen Shot

How to Use

MyOptionsPickerView singlePicker = new MyOptionsPickerView(MainActivity.this);
        final ArrayList items = new ArrayList();
        items.add("A");
        items.add("B");
        items.add("C");
        items.add("D");
        items.add("E");
        singlePicker.setPicker(items);
        singlePicker.setTitle("Single Picker");
        singlePicker.setCyclic(false);
        singlePicker.setSelectOptions(0);
        singlePicker.setOnoptionsSelectListener(new MyOptionsPickerView.OnOptionsSelectListener() {
            @Override
            public void onOptionsSelect(int options1, int option2, int options3) {
                //  singleTVOptions.setText("Single Picker " + items.get(options1));
                Toast.makeText(MainActivity.this, "" + items.get(options1), Toast.LENGTH_SHORT).show();
                vMasker.setVisibility(View.GONE);
            }
        });

To Show The Picker

            singlePicker.show();

Dependencies

Add this to Main build.gradle ```java repositories { jcenter() maven { url 'https://bintray.com/rameshbhupathi/maven' } }

##Add this to app gradle file
```java 

compile 'com.ramesh.mypicker:pickerview:1.1'

Thanks to

Android-PickerView

License

Copyright 2016 Ramesh Bhupathi

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.