kandi background
Explore Kits

android-betterpickers | LONGER MAINTAINED ] Android library | Android library

 by   code-troopers Java Version: 3.1.0 License: No License

 by   code-troopers Java Version: 3.1.0 License: No License

Download this library from

kandi X-RAY | android-betterpickers Summary

android-betterpickers is a Java library typically used in Mobile, Android applications.,roid-betterpickers has no bugs, it has no vulnerabilities, it has build file available and it has medium support. You can download it from GitHub.
[![Maven Central](https://img.shields.io/maven-central/v/com.code-troopers.betterpickers/library.svg?style=flat)](https://repo1.maven.org/maven2/com/code-troopers/betterpickers/library/) [![API](https://img.shields.io/badge/API-9%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=9) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Android%20Betterpickers-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/118). <img src="https://raw.githubusercontent.com/code-troopers/android-betterpickers/master/sample/imagery/screenshot_calendar_date.png" width="120"> <img src="https://raw.githubusercontent.com/code-troopers/android-betterpickers/master/sample/imagery/screenshot_radial_time.png" width="120"> <img src="https://raw.githubusercontent.com/code-troopers/android-betterpickers/master/sample/imagery/screenshot_recurrence.png" width="120"> <img src="https://raw.githubusercontent.com/code-troopers/android-betterpickers/master/sample/imagery/screenshot_time_zone.png" width="120">. <img src="https://raw.githubusercontent.com/code-troopers/android-betterpickers/master/sample/imagery/screenshot_date.png" width="120"> <img src="https://raw.githubusercontent.com/code-troopers/android-betterpickers/master/sample/imagery/screenshot_expiration.png" width="120"> <img src="https://raw.githubusercontent.com/code-troopers/android-betterpickers/master/sample/imagery/screenshot_hms.png" width="120"> <img src="https://raw.githubusercontent.com/code-troopers/android-betterpickers/master/sample/imagery/screenshot_number.png" width="120"> <img src="https://raw.githubusercontent.com/code-troopers/android-betterpickers/master/sample/imagery/screenshot_time.png" width="120">. DialogFragments modeled after the AOSP Clock and Calendar apps to improve UX for picking time, date, numbers, and other things. Try out the sample application on [Google Play][6]. <a href="https://play.google.com/store/apps/details?id=com.codetroopers.betterpickersapp"> <img alt="BetterPickers Samples on Google Play" src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png" width="140" /> </a>.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • android-betterpickers has a medium active ecosystem.
  • It has 2718 star(s) with 583 fork(s). There are 138 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 99 open issues and 165 have been closed. On average issues are closed in 98 days. There are 13 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of android-betterpickers is 3.1.0
This Library - Support
Best in #Android
Average in #Android
This Library - Support
Best in #Android
Average in #Android

quality kandi Quality

  • android-betterpickers has 0 bugs and 0 code smells.
This Library - Quality
Best in #Android
Average in #Android
This Library - Quality
Best in #Android
Average in #Android

securitySecurity

  • android-betterpickers has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • android-betterpickers code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
This Library - Security
Best in #Android
Average in #Android
This Library - Security
Best in #Android
Average in #Android

license License

  • android-betterpickers does not have a standard license declared.
  • Check the repository for any license declaration and review the terms closely.
  • Without a license, all rights are reserved, and you cannot use the library in your applications.
This Library - License
Best in #Android
Average in #Android
This Library - License
Best in #Android
Average in #Android

buildReuse

  • android-betterpickers releases are available to install and integrate.
  • Build file is available. You can build the component from source.
  • Installation instructions are not available. Examples and code snippets are available.
  • android-betterpickers saves you 10543 person hours of effort in developing the same functionality from scratch.
  • It has 21416 lines of code, 1097 functions and 276 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
This Library - Reuse
Best in #Android
Average in #Android
This Library - Reuse
Best in #Android
Average in #Android
Top functions reviewed by kandi - BETA

kandi has reviewed android-betterpickers and discovered the below as its top functions. This is intended to give you an instant insight into android-betterpickers implemented functionality, and help decide if they suit your requirements.

  • Loads a set of time zone IDs from the back - history file .
    • Called when a touch event occurs .
      • Updates the numeric keys .
        • Parses the recurrences string .
          • Generate legal times tree .
            • Copies an EventRecurrence object to a model .
              • Get repeat string .
                • Returns a string representation of this time zone .
                  • Returns the view which is created .
                    • Called when a time zone is set .

                      Get all kandi verified functions for this library.

                      Get all kandi verified functions for this library.

                      android-betterpickers Key Features

                      [NO LONGER MAINTAINED] Android library for better Picker DialogFragments

                      Gradle

                      copy iconCopydownload iconDownload
                      compile 'com.code-troopers.betterpickers:library:3.1.0'

                      Maven

                      copy iconCopydownload iconDownload
                      &lt;dependency&gt;
                        &lt;groupId&gt;com.code-troopers.betterpickers&lt;/groupId&gt;
                        &lt;artifactId&gt;library&lt;/artifactId&gt;
                        &lt;version&gt;3.1.0&lt;/version&gt;
                        &lt;type&gt;aar&lt;/type&gt;
                      &lt;/dependency&gt;

                      Calendar Date Picker

                      copy iconCopydownload iconDownload
                      button.setOnClickListener(new View.OnClickListener() {
                          @Override
                          public void onClick(View v) {
                              CalendarDatePickerDialogFragment cdp = new CalendarDatePickerDialogFragment()
                                      .setOnDateSetListener(SampleCalendarDateBasicUsage.this)
                                      .setFirstDayOfWeek(Calendar.SUNDAY)
                                      .setPreselectedDate(towDaysAgo.getYear(), towDaysAgo.getMonthOfYear() - 1, towDaysAgo.getDayOfMonth())
                                      .setDateRange(minDate, null)
                                      .setDoneText("Yay")
                                      .setCancelText("Nop")
                                      .setThemeDark(true);
                              cdp.show(getSupportFragmentManager(), FRAG_TAG_DATE_PICKER);
                          }
                      });

                      Radial Time Picker

                      copy iconCopydownload iconDownload
                      button.setOnClickListener(new View.OnClickListener() {
                          @Override
                          public void onClick(View v) {
                              RadialTimePickerDialogFragment rtpd = new RadialTimePickerDialogFragment()
                                      .setOnTimeSetListener(SampleRadialTimeBasicUsage.this)
                                      .setStartTime(10, 10)
                                      .setDoneText("Yay")
                                      .setCancelText("Nop")
                                      .setThemeDark(true);
                              rtpd.show(getSupportFragmentManager(), FRAG_TAG_TIME_PICKER);
                          }
                      });

                      Recurrence Picker

                      copy iconCopydownload iconDownload
                      button.setOnClickListener(new View.OnClickListener() {
                          @Override
                          public void onClick(View v) {
                              FragmentManager fm = getSupportFragmentManager();
                              Bundle bundle = new Bundle();
                              Time time = new Time();
                              time.setToNow();
                              bundle.putLong(RecurrencePickerDialogFragment.BUNDLE_START_TIME_MILLIS, time.toMillis(false));
                              bundle.putString(RecurrencePickerDialogFragment.BUNDLE_TIME_ZONE, time.timezone);
                              bundle.putString(RecurrencePickerDialogFragment.BUNDLE_RRULE, mRrule);
                              bundle.putBoolean(RecurrencePickerDialogFragment.BUNDLE_HIDE_SWITCH_BUTTON, true);
                      
                              RecurrencePickerDialogFragment rpd = new RecurrencePickerDialogFragment();
                              rpd.setArguments(bundle);
                              rpd.setOnRecurrenceSetListener(SampleRecurrenceBasicUsage.this);
                              rpd.show(fm, FRAG_TAG_RECUR_PICKER);
                          }
                      });

                      Timezone Picker

                      copy iconCopydownload iconDownload
                      button.setOnClickListener(new View.OnClickListener() {
                          @Override
                          public void onClick(View v) {
                              FragmentManager fm = getSupportFragmentManager();
                              Bundle bundle = new Bundle();
                              Time time = new Time();
                              time.setToNow();
                              bundle.putLong(TimeZonePickerDialogFragment.BUNDLE_START_TIME_MILLIS, time.toMillis(false));
                              bundle.putString(TimeZonePickerDialogFragment.BUNDLE_TIME_ZONE, time.timezone);
                              bundle.putString(RecurrencePickerDialogFragment.BUNDLE_RRULE, mRrule);
                      
                              TimeZonePickerDialogFragment tzpd = new TimeZonePickerDialogFragment();
                              tzpd.setArguments(bundle);
                              tzpd.setOnTimeZoneSetListener(SampleTimeZoneBasicUsage.this);
                              tzpd.show(fm, FRAG_TAG_TIME_ZONE_PICKER);
                          }
                      });

                      Date Picker

                      copy iconCopydownload iconDownload
                      button.setOnClickListener(new View.OnClickListener() {
                          @Override
                          public void onClick(View v) {
                              DatePickerBuilder dpb = new DatePickerBuilder()
                                      .setFragmentManager(getSupportFragmentManager())
                                      .setStyleResId(R.style.BetterPickersDialogFragment)
                                      .setYearOptional(true);
                              dpb.show();
                          }
                      });

                      Expiration Picker

                      copy iconCopydownload iconDownload
                      button.setOnClickListener(new View.OnClickListener() {
                          @Override
                          public void onClick(View v) {
                              ExpirationPickerBuilder epb = new ExpirationPickerBuilder()
                                        .setFragmentManager(getSupportFragmentManager())
                                        .setStyleResId(R.style.BetterPickersDialogFragment)
                                        .setMinYear(2000);
                              epb.show();
                          }
                      });

                      HMS Picker

                      copy iconCopydownload iconDownload
                      button.setOnClickListener(new View.OnClickListener() {
                          @Override
                          public void onClick(View v) {
                              HmsPickerBuilder hpb = new HmsPickerBuilder()
                                      .setFragmentManager(getSupportFragmentManager())
                                      .setStyleResId(R.style.BetterPickersDialogFragment);
                              hpb.show();
                          }
                      });

                      Number Picker

                      copy iconCopydownload iconDownload
                      button.setOnClickListener(new View.OnClickListener() {
                          @Override
                          public void onClick(View v) {
                              NumberPickerBuilder npb = new NumberPickerBuilder()
                                      .setFragmentManager(getSupportFragmentManager())
                                      .setStyleResId(R.style.BetterPickersDialogFragment)
                                      .setLabelText("LBS.");
                              npb.show();
                      }
                      });

                      Time Picker

                      copy iconCopydownload iconDownload
                      button.setOnClickListener(new View.OnClickListener() {
                          @Override
                          public void onClick(View v) {
                              TimePickerBuilder tpb = new TimePickerBuilder()
                                      .setFragmentManager(getSupportFragmentManager())
                                      .setStyleResId(R.style.BetterPickersDialogFragment);
                              tpb.show();
                          }
                      });

                      Calendar Date Picker / Radial Time Picker

                      copy iconCopydownload iconDownload
                      ```xml
                      &lt;style name="MyCustomBetterPickersDialogs" parent="BetterPickersRadialTimePickerDialog.PrimaryColor"&gt;
                          &lt;item name="bpPreHeaderBackgroundColor"&gt;@color/holo_red_dark&lt;/item&gt;
                          &lt;item name="bpHeaderBackgroundColor"&gt;@color/holo_red_light&lt;/item&gt;
                          &lt;item name="bpHeaderSelectedTextColor"&gt;@color/holo_orange_dark&lt;/item&gt;
                          &lt;item name="bpHeaderUnselectedTextColor"&gt;@android:color/white&lt;/item&gt;

                      Date Picker / Expiration Picker / HMS Picker / Number Picker / Time Picker

                      copy iconCopydownload iconDownload
                      ```xml
                      &lt;style name="MyCustomBetterPickerTheme"&gt;
                          &lt;item name="bpDialogBackground"&gt;@drawable/custom_dialog_background&lt;/item&gt;
                          &lt;item name="bpTextColor"&gt;@color/custom_text_color&lt;/item&gt;
                          &lt;item name="bpDeleteIcon"&gt;@drawable/ic_backspace_custom&lt;/item&gt;
                          &lt;item name="bpCheckIcon"&gt;@drawable/ic_check_custom&lt;/item&gt;
                          &lt;item name="bpKeyBackground"&gt;@drawable/key_background_custom&lt;/item&gt;
                          &lt;item name="bpButtonBackground"&gt;@drawable/button_background_custom&lt;/item&gt;
                          &lt;item name="bpDividerColor"&gt;@color/custom_divider_color&lt;/item&gt;
                          &lt;item name="bpKeyboardIndicatorColor"&gt;@color/custom_keyboard_indicator_color&lt;/item&gt;
                      &lt;/style&gt;
                      ```

                      License

                      copy iconCopydownload iconDownload
                      Copyright 2013 Derek Brameyer, Code-Troopers

                      How to get the return of this method

                      copy iconCopydownload iconDownload
                      public class Inflate{
                      
                          private static final String FRAG_TAG_DATE_PICKER = "fragment_date_picker_name";
                      
                          public void piker(FragmentManager supportFragmentManager, final TextView textView){
                              CalendarDatePickerDialogFragment cdp = new CalendarDatePickerDialogFragment();
                                      cdp.setOnDateSetListener(new CalendarDatePickerDialogFragment.OnDateSetListener() {
                                          @Override
                                          public void onDateSet(CalendarDatePickerDialogFragment dialog, int year, int monthOfYear, int dayOfMonth) {
                                              String data = year + "/" + monthOfYear + "/" + dayOfMonth;                 //After collecting the date I call the method in MainActivity
                                              MainActivity.setData(data, textView);
                                          }
                                      });
                      
                              cdp.show(supportFragmentManager, FRAG_TAG_DATE_PICKER);
                          }
                      }
                      
                      Inflate inflate = new Inflate();
                      tes.setOnClickListener(new View.OnClickListener() {
                                  @Override
                                  public void onClick(View v) {
                                   //The date sets the value in the TextView, so I step to call the method
                                     inflate.piker(getSupportFragmentManager(), tes);
                                  }
                              });
                      
                      public static void setData(String data, TextView textView) {
                              textView.setText(data);
                      }
                      
                      public class Inflate{
                      
                          private static final String FRAG_TAG_DATE_PICKER = "fragment_date_picker_name";
                      
                          public void piker(FragmentManager supportFragmentManager, final TextView textView){
                              CalendarDatePickerDialogFragment cdp = new CalendarDatePickerDialogFragment();
                                      cdp.setOnDateSetListener(new CalendarDatePickerDialogFragment.OnDateSetListener() {
                                          @Override
                                          public void onDateSet(CalendarDatePickerDialogFragment dialog, int year, int monthOfYear, int dayOfMonth) {
                                              String data = year + "/" + monthOfYear + "/" + dayOfMonth;                 //After collecting the date I call the method in MainActivity
                                              MainActivity.setData(data, textView);
                                          }
                                      });
                      
                              cdp.show(supportFragmentManager, FRAG_TAG_DATE_PICKER);
                          }
                      }
                      
                      Inflate inflate = new Inflate();
                      tes.setOnClickListener(new View.OnClickListener() {
                                  @Override
                                  public void onClick(View v) {
                                   //The date sets the value in the TextView, so I step to call the method
                                     inflate.piker(getSupportFragmentManager(), tes);
                                  }
                              });
                      
                      public static void setData(String data, TextView textView) {
                              textView.setText(data);
                      }
                      
                      public class Inflate{
                      
                          private static final String FRAG_TAG_DATE_PICKER = "fragment_date_picker_name";
                      
                          public void piker(FragmentManager supportFragmentManager, final TextView textView){
                              CalendarDatePickerDialogFragment cdp = new CalendarDatePickerDialogFragment();
                                      cdp.setOnDateSetListener(new CalendarDatePickerDialogFragment.OnDateSetListener() {
                                          @Override
                                          public void onDateSet(CalendarDatePickerDialogFragment dialog, int year, int monthOfYear, int dayOfMonth) {
                                              String data = year + "/" + monthOfYear + "/" + dayOfMonth;                 //After collecting the date I call the method in MainActivity
                                              MainActivity.setData(data, textView);
                                          }
                                      });
                      
                              cdp.show(supportFragmentManager, FRAG_TAG_DATE_PICKER);
                          }
                      }
                      
                      Inflate inflate = new Inflate();
                      tes.setOnClickListener(new View.OnClickListener() {
                                  @Override
                                  public void onClick(View v) {
                                   //The date sets the value in the TextView, so I step to call the method
                                     inflate.piker(getSupportFragmentManager(), tes);
                                  }
                              });
                      
                      public static void setData(String data, TextView textView) {
                              textView.setText(data);
                      }
                      

                      Community Discussions

                      Trending Discussions on android-betterpickers
                      • How to get the return of this method
                      Trending Discussions on android-betterpickers

                      QUESTION

                      How to get the return of this method

                      Asked 2018-Apr-05 at 17:30

                      I'm using the lib betterpickers, I tried to make a class to get its information in OOP form, but the method does not have a return, it's a void, is there a way to get this return?

                      public class Inflate implements CalendarDatePickerDialogFragment.OnDateSetListener{
                      
                      private static final String FRAG_TAG_DATE_PICKER = "fragment_date_picker_name";
                      
                      public void piker(FragmentManager supportFragmentManager){
                          CalendarDatePickerDialogFragment cdp = new CalendarDatePickerDialogFragment()
                                  .setOnDateSetListener(this);
                          cdp.show(supportFragmentManager, FRAG_TAG_DATE_PICKER);
                      }
                      
                      @Override
                      public void onDateSet(CalendarDatePickerDialogFragment dialog, int year, int monthOfYear, int dayOfMonth) {
                         //This is the method
                      }
                      }
                      

                      I call it in MainActivity like this:

                      Inflate inflate = new Inflate();
                      
                      tes.setOnClickListener(new View.OnClickListener() {
                              @Override
                              public void onClick(View v) {
                                 inflate.piker(getSupportFragmentManager());
                              }
                          });
                      

                      I've already tried something like onDateSet calling another method:

                      @Override
                      public void onDateSet(CalendarDatePickerDialogFragment dialog, int year, int monthOfYear, int dayOfMonth) {
                          getData(year + "/" + monthOfYear + "/" + dayOfMonth);
                      }
                      
                      public String getData(String data){
                          return data;
                      }
                      

                      But how would I get this feedback if I'm calling the piker? That's the problem, is there any way to do it? Because in this activity I have 4 places where a date must be defined, if for each one I have to do a different method the code gets huge.

                      Documentation: https://github.com/code-troopers/android-betterpickers

                      ANSWER

                      Answered 2018-Apr-05 at 17:30

                      Finally I did, I changed the method, I did like this:

                      public class Inflate{
                      
                          private static final String FRAG_TAG_DATE_PICKER = "fragment_date_picker_name";
                      
                          public void piker(FragmentManager supportFragmentManager, final TextView textView){
                              CalendarDatePickerDialogFragment cdp = new CalendarDatePickerDialogFragment();
                                      cdp.setOnDateSetListener(new CalendarDatePickerDialogFragment.OnDateSetListener() {
                                          @Override
                                          public void onDateSet(CalendarDatePickerDialogFragment dialog, int year, int monthOfYear, int dayOfMonth) {
                                              String data = year + "/" + monthOfYear + "/" + dayOfMonth;                 //After collecting the date I call the method in MainActivity
                                              MainActivity.setData(data, textView);
                                          }
                                      });
                      
                              cdp.show(supportFragmentManager, FRAG_TAG_DATE_PICKER);
                          }
                      }
                      

                      I call it this:

                      Inflate inflate = new Inflate();
                      tes.setOnClickListener(new View.OnClickListener() {
                                  @Override
                                  public void onClick(View v) {
                                   //The date sets the value in the TextView, so I step to call the method
                                     inflate.piker(getSupportFragmentManager(), tes);
                                  }
                              });
                      

                      In MainActivity, the method receives and assigns the value to the TextView:

                      public static void setData(String data, TextView textView) {
                              textView.setText(data);
                      }
                      

                      Thanks @ADM

                      Source https://stackoverflow.com/questions/49675744

                      Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                      Vulnerabilities

                      No vulnerabilities reported

                      Install android-betterpickers

                      You can download it from GitHub.
                      You can use android-betterpickers like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the android-betterpickers component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

                      Support

                      For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

                      DOWNLOAD this Library from

                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      Explore Related Topics

                      Share this Page

                      share link
                      Consider Popular Android Libraries
                      Try Top Libraries by code-troopers
                      Compare Android Libraries with Highest Support
                      Compare Android Libraries with Highest Quality
                      Compare Android Libraries with Highest Security
                      Compare Android Libraries with Permissive License
                      Compare Android Libraries with Highest Reuse
                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      • © 2022 Open Weaver Inc.