Git Product home page Git Product logo

materialdaypicker's Introduction

MaterialDayPicker

CircleCI Download

Inspired by the day picker in the builtin Android clock app.

Note: I'm not actively working on new features for this library. I'm only addressing critical bugs. With that being said contributions for new features are more than welcome and I am available to review pull requests. See contributing.md if you're interested in contributing.

Normal Usage Localized Usage Dark Mode Usage
Default Usage Localized Usage Dark Mode Usage

Features

  • ๐ŸŽจ Customizable theming
  • โœ… Easy to use API/hooks
  • ๐ŸŒŽ Fully localized
  • ๐Ÿ‘ป Supports dark mode

What's New: Version 0.7.4 - Better Configuration + Bug fixes

  • You can now manually override the first day of the week shown in the picker by using the newly added firstDayOfWeek property

Changes from 0.7.3

  • Upgraded MaterialDayPicker to target API 30 and upgraded its AndroidX dependencies

Changes from 0.7.2

Bug fixes

  • Fixes a bug when using android gradle plugin 3.6.1 that would cause building to fail due to not being able to find the selectionMode attribute.

Changes from 0.7.1

Bug fixes

  • Fixes an issue where calling setSelectedDays would cause selected days to flash off and on.

Changes from 0.7.0

Configuration Improvements

  • You can now enable/disable days from being selected using enableDay/disableDay methods. See more below.
  • You can now set the selection mode via xml by using the app:selectionMode attribute.

Download the latest version by adding the following to your project's build.gradle file:

dependencies {
    implementation 'ca.antonious:materialdaypicker:0.7.4'
}

Using MaterialDayPicker in your App

You can just drop the view into your existing xml:

<ca.antonious.materialdaypicker.MaterialDayPicker
    android:id="@+id/day_picker"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/>

You can get the currently selected days by using:

val selectedDays = materialDayPicker.selectedDays
// returns [MaterialDayPicker.Weekday.TUESDAY, MaterialDayPicker.Weekday.FRIDAY]

You can set the selected days by doing:

val daysToSelect = listOf(MaterialDayPicker.Weekday.TUESDAY, MaterialDayPicker.Weekday.FRIDAY)
materialDayPicker.setSelectedDays(daysToSelect)

If you want to only allow one day to be selected at a time you can do:

materialDayPicker.selectionMode = SingleSelectionMode.create()

This can also be set via xml using the selectionMode attribute:

<ca.antonious.materialdaypicker.MaterialDayPicker
    ...
    app:selectionMode="ca.antonious.materialdaypicker.SingleSelectionMode"/>

You can enable/disable days using the following methods. Note if you disable a day when it's selected it cannot be deselected:

materialDayPicker.enableDay(MaterialDayPicker.Weekday.Monday)
materialDayPicker.disableDay(MaterialDayPicker.Weekday.Monday)
materialDayPicker.setDayEnable(MaterialDayPicker.Weekday.Monday, isEnabled = false)

If you want to listen to whenever the day selection is changed you can use:

materialDayPicker.setDaySelectionChangedListener { selectedDays ->
    // handle selection change
}

If you need to know when a specific day is selected/deselected you can use:

materialDayPicker.setDayPressedListener { weekday, isSelected ->
    // handle weekday selection
}

Customizing MaterialDayPicker for your App

You can override these colors to change how MaterialDayPicker looks. You can also update these values in your night color resources directory to update how MaterialDayPicker looks in dark mode:

<color name="dayPressed">@color/colorPrimaryDark</color>
<color name="daySelected">@color/colorPrimary</color>
<color name="daySelectedTextColor">@android:color/white</color>
<color name="dayDeselected">#FAFAFA</color>
<color name="dayDeselectedTextColor">@android:color/black</color>

<!-- Customizing colors for disabled days-->
<color name="daySelectedAndDisabled">#43444F</color>
<color name="daySelectedAndDisabledTextColor">@color/daySelectedTextColor</color>
<color name="dayDeselectedAndDisabled">@color/dayDeselected</color>
<color name="dayDeselectedAndDisabledTextColor">@android:color/darker_gray</color>

If you don't want to use the device's current locale you can override it by doing:

materialDayPicker.locale = Locale.ENGLISH // or any other locale

If you want to specify the first day of the week explicitly:

materialDayPicker.firstDayOfWeek = MaterialDayPicker.Weekday.MONDAY // or any other day

License

MIT License

Copyright (c) 2017 George Antonious

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

materialdaypicker's People

Contributors

gantonious avatar sndnv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

materialdaypicker's Issues

Possible to add selectionMode in the xml to the widget?

I'm not seeing anything that lets me set the selectionMode in the layout file, only programmatically. Also, there's setOnDayPressedListener where I can pass this by implementing the OnDayPressedListener interface in my activity/fragment. Should be easy to add both, make my code look 3% nicer :D, thanks for the library btw.

Improve colour customization

We should be able to customize the colour of text when selected/deselected.

We should also rely on the app primary colour to provide default values to the day picker

Add enable or disabled touch mode or add busy mode with an icon

After selected a day, we may need to add a network request that work asynchronously to pull some data from database for selected day. So we have to wait some time to load. Suppose, If user can again select another day in that period in single mode, we can't properly predict which day select previously or which data actually come, unless manually checking with some variable. It will be smart, if we manually disable selection for some time or a loading an icon and enable again manually when task was complete. Currently system setEnabled does not work.

Add support for custom first day of week

Is your feature request related to a problem? Please describe.
I want to be able to allow users to select the first day of the week, regardless of the device's locale.

Describe the solution you'd like
MaterialDayPicker.firstDayOfWeek is already available but it is private; it should be made public and it should correctly update the picker when a new value is set.

Describe alternatives you've considered
I tried to set the value directly using reflection, however, the picker did not update as expected.

Additional context
n/a

Support Dark Mode

Define default night colour resources to provide a dark mode experience out of the box.

Deploy to Maven Central

Android Studio has started to deprecate Jcenter as it will be shut down soon. Maven central is the recommended repository to switch to.

Picked days colours

  • Library Version 0.7.2
  • Android API Version: 29
  • Java

When I edit de colours that you specify ("dayPressed", "daySelected"...), there are some devices where the colours change correctly, but, for example, in my OP6, they are still in a kind of dark mode, because when I select a day, the background becomes white, and when I deselect them, it becomes black.

My colors.xml looks like this:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="colorPrimary">#446B98</color>
    <color name="colorPrimaryDark">#2C3F5D</color>
    <color name="colorAccent">#000028</color>
    <color name="background">#FFFFFF</color>

    <color name="dayPressed">@color/colorPrimaryDark</color>
    <color name="daySelected">#FF2C3F5D</color>
    <color name="daySelectedTextColor">@android:color/white</color>
    <color name="dayDeselected">#FAFAFA</color>
    <color name="dayDeselectedTextColor">@android:color/black</color>
</resources>

How to get the selected/unselected days

In your example you have the following:

public class MainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        MaterialDayPicker materialDayPicker = findViewById(R.id.dayPicker);
        materialDayPicker.setDaySelectionChangedListener(new MaterialDayPicker.DaySelectionChangedListener() {
            @Override
            public void onDaySelectionChanged(List<MaterialDayPicker.Weekday> selectedDays) {
                Toast.makeText(MainActivity.this, "Days Changed", Toast.LENGTH_SHORT).show();
            }
        });

        materialDayPicker.setSelectedDays(MaterialDayPicker.Weekday.MONDAY);
    }
}

BUT, you don't actually show how we can check what day was selected?

I did try:

if (daysSelected.contains("MaterialDayPicker.Weekday.TUESDAY")) {
    Toast.makeText(getContext(), "TUESDAY", Toast.LENGTH_SHORT).show();
}

But obviously I can't pass a String value.

I really would like to use this in my project, can you please let me know how this is possible?

BUG NEEDED TO FIX ASAP!

Usage Information (please complete the following information):

  • Library Version [ca.antonious:materialdaypicker:0.7.1]
  • Android API Version: [ compileSdkVersion 29
    buildToolsVersion "29.0.2" ]

Describe the bug
The lib is not working after the Android Studio Update Version - Android Studio 3.6.1
ADDED A LOG.txt and A Screen Shot File (Please Watch)

To Reproduce
Update the Android Studio to Android Studio 3.6.1 and Use the implantation on build:app -> "implementation 'ca.antonious:materialdaypicker:0.7.1"

Expected behavior
It should not raise the problem Resource not found while building the application.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Run Lint on CI

  • Add ktlint plugin to the project
  • Add build step on CI to run lint on entire project

crash with Error inflating class ca.antonious.materialdaypicker.MaterialDayPicker

Usage Information (please complete the following information):

  • Library Version 0.7.2
  • Android API Version: API 30

Describe the bug
Error inflating class ca.antonious.materialdaypicker.MaterialDayPicker

    java.lang.NoSuchMethodException: android.graphics.FontFamily.<init> []
        at java.lang.Class.getConstructor0(Class.java:2332)
        at java.lang.Class.getConstructor(Class.java:1728)
        at androidx.core.graphics.TypefaceCompatApi26Impl.obtainFontFamilyCtor(TypefaceCompatApi26Impl.java:321)
        at androidx.core.graphics.TypefaceCompatApi26Impl.<init>(TypefaceCompatApi26Impl.java:84)
        at androidx.core.graphics.TypefaceCompatApi28Impl.<init>(TypefaceCompatApi28Impl.java:36)
        at androidx.core.graphics.TypefaceCompat.<clinit>(TypefaceCompat.java:47)
        at androidx.core.graphics.TypefaceCompat.create(TypefaceCompat.java:190)
        at androidx.appcompat.widget.AppCompatTextView.setTypeface(AppCompatTextView.java:705)
        at android.widget.TextView.resolveStyleAndSetTypeface(TextView.java:2183)
        at android.widget.TextView.setTypefaceFromAttrs(TextView.java:2154)
        at android.widget.TextView.applyTextAppearance(TextView.java:4105)
        at android.widget.TextView.<init>(TextView.java:1630)
        at android.widget.TextView.<init>(TextView.java:990)
        at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:99)
        at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:95)
        at androidx.appcompat.app.AppCompatViewInflater.createTextView(AppCompatViewInflater.java:182)
        at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
        at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1407)
        at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1457)
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater$WrapperFactory2ViewCreator.onCreateView(-ViewPumpLayoutInflater.kt:378)
        at io.github.inflationx.viewpump.internal.-FallbackViewCreationInterceptor.intercept(-FallbackViewCreationInterceptor.kt:14)
        at io.github.inflationx.viewpump.internal.-InterceptorChain.proceed(-InterceptorChain.kt:30)
        at io.github.inflationx.calligraphy3.CalligraphyInterceptor.intercept(CalligraphyInterceptor.java:18)
        at io.github.inflationx.viewpump.internal.-InterceptorChain.proceed(-InterceptorChain.kt:30)
        at io.github.inflationx.viewpump.ViewPump.inflate(ViewPump.kt:36)
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater$WrapperFactory2.onCreateView(-ViewPumpLayoutInflater.kt:358)
        at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1059)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:995)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:959)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:1121)
        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:680)
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate(-ViewPumpLayoutInflater.kt:57)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate(-ViewPumpLayoutInflater.kt:48)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:479)
        at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)
        at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)
        at com.bazaar.activities.ViewVideoOrImageActivity.onCreate(ViewVideoOrImageActivity.java:54)
        at android.app.Activity.performCreate(Activity.java:7995)
        at android.app.Activity.performCreate(Activity.java:7979)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
2020-08-10 12:25:42.178 5584-5584/com.bazaar.sa E/TypefaceCompatApi26Impl:     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
2020-08-10 12:27:42.160 5584-5584/com.bazaar.sa E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.bazaar.sa, PID: 5584
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bazaar.sa/com.bazaar.activities.RegMatketActivity}: android.view.InflateException: Binary XML file line #601 in com.bazaar.sa:layout/activity_reg_matket: Binary XML file line #601 in com.bazaar.sa:layout/activity_reg_matket: Error inflating class ca.antonious.materialdaypicker.MaterialDayPicker
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
     Caused by: android.view.InflateException: Binary XML file line #601 in com.bazaar.sa:layout/activity_reg_matket: Binary XML file line #601 in com.bazaar.sa:layout/activity_reg_matket: Error inflating class ca.antonious.materialdaypicker.MaterialDayPicker
     Caused by: android.view.InflateException: Binary XML file line #601 in com.bazaar.sa:layout/activity_reg_matket: Error inflating class ca.antonious.materialdaypicker.MaterialDayPicker
     Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Constructor.newInstance0(Native Method)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
        at android.view.LayoutInflater.createView(LayoutInflater.java:852)
        at android.view.LayoutInflater.createView(LayoutInflater.java:774)
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.createCustomViewInternal(-ViewPumpLayoutInflater.kt:209)
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.access$createCustomViewInternal(-ViewPumpLayoutInflater.kt:19)
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater$PrivateWrapperFactory2ViewCreator.onCreateView(-ViewPumpLayoutInflater.kt:421)
        at io.github.inflationx.viewpump.internal.-FallbackViewCreationInterceptor.intercept(-FallbackViewCreationInterceptor.kt:14)
        at io.github.inflationx.viewpump.internal.-InterceptorChain.proceed(-InterceptorChain.kt:30)
        at io.github.inflationx.calligraphy3.CalligraphyInterceptor.intercept(CalligraphyInterceptor.java:18)
        at io.github.inflationx.viewpump.internal.-InterceptorChain.proceed(-InterceptorChain.kt:30)
        at io.github.inflationx.viewpump.ViewPump.inflate(ViewPump.kt:36)
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater$PrivateWrapperFactory2.onCreateView(-ViewPumpLayoutInflater.kt:399)
        at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:237)
        at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1067)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:995)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:959)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:1121)
        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:1124)
        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:1124)
        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:680)
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate(-ViewPumpLayoutInflater.kt:57)
2020-08-10 12:27:42.161 5584-5584/com.bazaar.sa E/AndroidRuntime:     at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
        at io.github.inflationx.viewpump.internal.-ViewPumpLayoutInflater.inflate(-ViewPumpLayoutInflater.kt:48)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:479)
        at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)
        at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)
        at com.bazaar.activities.RegMatketActivity.onCreate(RegMatketActivity.java:200)
        at android.app.Activity.performCreate(Activity.java:7995)
        at android.app.Activity.performCreate(Activity.java:7979)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
     Caused by: java.lang.IllegalStateException: toggle_0 must not be null
        at ca.antonious.materialdaypicker.MaterialDayPicker.bindViews(MaterialDayPicker.kt:381)
        at ca.antonious.materialdaypicker.MaterialDayPicker.<init>(MaterialDayPicker.kt:120)
        at ca.antonious.materialdaypicker.MaterialDayPicker.<init>(MaterialDayPicker.kt:37)
        at ca.antonious.materialdaypicker.MaterialDayPicker.<init>(Unknown Source:6)
        	... 46 more

change language

I would like to change the lyrics, since in Spanish they change. You could select the language or customize the letters of the buttons.

sorry for my English

Bug when used in LiveData observer or binding adapter

Usage Information (please complete the following information):
Library Version 0.7.2
Android API Version: API 29

Describe the bug
Daypicker shows functions like disableAllDays() and enableAllDays() don't work in specific circumstances.

To Reproduce
Have the daypicker in a fragment and manipulate it with e.g. disableAllDays or enableAllDays in a Livedata observer or a binding adapter. Make changes to the underlying LiveData. In my case I used navigation and changed the LiveData in the next fragment, and then navigated back to the one with the daypicker, but I'm not sure if that's necessary.

Expected behaviour
The given functions should work correctly inside the observer and the binding adapter. Tried the same with changing the visibility instead and that worked.

Additional context
I could implement another daypicker library and it works fine in this situation but I like yours more :)

Flashing when updating selection via code

Usage Information (please complete the following information):

  • Library Version 0.7.0
  • Android API Version: API 29

Describe the bug
When the day picker has certain days selected and then is updated with the same days it flickers/flashes the non selected colors.
Attached gif shows the behavior
To Reproduce
Create weekday picker.
Set weekdays selected list e.g. Tuesday and Thursday.
Update the weekdays every minute due to backend API call
The weekdays stay the same or one is added. But the ones staying the same flash.

Expected behavior
The color should stay the same and not flash the deselected color in between returning back to the selected stat.

Screenshots
reload-weedays-flicker

Additional context
Thanks for this library. It's very helpful! :)

Add day range selection

I want to allow a user to input a day range. Using this library, it is possible to select every day independently, however for my application I only want to allow selection of a range of continuous days.

You can see this on the Material Design Pickers page as Mobile Date Range Picker.

I imagine it looking like this, only for a single week:

Is there any possibility for this to get added?

Crash in release mode with proground

After minifyEnabled=true for proground in build release mode app crash in fragment or activity where I use it.
Simply need -keep class ca.antonious.*.* { *; } in proground-rules.pro to avoid minify and it works now.
My setup: minSdkVersion 21, targetSdkVersion 29

This need to add in documentation. It take 2 hour from me to find out.

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.