Awesome Open Source
Awesome Open Source

DateRanger

Date range picker

Live Sample

output_4dloif

Credits

Author: Sanjay Singh


Utilities

       ((TextView) view).setTypeface(null, Typeface.NORMAL);
        ((TextView) view).setTextColor(Color.BLACK);

        if (month != today.getMonth() || year != today.getYear()) {
            // if this day is outside current month, grey it out
            ((TextView) view).setTextColor(getResources().getColor(R.color.grey));
        } else if (day == today.getDate()) {
            // if it is today, set it to blue/bold
            ((TextView) view).setTypeface(null, Typeface.BOLD);
            ((TextView) view).setTextColor(getResources().getColor(R.color.current));
        }

           You can edit your own design and style
        ((TextView) view).setBackgroundColor(Color.parseColor("#fbdcbb"));
        ((TextView) view).setTextColor(Color.parseColor("#040404"));
        ((TextView) view).setLayoutParams(new GridView.LayoutParams(144, 144));

License

Copyright 2016 Sanjay Singh.

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.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Java (708,733
Android (40,955
Android Application (4,613
Datepicker (612
Related Projects