getDisabledDays();
46 |
47 | void tryVibrate();
48 | }
49 |
--------------------------------------------------------------------------------
/library/src/main/java/com/codetroopers/betterpickers/calendardatepicker/SimpleDayPickerView.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.codetroopers.betterpickers.calendardatepicker;
18 |
19 | import android.content.Context;
20 | import android.util.AttributeSet;
21 |
22 | /**
23 | * A DayPickerView customized for {@link SimpleMonthAdapter}
24 | */
25 | public class SimpleDayPickerView extends DayPickerView {
26 |
27 | public SimpleDayPickerView(Context context, AttributeSet attrs) {
28 | super(context, attrs);
29 | }
30 |
31 | public SimpleDayPickerView(Context context, CalendarDatePickerController controller) {
32 | super(context, controller);
33 | }
34 |
35 | @Override
36 | public MonthAdapter createMonthAdapter(Context context, CalendarDatePickerController controller) {
37 | return new SimpleMonthAdapter(context, controller);
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/library/src/main/java/com/codetroopers/betterpickers/calendardatepicker/SimpleMonthAdapter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.codetroopers.betterpickers.calendardatepicker;
18 |
19 | import android.content.Context;
20 |
21 | /**
22 | * An adapter for a list of {@link SimpleMonthView} items.
23 | */
24 | public class SimpleMonthAdapter extends MonthAdapter {
25 |
26 | public SimpleMonthAdapter(Context context, CalendarDatePickerController controller) {
27 | super(context, controller);
28 | }
29 |
30 | @Override
31 | public MonthView createMonthView(Context context) {
32 | return new SimpleMonthView(context);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/library/src/main/java/com/codetroopers/betterpickers/calendardatepicker/SimpleMonthView.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.codetroopers.betterpickers.calendardatepicker;
18 |
19 | import android.content.Context;
20 | import android.graphics.Canvas;
21 |
22 | /**
23 | * A calendar-like view displaying a specified month and the appropriate selectable day numbers within the specified
24 | * month.
25 | */
26 | public class SimpleMonthView extends MonthView {
27 |
28 | public SimpleMonthView(Context context) {
29 | super(context);
30 | }
31 |
32 | @Override
33 | public void drawMonthDay(Canvas canvas, int year, int month, int day,
34 | int x, int y, int startX, int stopX, int startY, int stopY, boolean isEnabled) {
35 | if (mSelectedDay == day) {
36 | canvas.drawCircle(x, y - (MINI_DAY_NUMBER_TEXT_SIZE / 3), DAY_SELECTED_CIRCLE_SIZE,
37 | mSelectedCirclePaint);
38 | }
39 |
40 | if (mHasToday && mToday == day) {
41 | mMonthNumPaint.setColor(mTodayNumberColor);
42 | } else if (isEnabled) {
43 | mMonthNumPaint.setColor(mDayTextColorEnabled);
44 | } else {
45 | mMonthNumPaint.setColor(mDayTextColorDisabled);
46 | }
47 | canvas.drawText(String.format("%d", day), x, y, mMonthNumPaint);
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/library/src/main/java/com/codetroopers/betterpickers/recurrencepicker/LinearLayoutWithMaxWidth.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.codetroopers.betterpickers.recurrencepicker;
18 |
19 | import android.content.Context;
20 | import android.util.AttributeSet;
21 | import android.view.View;
22 | import android.widget.LinearLayout;
23 |
24 | public class LinearLayoutWithMaxWidth extends LinearLayout {
25 |
26 | public LinearLayoutWithMaxWidth(Context context) {
27 | super(context);
28 | }
29 |
30 | public LinearLayoutWithMaxWidth(Context context, AttributeSet attrs) {
31 | super(context, attrs);
32 | }
33 |
34 | public LinearLayoutWithMaxWidth(Context context, AttributeSet attrs, int defStyle) {
35 | super(context, attrs, defStyle);
36 | }
37 |
38 | @Override
39 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
40 | WeekButton.setSuggestedWidth((View.MeasureSpec.getSize(widthMeasureSpec)) / 7);
41 | super.onMeasure(widthMeasureSpec, heightMeasureSpec);
42 | }
43 | }
--------------------------------------------------------------------------------
/library/src/main/java/com/codetroopers/betterpickers/widget/AccessibleLinearLayout.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.codetroopers.betterpickers.widget;
18 |
19 | import android.content.Context;
20 | import android.util.AttributeSet;
21 | import android.view.accessibility.AccessibilityEvent;
22 | import android.view.accessibility.AccessibilityNodeInfo;
23 | import android.widget.Button;
24 | import android.widget.LinearLayout;
25 |
26 | /**
27 | * Fake Button class, used so TextViews can announce themselves as Buttons, for accessibility.
28 | */
29 | public class AccessibleLinearLayout extends LinearLayout {
30 |
31 | public AccessibleLinearLayout(Context context, AttributeSet attrs) {
32 | super(context, attrs);
33 | }
34 |
35 | @Override
36 | public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
37 | super.onInitializeAccessibilityEvent(event);
38 | event.setClassName(Button.class.getName());
39 | }
40 |
41 | @Override
42 | public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
43 | super.onInitializeAccessibilityNodeInfo(info);
44 | info.setClassName(Button.class.getName());
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/library/src/main/java/com/codetroopers/betterpickers/widget/AccessibleTextView.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.codetroopers.betterpickers.widget;
18 |
19 | import android.content.Context;
20 | import android.util.AttributeSet;
21 | import android.view.accessibility.AccessibilityEvent;
22 | import android.view.accessibility.AccessibilityNodeInfo;
23 | import android.widget.Button;
24 | import android.widget.TextView;
25 |
26 | /**
27 | * Fake Button class, used so TextViews can announce themselves as Buttons, for accessibility.
28 | */
29 | public class AccessibleTextView extends TextView {
30 |
31 | public AccessibleTextView(Context context, AttributeSet attrs) {
32 | super(context, attrs);
33 | }
34 |
35 | @Override
36 | public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
37 | super.onInitializeAccessibilityEvent(event);
38 | event.setClassName(Button.class.getName());
39 | }
40 |
41 | @Override
42 | public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
43 | super.onInitializeAccessibilityNodeInfo(info);
44 | info.setClassName(Button.class.getName());
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/library/src/main/java/com/codetroopers/betterpickers/widget/AutoScrollHorizontalScrollView.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.widget;
2 |
3 | import android.content.Context;
4 | import android.util.AttributeSet;
5 | import android.widget.HorizontalScrollView;
6 |
7 | /**
8 | * User: derek Date: 5/2/13 Time: 9:19 PM
9 | */
10 | public class AutoScrollHorizontalScrollView extends HorizontalScrollView {
11 |
12 | public AutoScrollHorizontalScrollView(Context context) {
13 | super(context);
14 | }
15 |
16 | public AutoScrollHorizontalScrollView(Context context, AttributeSet attrs) {
17 | super(context, attrs);
18 | }
19 |
20 | public AutoScrollHorizontalScrollView(Context context, AttributeSet attrs, int defStyle) {
21 | super(context, attrs, defStyle);
22 | }
23 |
24 | protected void onLayout(boolean changed, int l, int t, int r, int b) {
25 | super.onLayout(changed, l, t, r, b);
26 | this.fullScroll(FOCUS_RIGHT);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/library/src/main/java/com/codetroopers/betterpickers/widget/PageIndicator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2011 Patrik Akerfeldt
3 | * Copyright (C) 2011 Jake Wharton
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package com.codetroopers.betterpickers.widget;
19 |
20 | import android.support.v4.view.ViewPager;
21 |
22 | /**
23 | * A PageIndicator is responsible to show an visual indicator on the total views number and the current visible view.
24 | */
25 | public interface PageIndicator extends ViewPager.OnPageChangeListener {
26 |
27 | /**
28 | * Bind the indicator to a ViewPager.
29 | */
30 | void setViewPager(ViewPager view);
31 |
32 | /**
33 | * Bind the indicator to a ViewPager.
34 | */
35 | void setViewPager(ViewPager view, int initialPosition);
36 |
37 | /**
38 | * Set the current page of both the ViewPager and indicator.
39 | *
40 | * This must be used if you need to set the page before the views are drawn on screen (e.g.,
41 | * default start page).
42 | */
43 | void setCurrentItem(int item);
44 |
45 | /**
46 | * Set a page change listener which will receive forwarded events.
47 | */
48 | void setOnPageChangeListener(ViewPager.OnPageChangeListener listener);
49 |
50 | /**
51 | * Notify the indicator that the fragment list has changed.
52 | */
53 | void notifyDataSetChanged();
54 | }
55 |
--------------------------------------------------------------------------------
/library/src/main/java/com/codetroopers/betterpickers/widget/PickerLinearLayout.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.widget;
2 |
3 | import android.content.Context;
4 | import android.util.AttributeSet;
5 | import android.view.View;
6 | import android.widget.LinearLayout;
7 |
8 | public abstract class PickerLinearLayout extends LinearLayout {
9 |
10 | public PickerLinearLayout(Context context) {
11 | super(context);
12 | // TODO Auto-generated constructor stub
13 | }
14 |
15 | public PickerLinearLayout(Context context, AttributeSet attrs) {
16 | super(context, attrs);
17 | // TODO Auto-generated constructor stub
18 | }
19 |
20 | public abstract View getViewAt(int index);
21 | }
22 |
--------------------------------------------------------------------------------
/library/src/main/res/color/date_picker_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
22 |
23 |
--------------------------------------------------------------------------------
/library/src/main/res/color/date_picker_year_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
21 |
22 |
--------------------------------------------------------------------------------
/library/src/main/res/color/dialog_text_color_holo_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
11 |
--------------------------------------------------------------------------------
/library/src/main/res/color/dialog_text_color_holo_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
11 |
--------------------------------------------------------------------------------
/library/src/main/res/color/done_text_color.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/library/src/main/res/color/done_text_color_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/library/src/main/res/color/recurrence_bubble_text_color.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 |
22 |
24 |
26 |
27 |
--------------------------------------------------------------------------------
/library/src/main/res/color/recurrence_spinner_text_color.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 |
22 |
24 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/dialog_full_holo_dark.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/dialog_full_holo_dark.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/dialog_full_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/dialog_full_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/ic_backspace_disabled_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/ic_backspace_disabled_dark.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/ic_backspace_disabled_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/ic_backspace_disabled_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/ic_backspace_normal_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/ic_backspace_normal_dark.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/ic_backspace_normal_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/ic_backspace_normal_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/ic_clear_search_holo_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/ic_clear_search_holo_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/ic_recurrence_bubble_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/ic_recurrence_bubble_disabled.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/ic_recurrence_bubble_fill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/ic_recurrence_bubble_fill.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/ic_recurrence_bubble_outline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/ic_recurrence_bubble_outline.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/ic_recurrence_bubble_outline_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/ic_recurrence_bubble_outline_disabled.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/ic_search_holo_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/ic_search_holo_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/spinner_default_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/spinner_default_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/spinner_disabled_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/spinner_disabled_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/spinner_focused_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/spinner_focused_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/spinner_pressed_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/spinner_pressed_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/textfield_activated_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/textfield_activated_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/textfield_default_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/textfield_default_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/textfield_disabled_focused_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/textfield_disabled_focused_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/textfield_disabled_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/textfield_disabled_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/textfield_focused_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-hdpi/textfield_focused_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/dialog_full_holo_dark.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/dialog_full_holo_dark.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/dialog_full_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/dialog_full_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/ic_backspace_disabled_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/ic_backspace_disabled_dark.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/ic_backspace_disabled_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/ic_backspace_disabled_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/ic_backspace_normal_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/ic_backspace_normal_dark.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/ic_backspace_normal_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/ic_backspace_normal_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/ic_clear_search_holo_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/ic_clear_search_holo_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/ic_recurrence_bubble_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/ic_recurrence_bubble_disabled.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/ic_recurrence_bubble_fill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/ic_recurrence_bubble_fill.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/ic_recurrence_bubble_outline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/ic_recurrence_bubble_outline.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/ic_recurrence_bubble_outline_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/ic_recurrence_bubble_outline_disabled.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/ic_search_holo_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/ic_search_holo_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/spinner_default_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/spinner_default_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/spinner_disabled_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/spinner_disabled_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/spinner_focused_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/spinner_focused_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/spinner_pressed_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/spinner_pressed_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/textfield_activated_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/textfield_activated_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/textfield_default_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/textfield_default_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/textfield_disabled_focused_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/textfield_disabled_focused_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/textfield_disabled_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/textfield_disabled_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/textfield_focused_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-mdpi/textfield_focused_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-sw600dp-hdpi/ic_backspace_disabled_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-sw600dp-hdpi/ic_backspace_disabled_dark.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-sw600dp-hdpi/ic_backspace_disabled_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-sw600dp-hdpi/ic_backspace_disabled_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-sw600dp-hdpi/ic_backspace_normal_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-sw600dp-hdpi/ic_backspace_normal_dark.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-sw600dp-hdpi/ic_backspace_normal_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-sw600dp-hdpi/ic_backspace_normal_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-sw600dp-mdpi/ic_backspace_disabled_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-sw600dp-mdpi/ic_backspace_disabled_dark.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-sw600dp-mdpi/ic_backspace_disabled_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-sw600dp-mdpi/ic_backspace_disabled_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-sw600dp-mdpi/ic_backspace_normal_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-sw600dp-mdpi/ic_backspace_normal_dark.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-sw600dp-mdpi/ic_backspace_normal_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-sw600dp-mdpi/ic_backspace_normal_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-sw600dp-xhdpi/ic_backspace_disabled_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-sw600dp-xhdpi/ic_backspace_disabled_dark.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-sw600dp-xhdpi/ic_backspace_disabled_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-sw600dp-xhdpi/ic_backspace_disabled_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-sw600dp-xhdpi/ic_backspace_normal_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-sw600dp-xhdpi/ic_backspace_normal_dark.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-sw600dp-xhdpi/ic_backspace_normal_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-sw600dp-xhdpi/ic_backspace_normal_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-v21/bp_material_button_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-v21/button_background_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
9 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-v21/button_background_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
9 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-v21/key_background_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-v21/key_background_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-v21/mdtp_material_button_selected.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
7 |
8 |
9 |
12 |
13 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/dialog_full_holo_dark.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/dialog_full_holo_dark.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/dialog_full_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/dialog_full_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_backspace_disabled_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_backspace_disabled_dark.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_backspace_disabled_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_backspace_disabled_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_backspace_normal_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_backspace_normal_dark.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_backspace_normal_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_backspace_normal_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_check_dark_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_check_dark_disabled.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_check_light_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_check_light_disabled.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_check_normal_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_check_normal_dark.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_check_normal_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_check_normal_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_clear_search_holo_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_clear_search_holo_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_recurrence_bubble_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_recurrence_bubble_disabled.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_recurrence_bubble_fill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_recurrence_bubble_fill.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_recurrence_bubble_outline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_recurrence_bubble_outline.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_recurrence_bubble_outline_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_recurrence_bubble_outline_disabled.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_search_holo_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/ic_search_holo_light.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/list_focused_holo.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/list_focused_holo.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/list_longpressed_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/list_longpressed_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/list_pressed_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/list_pressed_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/list_selector_disabled_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/list_selector_disabled_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/spinner_default_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/spinner_default_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/spinner_disabled_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/spinner_disabled_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/spinner_focused_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/spinner_focused_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/spinner_pressed_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/spinner_pressed_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/textfield_activated_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/textfield_activated_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/textfield_default_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/textfield_default_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/textfield_disabled_focused_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/textfield_disabled_focused_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/textfield_disabled_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/textfield_disabled_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/textfield_focused_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xhdpi/textfield_focused_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/ic_recurrence_bubble_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/ic_recurrence_bubble_disabled.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/ic_recurrence_bubble_fill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/ic_recurrence_bubble_fill.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/ic_recurrence_bubble_outline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/ic_recurrence_bubble_outline.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/ic_recurrence_bubble_outline_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/ic_recurrence_bubble_outline_disabled.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/list_focused_holo.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/list_focused_holo.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/list_longpressed_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/list_longpressed_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/list_pressed_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/list_pressed_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/spinner_default_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/spinner_default_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/spinner_disabled_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/spinner_disabled_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/spinner_focused_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/spinner_focused_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/spinner_pressed_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/spinner_pressed_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/textfield_activated_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/textfield_activated_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/textfield_default_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/textfield_default_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/textfield_disabled_focused_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/textfield_disabled_focused_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/textfield_disabled_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/textfield_disabled_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/textfield_focused_holo_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/library/src/main/res/drawable-xxhdpi/textfield_focused_holo_light.9.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable/bp_material_button_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/bp_material_button_selected.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
7 |
8 |
9 |
12 |
13 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/bp_material_key_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/button_background_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
9 |
10 |
14 |
15 |
18 |
19 |
21 |
22 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/button_background_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
9 |
10 |
14 |
15 |
18 |
19 |
21 |
22 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/done_background_color.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
21 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/done_background_color_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
21 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/edit_text_holo_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/ic_backspace_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/ic_backspace_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/ic_check_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
11 |
12 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/ic_check_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
11 |
12 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/item_background_holo_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/key_background_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
9 |
10 |
14 |
15 |
18 |
19 |
21 |
22 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/key_background_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
9 |
10 |
14 |
15 |
18 |
19 |
21 |
22 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/list_selector_background_transition_holo_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/recurrence_bubble_fill.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
20 |
22 |
24 |
26 |
28 |
30 |
31 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable/spinner_background_holo_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 |
22 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-land/calendar_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
24 |
29 |
30 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-land/date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-land/expiration_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-land/hms_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-land/number_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-land/time_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp-land/calendar_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
16 |
22 |
23 |
27 |
28 |
33 |
34 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp-land/date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp-land/expiration_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp-land/hms_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp-land/number_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp-land/time_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp/calendar_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
16 |
22 |
23 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp/three_keys_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
15 |
22 |
29 |
30 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp/three_keys_view_leftright.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
15 |
22 |
29 |
30 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp/three_keys_view_right_drawable.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
15 |
22 |
30 |
31 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-sw600dp/three_keys_view_text.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
15 |
22 |
29 |
30 |
--------------------------------------------------------------------------------
/library/src/main/res/layout-w270dp-h560dp/calendar_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
16 |
22 |
23 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/calendar_date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
16 |
22 |
23 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/calendar_date_picker_header_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
28 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/calendar_date_picker_view_animator.xml:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/calendar_year_label_text_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/date_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/empty_time_zone_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
26 |
27 |
28 |
29 |
41 |
42 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/expiration_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/hms_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/keyboard.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
13 |
16 |
19 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/keyboard_right_drawable.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
13 |
16 |
19 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/keyboard_right_drawable_with_header.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
13 |
16 |
19 |
22 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/keyboard_text.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
13 |
16 |
19 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/keyboard_text_with_header.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
13 |
16 |
19 |
22 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/keyboard_with_header.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
13 |
16 |
19 |
22 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/layout_ok_cancel_buttons.xml:
--------------------------------------------------------------------------------
1 |
15 |
25 |
26 |
34 |
35 |
43 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/number_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/recurrencepicker_end_text.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
28 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/recurrencepicker_freq_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/three_keys_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
15 |
22 |
29 |
30 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/three_keys_view_leftright.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
15 |
22 |
29 |
30 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/three_keys_view_right_drawable.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
15 |
22 |
30 |
31 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/three_keys_view_text.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
15 |
22 |
29 |
30 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/time_picker_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/time_zone_filter_item.xml:
--------------------------------------------------------------------------------
1 |
16 |
23 |
24 |
34 |
35 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/time_zone_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
27 |
28 |
36 |
37 |
43 |
44 |
52 |
53 |
--------------------------------------------------------------------------------
/library/src/main/res/values-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 24sp
4 | 189dip
5 | 210dp
6 | 300dp
7 |
8 |
9 | 200dip
10 | 250dip
11 |
12 | 30dp
13 | 100dp
14 | 30dp
15 |
16 | 500dp
17 | 281dp
18 |
19 |
--------------------------------------------------------------------------------
/library/src/main/res/values-mdpi/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 270dp
4 | 30dp
5 | 100dp
6 | 270dp
7 | 42dp
8 |
9 | 50dp
10 | 10sp
11 | 16dp
12 | 45dp
13 | 24dp
14 | 50dp
15 | 24dp
16 | 14dp
17 | 16sp
18 | 16sp
19 | 64dp
20 | 22dp
21 |
22 | 340dp
23 | 300dp
24 |
25 |
--------------------------------------------------------------------------------
/library/src/main/res/values-sw600dp-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 45dp
5 | 16sp
6 | 64sp
7 | 21sp
8 | 7dip
9 | 5dip
10 | 96dip
11 | 48dip
12 | 315dip
13 |
14 | 300dp
15 | 600dp
16 |
--------------------------------------------------------------------------------
/library/src/main/res/values-w270dp-h560dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 230dp
5 | 30dp
6 | 100dp
7 | 30dp
8 |
--------------------------------------------------------------------------------
/library/src/main/res/values/ids.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/sample/.gitignore:
--------------------------------------------------------------------------------
1 | # Built application files
2 | *.ap_
3 |
4 | # Files for the Dalvik VM
5 | *.dex
6 |
7 | # Java class files
8 | *.class
9 |
10 | # Generated files
11 | bin/
12 | gen/
13 |
14 | # Gradle files
15 | out/
16 | build/
17 | .gradle/
18 |
19 | # idea project files
20 | *.iml
21 | .idea
22 | *.iws
23 |
24 | # Local configuration file (sdk path, etc)
25 | local.properties
26 |
27 | # junk
28 | .DS_Store
29 |
30 | # Proguard folder generated by Eclipse
31 | proguard/
32 |
--------------------------------------------------------------------------------
/sample/bp.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/bp.keystore
--------------------------------------------------------------------------------
/sample/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 | apply from: 'https://raw.githubusercontent.com/shamanland/gradle-mvn-push/master/gradle-mvn-push.gradle' //contains fix for javadoc issues
3 |
4 | android {
5 | compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
6 | buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
7 |
8 | defaultConfig {
9 | applicationId "com.codetroopers.betterpickersapp"
10 | minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
11 | targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
12 | versionName project.VERSION_NAME
13 | versionCode Integer.parseInt(project.VERSION_CODE)
14 | }
15 |
16 |
17 | buildTypes {
18 | release {
19 | minifyEnabled false
20 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
21 | }
22 | }
23 | }
24 |
25 | dependencies {
26 | compile fileTree(dir: 'libs', include: ['*.jar'])
27 | compile project(':library')
28 | compile 'joda-time:joda-time:2.9.6'
29 | }
30 |
--------------------------------------------------------------------------------
/sample/gradle.properties:
--------------------------------------------------------------------------------
1 | POM_NAME=android-betterpickers Sample
2 | POM_ARTIFACT_ID=sample
3 | POM_PACKAGING=apk
--------------------------------------------------------------------------------
/sample/imagery/screenshot_calendar_date.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/imagery/screenshot_calendar_date.png
--------------------------------------------------------------------------------
/sample/imagery/screenshot_calendar_date_customized.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/imagery/screenshot_calendar_date_customized.png
--------------------------------------------------------------------------------
/sample/imagery/screenshot_date.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/imagery/screenshot_date.png
--------------------------------------------------------------------------------
/sample/imagery/screenshot_expiration.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/imagery/screenshot_expiration.png
--------------------------------------------------------------------------------
/sample/imagery/screenshot_hms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/imagery/screenshot_hms.png
--------------------------------------------------------------------------------
/sample/imagery/screenshot_number.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/imagery/screenshot_number.png
--------------------------------------------------------------------------------
/sample/imagery/screenshot_radial_time.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/imagery/screenshot_radial_time.png
--------------------------------------------------------------------------------
/sample/imagery/screenshot_radial_time_customized.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/imagery/screenshot_radial_time_customized.png
--------------------------------------------------------------------------------
/sample/imagery/screenshot_recurrence.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/imagery/screenshot_recurrence.png
--------------------------------------------------------------------------------
/sample/imagery/screenshot_time.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/imagery/screenshot_time.png
--------------------------------------------------------------------------------
/sample/imagery/screenshot_time_zone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/imagery/screenshot_time_zone.png
--------------------------------------------------------------------------------
/sample/imagery/web_feature_graphic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/imagery/web_feature_graphic.png
--------------------------------------------------------------------------------
/sample/imagery/web_hi_res_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/imagery/web_hi_res_512.png
--------------------------------------------------------------------------------
/sample/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Applications/adt-bundle-mac-x86_64/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/sample/release.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/release.keystore
--------------------------------------------------------------------------------
/sample/src/androidTest/java/com/codetroopers/betterpickersapp/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickersapp;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/BaseSampleActivity.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.view.MenuItem;
6 |
7 | public abstract class BaseSampleActivity extends AppCompatActivity {
8 |
9 | @Override
10 | public void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 |
13 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
14 | }
15 |
16 | @Override
17 | public boolean onOptionsItemSelected(MenuItem item) {
18 | switch (item.getItemId()) {
19 | case android.R.id.home:
20 | finish();
21 | return true;
22 | }
23 | return true;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/datepicker/SampleDateBasicUsage.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.datepicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.datepicker.DatePickerBuilder;
9 | import com.codetroopers.betterpickers.datepicker.DatePickerDialogFragment;
10 | import com.codetroopers.betterpickers.sample.R;
11 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
12 |
13 | /**
14 | * User: derek Date: 3/17/13 Time: 3:59 PM
15 | */
16 | public class SampleDateBasicUsage extends BaseSampleActivity implements DatePickerDialogFragment.DatePickerDialogHandler {
17 |
18 | private TextView mResultTextView;
19 |
20 | @Override
21 | public void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 | setContentView(R.layout.text_and_button);
24 |
25 | mResultTextView = (TextView) findViewById(R.id.text);
26 | Button button = (Button) findViewById(R.id.button);
27 |
28 | mResultTextView.setText(R.string.no_value);
29 | button.setText(R.string.date_picker_set);
30 | button.setOnClickListener(new View.OnClickListener() {
31 | @Override
32 | public void onClick(View v) {
33 | DatePickerBuilder dpb = new DatePickerBuilder()
34 | .setFragmentManager(getSupportFragmentManager())
35 | .setStyleResId(R.style.BetterPickersDialogFragment);
36 | dpb.show();
37 | }
38 | });
39 | }
40 |
41 | @Override
42 | public void onDialogDateSet(int reference, int year, int monthOfYear, int dayOfMonth) {
43 | mResultTextView.setText(getString(R.string.date_picker_result_value, year, monthOfYear, dayOfMonth));
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/datepicker/SampleDateThemeCustom.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.datepicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.datepicker.DatePickerBuilder;
9 | import com.codetroopers.betterpickers.datepicker.DatePickerDialogFragment;
10 | import com.codetroopers.betterpickers.sample.R;
11 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
12 |
13 | /**
14 | * User: derek Date: 3/17/13 Time: 3:59 PM
15 | */
16 | public class SampleDateThemeCustom extends BaseSampleActivity
17 | implements DatePickerDialogFragment.DatePickerDialogHandler {
18 |
19 | private TextView mResultTextView;
20 |
21 | @Override
22 | public void onCreate(Bundle savedInstanceState) {
23 | super.onCreate(savedInstanceState);
24 | setContentView(R.layout.text_and_button);
25 |
26 | mResultTextView = (TextView) findViewById(R.id.text);
27 | Button button = (Button) findViewById(R.id.button);
28 |
29 | mResultTextView.setText(R.string.no_value);
30 | button.setText(R.string.date_picker_set);
31 | button.setOnClickListener(new View.OnClickListener() {
32 | @Override
33 | public void onClick(View v) {
34 | DatePickerBuilder dpb = new DatePickerBuilder()
35 | .setFragmentManager(getSupportFragmentManager())
36 | .setStyleResId(R.style.MyCustomBetterPickerTheme);
37 | dpb.show();
38 | }
39 | });
40 | }
41 |
42 | @Override
43 | public void onDialogDateSet(int reference, int year, int monthOfYear, int dayOfMonth) {
44 | mResultTextView.setText(getString(R.string.date_picker_result_value, year, monthOfYear, dayOfMonth));
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/datepicker/SampleDateThemeLight.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.datepicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.datepicker.DatePickerBuilder;
9 | import com.codetroopers.betterpickers.datepicker.DatePickerDialogFragment;
10 | import com.codetroopers.betterpickers.sample.R;
11 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
12 |
13 | /**
14 | * User: derek Date: 3/17/13 Time: 3:59 PM
15 | */
16 | public class SampleDateThemeLight extends BaseSampleActivity
17 | implements DatePickerDialogFragment.DatePickerDialogHandler {
18 |
19 | private TextView mResultTextView;
20 |
21 | @Override
22 | public void onCreate(Bundle savedInstanceState) {
23 | super.onCreate(savedInstanceState);
24 | setContentView(R.layout.text_and_button);
25 |
26 | mResultTextView = (TextView) findViewById(R.id.text);
27 | Button button = (Button) findViewById(R.id.button);
28 |
29 | mResultTextView.setText(R.string.no_value);
30 | button.setText(R.string.date_picker_set);
31 | button.setOnClickListener(new View.OnClickListener() {
32 | @Override
33 | public void onClick(View v) {
34 | DatePickerBuilder dpb = new DatePickerBuilder()
35 | .setFragmentManager(getSupportFragmentManager())
36 | .setStyleResId(R.style.BetterPickersDialogFragment_Light);
37 | dpb.show();
38 | }
39 | });
40 | }
41 |
42 | @Override
43 | public void onDialogDateSet(int reference, int year, int monthOfYear, int dayOfMonth) {
44 | mResultTextView.setText(getString(R.string.date_picker_result_value, year, monthOfYear, dayOfMonth));
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/datepicker/SampleDateUsingFragment.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.datepicker;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.support.v4.app.FragmentTransaction;
6 |
7 | import com.codetroopers.betterpickers.sample.R;
8 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
9 | import com.codetroopers.betterpickers.sample.fragment.SampleDateFragment;
10 |
11 | /**
12 | * User: derek Date: 3/17/13 Time: 3:59 PM
13 | */
14 | public class SampleDateUsingFragment extends BaseSampleActivity {
15 |
16 | @Override
17 | public void onCreate(Bundle savedInstanceState) {
18 | super.onCreate(savedInstanceState);
19 | setContentView(R.layout.frame_layout);
20 |
21 | Fragment fragment = new SampleDateFragment();
22 | FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
23 |
24 | transaction.replace(R.id.frame, fragment);
25 |
26 | transaction.commit();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/datepicker/SampleDateYearOptional.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.datepicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.datepicker.DatePickerBuilder;
9 | import com.codetroopers.betterpickers.datepicker.DatePickerDialogFragment;
10 | import com.codetroopers.betterpickers.sample.R;
11 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
12 |
13 |
14 | public class SampleDateYearOptional extends BaseSampleActivity implements DatePickerDialogFragment.DatePickerDialogHandler {
15 |
16 | private TextView mResultTextView;
17 |
18 | @Override
19 | public void onCreate(Bundle savedInstanceState) {
20 | super.onCreate(savedInstanceState);
21 | setContentView(R.layout.text_and_button);
22 |
23 | mResultTextView = (TextView) findViewById(R.id.text);
24 | Button button = (Button) findViewById(R.id.button);
25 |
26 | mResultTextView.setText(R.string.no_value);
27 | button.setText(R.string.date_picker_set);
28 | button.setOnClickListener(new View.OnClickListener() {
29 | @Override
30 | public void onClick(View v) {
31 | DatePickerBuilder dpb = new DatePickerBuilder()
32 | .setFragmentManager(getSupportFragmentManager())
33 | .setStyleResId(R.style.BetterPickersDialogFragment)
34 | .setYearOptional(true);
35 | dpb.show();
36 | }
37 | });
38 | }
39 |
40 | @Override
41 | public void onDialogDateSet(int reference, int year, int monthOfYear, int dayOfMonth) {
42 | mResultTextView.setText(getString(R.string.date_picker_result_value, year, monthOfYear, dayOfMonth));
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/expirationpicker/SampleExpirationBasicUsage.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.expirationpicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.expirationpicker.ExpirationPickerBuilder;
9 | import com.codetroopers.betterpickers.expirationpicker.ExpirationPickerDialogFragment;
10 | import com.codetroopers.betterpickers.sample.R;
11 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
12 |
13 | public class SampleExpirationBasicUsage extends BaseSampleActivity implements ExpirationPickerDialogFragment.ExpirationPickerDialogHandler {
14 |
15 | private TextView mResultTextView;
16 |
17 | @Override
18 | public void onCreate(Bundle savedInstanceState) {
19 | super.onCreate(savedInstanceState);
20 | setContentView(R.layout.text_and_button);
21 |
22 | mResultTextView = (TextView) findViewById(R.id.text);
23 | Button button = (Button) findViewById(R.id.button);
24 |
25 | mResultTextView.setText(R.string.no_value);
26 | button.setText(R.string.expiration_picker_set);
27 | button.setOnClickListener(new View.OnClickListener() {
28 | @Override
29 | public void onClick(View v) {
30 | ExpirationPickerBuilder epb = new ExpirationPickerBuilder()
31 | .setFragmentManager(getSupportFragmentManager())
32 | .setStyleResId(R.style.BetterPickersDialogFragment);
33 | epb.show();
34 | }
35 | });
36 | }
37 |
38 | @Override
39 | public void onDialogExpirationSet(int reference, int year, int monthOfYear) {
40 | mResultTextView.setText(getString(R.string.expiration_picker_result_value, String.format("%02d", monthOfYear), year));
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/expirationpicker/SampleExpirationMinDate.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.expirationpicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.expirationpicker.ExpirationPickerBuilder;
9 | import com.codetroopers.betterpickers.expirationpicker.ExpirationPickerDialogFragment;
10 | import com.codetroopers.betterpickers.sample.R;
11 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
12 |
13 |
14 | public class SampleExpirationMinDate extends BaseSampleActivity implements ExpirationPickerDialogFragment.ExpirationPickerDialogHandler {
15 |
16 | private TextView mResultTextView;
17 |
18 | @Override
19 | public void onCreate(Bundle savedInstanceState) {
20 | super.onCreate(savedInstanceState);
21 | setContentView(R.layout.text_and_button);
22 |
23 | mResultTextView = (TextView) findViewById(R.id.text);
24 | Button button = (Button) findViewById(R.id.button);
25 |
26 | mResultTextView.setText(R.string.no_value);
27 | button.setText(R.string.expiration_picker_set);
28 | button.setOnClickListener(new View.OnClickListener() {
29 | @Override
30 | public void onClick(View v) {
31 | ExpirationPickerBuilder epb = new ExpirationPickerBuilder()
32 | .setFragmentManager(getSupportFragmentManager())
33 | .setStyleResId(R.style.BetterPickersDialogFragment)
34 | .setMinYear(2000);
35 | epb.show();
36 | }
37 | });
38 | }
39 |
40 | @Override
41 | public void onDialogExpirationSet(int reference, int year, int monthOfYear) {
42 | mResultTextView.setText(getString(R.string.expiration_picker_result_value, String.format("%02d", monthOfYear), year));
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/hmspicker/SampleHmsBasicUsage.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.hmspicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.hmspicker.HmsPickerBuilder;
9 | import com.codetroopers.betterpickers.hmspicker.HmsPickerDialogFragment;
10 | import com.codetroopers.betterpickers.sample.R;
11 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
12 |
13 | /**
14 | * User: derek Date: 3/17/13 Time: 3:59 PM
15 | */
16 | public class SampleHmsBasicUsage extends BaseSampleActivity implements HmsPickerDialogFragment.HmsPickerDialogHandlerV2 {
17 |
18 | private TextView mResultTextView;
19 |
20 | @Override
21 | public void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 | setContentView(R.layout.text_and_button);
24 |
25 | mResultTextView = (TextView) findViewById(R.id.text);
26 | Button button = (Button) findViewById(R.id.button);
27 |
28 | mResultTextView.setText(R.string.no_value);
29 | button.setText(R.string.hms_picker_set);
30 | button.setOnClickListener(new View.OnClickListener() {
31 | @Override
32 | public void onClick(View v) {
33 | HmsPickerBuilder hpb = new HmsPickerBuilder()
34 | .setFragmentManager(getSupportFragmentManager())
35 | .setStyleResId(R.style.BetterPickersDialogFragment);
36 | hpb.show();
37 | }
38 | });
39 | }
40 |
41 | @Override
42 | public void onDialogHmsSet(int reference, boolean isNegative, int hours, int minutes, int seconds) {
43 | mResultTextView.setText(getString(R.string.hms_picker_result_value_multiline, hours, minutes, seconds, isNegative));
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/hmspicker/SampleHmsNegativeDurationUsage.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.hmspicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.hmspicker.HmsPickerBuilder;
9 | import com.codetroopers.betterpickers.hmspicker.HmsPickerDialogFragment;
10 | import com.codetroopers.betterpickers.sample.R;
11 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
12 |
13 | /**
14 | * User: derek Date: 3/17/13 Time: 3:59 PM
15 | */
16 | public class SampleHmsNegativeDurationUsage extends BaseSampleActivity implements HmsPickerDialogFragment.HmsPickerDialogHandlerV2 {
17 |
18 | private TextView mResultTextView;
19 |
20 | @Override
21 | public void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 | setContentView(R.layout.text_and_button);
24 |
25 | mResultTextView = (TextView) findViewById(R.id.text);
26 | Button button = (Button) findViewById(R.id.button);
27 |
28 | mResultTextView.setText(R.string.no_value);
29 | button.setText(R.string.hms_picker_set);
30 | button.setOnClickListener(new View.OnClickListener() {
31 | @Override
32 | public void onClick(View v) {
33 | HmsPickerBuilder hpb = new HmsPickerBuilder()
34 | .setPlusMinusVisibility(View.VISIBLE)
35 | .setFragmentManager(getSupportFragmentManager())
36 | .setStyleResId(R.style.BetterPickersDialogFragment);
37 | hpb.show();
38 | }
39 | });
40 | }
41 |
42 | @Override
43 | public void onDialogHmsSet(int reference, boolean isNegative, int hours, int minutes, int seconds) {
44 | mResultTextView.setText(getString(R.string.hms_picker_result_value_multiline, hours, minutes, seconds, isNegative));
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/hmspicker/SampleHmsThemeCustom.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.hmspicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.hmspicker.HmsPickerBuilder;
9 | import com.codetroopers.betterpickers.hmspicker.HmsPickerDialogFragment;
10 | import com.codetroopers.betterpickers.sample.R;
11 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
12 |
13 | /**
14 | * User: derek Date: 3/17/13 Time: 3:59 PM
15 | */
16 | public class SampleHmsThemeCustom extends BaseSampleActivity implements HmsPickerDialogFragment.HmsPickerDialogHandlerV2 {
17 |
18 | private TextView mResultTextView;
19 |
20 | @Override
21 | public void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 | setContentView(R.layout.text_and_button);
24 |
25 | mResultTextView = (TextView) findViewById(R.id.text);
26 | Button button = (Button) findViewById(R.id.button);
27 |
28 | mResultTextView.setText(R.string.no_value);
29 | button.setText(R.string.hms_picker_set);
30 | button.setOnClickListener(new View.OnClickListener() {
31 | @Override
32 | public void onClick(View v) {
33 | HmsPickerBuilder hpb = new HmsPickerBuilder()
34 | .setFragmentManager(getSupportFragmentManager())
35 | .setStyleResId(R.style.MyCustomBetterPickerTheme);
36 | hpb.show();
37 | }
38 | });
39 | }
40 |
41 | @Override
42 | public void onDialogHmsSet(int reference, boolean isNegative, int hours, int minutes, int seconds) {
43 | mResultTextView.setText(getString(R.string.hms_picker_result_value_multiline, hours, minutes, seconds, isNegative));
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/hmspicker/SampleHmsThemeLight.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.hmspicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.hmspicker.HmsPickerBuilder;
9 | import com.codetroopers.betterpickers.hmspicker.HmsPickerDialogFragment;
10 | import com.codetroopers.betterpickers.sample.R;
11 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
12 |
13 | /**
14 | * User: derek Date: 3/17/13 Time: 3:59 PM
15 | */
16 | public class SampleHmsThemeLight extends BaseSampleActivity implements HmsPickerDialogFragment.HmsPickerDialogHandlerV2 {
17 |
18 | private TextView mResultTextView;
19 |
20 | @Override
21 | public void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 | setContentView(R.layout.text_and_button);
24 |
25 | mResultTextView = (TextView) findViewById(R.id.text);
26 | Button button = (Button) findViewById(R.id.button);
27 |
28 | mResultTextView.setText(R.string.no_value);
29 | button.setText(R.string.hms_picker_set);
30 | button.setOnClickListener(new View.OnClickListener() {
31 | @Override
32 | public void onClick(View v) {
33 | HmsPickerBuilder hpb = new HmsPickerBuilder()
34 | .setFragmentManager(getSupportFragmentManager())
35 | .setStyleResId(R.style.BetterPickersDialogFragment_Light);
36 | hpb.show();
37 | }
38 | });
39 | }
40 |
41 | @Override
42 | public void onDialogHmsSet(int reference, boolean isNegative, int hours, int minutes, int seconds) {
43 | mResultTextView.setText(getString(R.string.hms_picker_result_value_multiline, hours, minutes, seconds, isNegative));
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/hmspicker/SampleHmsUsingFragment.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.hmspicker;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.support.v4.app.FragmentTransaction;
6 |
7 | import com.codetroopers.betterpickers.sample.R;
8 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
9 | import com.codetroopers.betterpickers.sample.fragment.SampleHmsFragment;
10 |
11 | /**
12 | * User: derek Date: 3/17/13 Time: 3:59 PM
13 | */
14 | public class SampleHmsUsingFragment extends BaseSampleActivity {
15 |
16 | @Override
17 | public void onCreate(Bundle savedInstanceState) {
18 | super.onCreate(savedInstanceState);
19 | setContentView(R.layout.frame_layout);
20 |
21 | Fragment fragment = new SampleHmsFragment();
22 | FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
23 |
24 | transaction.replace(R.id.frame, fragment);
25 |
26 | transaction.commit();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/numberpicker/SampleNumberBasicUsage.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.numberpicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.numberpicker.NumberPickerBuilder;
9 | import com.codetroopers.betterpickers.numberpicker.NumberPickerDialogFragment;
10 | import com.codetroopers.betterpickers.sample.R;
11 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
12 |
13 | import java.math.BigDecimal;
14 | import java.math.BigInteger;
15 |
16 | /**
17 | * User: derek Date: 3/17/13 Time: 3:59 PM
18 | */
19 | public class SampleNumberBasicUsage extends BaseSampleActivity
20 | implements NumberPickerDialogFragment.NumberPickerDialogHandlerV2 {
21 |
22 | private TextView mResultTextView;
23 |
24 | @Override
25 | public void onCreate(Bundle savedInstanceState) {
26 | super.onCreate(savedInstanceState);
27 | setContentView(R.layout.text_and_button);
28 |
29 | mResultTextView = (TextView) findViewById(R.id.text);
30 | Button button = (Button) findViewById(R.id.button);
31 |
32 | mResultTextView.setText(R.string.no_value);
33 | button.setText(R.string.number_picker_set);
34 | button.setOnClickListener(new View.OnClickListener() {
35 | @Override
36 | public void onClick(View v) {
37 | NumberPickerBuilder npb = new NumberPickerBuilder()
38 | .setFragmentManager(getSupportFragmentManager())
39 | .setStyleResId(R.style.BetterPickersDialogFragment);
40 | npb.show();
41 | }
42 | });
43 | }
44 |
45 | @Override
46 | public void onDialogNumberSet(int reference, BigInteger number, double decimal, boolean isNegative, BigDecimal fullNumber) {
47 | mResultTextView.setText(getString(R.string.number_picker_result_value, number, decimal, isNegative, fullNumber));
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/numberpicker/SampleNumberThemeCustom.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.numberpicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.numberpicker.NumberPickerBuilder;
9 | import com.codetroopers.betterpickers.numberpicker.NumberPickerDialogFragment;
10 | import com.codetroopers.betterpickers.sample.R;
11 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
12 |
13 | import java.math.BigDecimal;
14 | import java.math.BigInteger;
15 |
16 | /**
17 | * User: derek Date: 3/17/13 Time: 3:59 PM
18 | */
19 | public class SampleNumberThemeCustom extends BaseSampleActivity
20 | implements NumberPickerDialogFragment.NumberPickerDialogHandlerV2 {
21 |
22 | private TextView mResultTextView;
23 |
24 | @Override
25 | public void onCreate(Bundle savedInstanceState) {
26 | super.onCreate(savedInstanceState);
27 | setContentView(R.layout.text_and_button);
28 |
29 | mResultTextView = (TextView) findViewById(R.id.text);
30 | Button button = (Button) findViewById(R.id.button);
31 |
32 | mResultTextView.setText(R.string.no_value);
33 | button.setText(R.string.number_picker_set);
34 | button.setOnClickListener(new View.OnClickListener() {
35 | @Override
36 | public void onClick(View v) {
37 | NumberPickerBuilder npb = new NumberPickerBuilder()
38 | .setFragmentManager(getSupportFragmentManager())
39 | .setStyleResId(R.style.MyCustomBetterPickerTheme);
40 | npb.show();
41 | }
42 | });
43 | }
44 |
45 | @Override
46 | public void onDialogNumberSet(int reference, BigInteger number, double decimal, boolean isNegative, BigDecimal fullNumber) {
47 | mResultTextView.setText(getString(R.string.number_picker_result_value, number, decimal, isNegative, fullNumber));
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/numberpicker/SampleNumberThemeLight.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.numberpicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.numberpicker.NumberPickerBuilder;
9 | import com.codetroopers.betterpickers.numberpicker.NumberPickerDialogFragment;
10 | import com.codetroopers.betterpickers.sample.R;
11 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
12 |
13 | import java.math.BigDecimal;
14 | import java.math.BigInteger;
15 |
16 | /**
17 | * User: derek Date: 3/17/13 Time: 3:59 PM
18 | */
19 | public class SampleNumberThemeLight extends BaseSampleActivity
20 | implements NumberPickerDialogFragment.NumberPickerDialogHandlerV2 {
21 |
22 | private TextView mResultTextView;
23 |
24 | @Override
25 | public void onCreate(Bundle savedInstanceState) {
26 | super.onCreate(savedInstanceState);
27 | setContentView(R.layout.text_and_button);
28 |
29 | mResultTextView = (TextView) findViewById(R.id.text);
30 | Button button = (Button) findViewById(R.id.button);
31 |
32 | mResultTextView.setText(R.string.no_value);
33 | button.setText(R.string.number_picker_set);
34 | button.setOnClickListener(new View.OnClickListener() {
35 | @Override
36 | public void onClick(View v) {
37 | NumberPickerBuilder npb = new NumberPickerBuilder()
38 | .setFragmentManager(getSupportFragmentManager())
39 | .setStyleResId(R.style.BetterPickersDialogFragment_Light);
40 | npb.show();
41 | }
42 | });
43 | }
44 |
45 | @Override
46 | public void onDialogNumberSet(int reference, BigInteger number, double decimal, boolean isNegative, BigDecimal fullNumber) {
47 | mResultTextView.setText(getString(R.string.number_picker_result_value, number, decimal, isNegative, fullNumber));
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/numberpicker/SampleNumberUsingFragment.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.numberpicker;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.support.v4.app.FragmentTransaction;
6 |
7 | import com.codetroopers.betterpickers.sample.R;
8 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
9 | import com.codetroopers.betterpickers.sample.fragment.SampleNumberFragment;
10 |
11 | /**
12 | * User: derek Date: 3/17/13 Time: 3:59 PM
13 | */
14 | public class SampleNumberUsingFragment extends BaseSampleActivity {
15 |
16 | @Override
17 | public void onCreate(Bundle savedInstanceState) {
18 | super.onCreate(savedInstanceState);
19 | setContentView(R.layout.frame_layout);
20 |
21 | Fragment fragment = new SampleNumberFragment();
22 | FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
23 |
24 | transaction.replace(R.id.frame, fragment);
25 |
26 | transaction.commit();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/timepicker/SampleTimeBasicUsage.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.timepicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.sample.R;
9 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
10 | import com.codetroopers.betterpickers.timepicker.TimePickerBuilder;
11 | import com.codetroopers.betterpickers.timepicker.TimePickerDialogFragment;
12 |
13 | /**
14 | * User: derek Date: 3/17/13 Time: 3:59 PM
15 | */
16 | public class SampleTimeBasicUsage extends BaseSampleActivity implements TimePickerDialogFragment.TimePickerDialogHandler {
17 |
18 | private TextView mResultTextView;
19 |
20 | @Override
21 | public void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 | setContentView(R.layout.text_and_button);
24 |
25 | mResultTextView = (TextView) findViewById(R.id.text);
26 | Button button = (Button) findViewById(R.id.button);
27 |
28 | mResultTextView.setText(R.string.no_value);
29 | button.setText(R.string.time_picker_set);
30 | button.setOnClickListener(new View.OnClickListener() {
31 | @Override
32 | public void onClick(View v) {
33 | TimePickerBuilder tpb = new TimePickerBuilder()
34 | .setFragmentManager(getSupportFragmentManager())
35 | .setStyleResId(R.style.BetterPickersDialogFragment);
36 | tpb.show();
37 | }
38 | });
39 | }
40 |
41 | @Override
42 | public void onDialogTimeSet(int reference, int hourOfDay, int minute) {
43 | mResultTextView.setText(getString(R.string.time_picker_result_value, String.format("%02d", hourOfDay), String.format("%02d", minute)));
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/timepicker/SampleTimeThemeCustom.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.timepicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.sample.R;
9 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
10 | import com.codetroopers.betterpickers.timepicker.TimePickerBuilder;
11 | import com.codetroopers.betterpickers.timepicker.TimePickerDialogFragment;
12 |
13 | /**
14 | * User: derek Date: 3/17/13 Time: 3:59 PM
15 | */
16 | public class SampleTimeThemeCustom extends BaseSampleActivity
17 | implements TimePickerDialogFragment.TimePickerDialogHandler {
18 |
19 | private TextView mResultTextView;
20 |
21 | @Override
22 | public void onCreate(Bundle savedInstanceState) {
23 | super.onCreate(savedInstanceState);
24 | setContentView(R.layout.text_and_button);
25 |
26 | mResultTextView = (TextView) findViewById(R.id.text);
27 | Button button = (Button) findViewById(R.id.button);
28 |
29 | mResultTextView.setText(R.string.no_value);
30 | button.setText(R.string.time_picker_set);
31 | button.setOnClickListener(new View.OnClickListener() {
32 | @Override
33 | public void onClick(View v) {
34 | TimePickerBuilder tpb = new TimePickerBuilder()
35 | .setFragmentManager(getSupportFragmentManager())
36 | .setStyleResId(R.style.MyCustomBetterPickerTheme);
37 | tpb.show();
38 | }
39 | });
40 | }
41 |
42 | @Override
43 | public void onDialogTimeSet(int reference, int hourOfDay, int minute) {
44 | mResultTextView.setText(getString(R.string.time_picker_result_value, String.format("%02d", hourOfDay), String.format("%02d", minute)));
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/timepicker/SampleTimeThemeLight.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.timepicker;
2 |
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Button;
6 | import android.widget.TextView;
7 |
8 | import com.codetroopers.betterpickers.sample.R;
9 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
10 | import com.codetroopers.betterpickers.timepicker.TimePickerBuilder;
11 | import com.codetroopers.betterpickers.timepicker.TimePickerDialogFragment;
12 |
13 | /**
14 | * User: derek Date: 3/17/13 Time: 3:59 PM
15 | */
16 | public class SampleTimeThemeLight extends BaseSampleActivity
17 | implements TimePickerDialogFragment.TimePickerDialogHandler {
18 |
19 | private TextView mResultTextView;
20 |
21 | @Override
22 | public void onCreate(Bundle savedInstanceState) {
23 | super.onCreate(savedInstanceState);
24 | setContentView(R.layout.text_and_button);
25 |
26 | mResultTextView = (TextView) findViewById(R.id.text);
27 | Button button = (Button) findViewById(R.id.button);
28 |
29 | mResultTextView.setText(R.string.no_value);
30 | button.setText(R.string.time_picker_set);
31 | button.setOnClickListener(new View.OnClickListener() {
32 | @Override
33 | public void onClick(View v) {
34 | TimePickerBuilder tpb = new TimePickerBuilder()
35 | .setFragmentManager(getSupportFragmentManager())
36 | .setStyleResId(R.style.BetterPickersDialogFragment_Light);
37 | tpb.show();
38 | }
39 | });
40 | }
41 |
42 | @Override
43 | public void onDialogTimeSet(int reference, int hourOfDay, int minute) {
44 | mResultTextView.setText(getString(R.string.time_picker_result_value, String.format("%02d", hourOfDay), String.format("%02d", minute)));
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/activity/timepicker/SampleTimeUsingFragment.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.activity.timepicker;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.support.v4.app.FragmentTransaction;
6 |
7 | import com.codetroopers.betterpickers.sample.R;
8 | import com.codetroopers.betterpickers.sample.activity.BaseSampleActivity;
9 | import com.codetroopers.betterpickers.sample.fragment.SampleTimeFragment;
10 |
11 | /**
12 | * User: derek Date: 3/17/13 Time: 3:59 PM
13 | */
14 | public class SampleTimeUsingFragment extends BaseSampleActivity {
15 |
16 | @Override
17 | public void onCreate(Bundle savedInstanceState) {
18 | super.onCreate(savedInstanceState);
19 | setContentView(R.layout.frame_layout);
20 |
21 | Fragment fragment = new SampleTimeFragment();
22 | FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
23 |
24 | transaction.replace(R.id.frame, fragment);
25 |
26 | transaction.commit();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/fragment/SampleDateFragment.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.fragment;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 | import android.widget.Button;
9 | import android.widget.TextView;
10 |
11 | import com.codetroopers.betterpickers.datepicker.DatePickerBuilder;
12 | import com.codetroopers.betterpickers.datepicker.DatePickerDialogFragment;
13 | import com.codetroopers.betterpickers.sample.R;
14 |
15 | /**
16 | * User: derek Date: 4/30/13 Time: 7:43 PM
17 | */
18 | public class SampleDateFragment extends Fragment
19 | implements DatePickerDialogFragment.DatePickerDialogHandler {
20 |
21 | private TextView mResultTextView;
22 |
23 | @Override
24 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
25 | View view = inflater.inflate(R.layout.text_and_button, container, false);
26 |
27 | mResultTextView = (TextView) view.findViewById(R.id.text);
28 | Button button = (Button) view.findViewById(R.id.button);
29 |
30 | mResultTextView.setText(R.string.no_value);
31 | button.setText(R.string.date_picker_set);
32 | button.setOnClickListener(new View.OnClickListener() {
33 | @Override
34 | public void onClick(View v) {
35 | DatePickerBuilder dpb = new DatePickerBuilder()
36 | .setFragmentManager(getChildFragmentManager())
37 | .setStyleResId(R.style.BetterPickersDialogFragment)
38 | .setTargetFragment(SampleDateFragment.this);
39 | dpb.show();
40 | }
41 | });
42 |
43 | return view;
44 | }
45 |
46 |
47 | @Override
48 | public void onDialogDateSet(int reference, int year, int monthOfYear, int dayOfMonth) {
49 | mResultTextView.setText(getString(R.string.date_picker_result_value, year, monthOfYear, dayOfMonth));
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/fragment/SampleHmsFragment.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.fragment;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 | import android.widget.Button;
9 | import android.widget.TextView;
10 |
11 | import com.codetroopers.betterpickers.hmspicker.HmsPickerBuilder;
12 | import com.codetroopers.betterpickers.hmspicker.HmsPickerDialogFragment;
13 | import com.codetroopers.betterpickers.sample.R;
14 |
15 | /**
16 | * User: derek Date: 4/30/13 Time: 7:43 PM
17 | */
18 | public class SampleHmsFragment extends Fragment implements HmsPickerDialogFragment.HmsPickerDialogHandlerV2 {
19 |
20 | private TextView mResultTextView;
21 |
22 | @Override
23 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
24 | View view = inflater.inflate(R.layout.text_and_button, container, false);
25 |
26 | mResultTextView = (TextView) view.findViewById(R.id.text);
27 | Button button = (Button) view.findViewById(R.id.button);
28 |
29 | mResultTextView.setText(R.string.no_value);
30 | button.setText(R.string.hms_picker_set);
31 | button.setOnClickListener(new View.OnClickListener() {
32 | @Override
33 | public void onClick(View v) {
34 | HmsPickerBuilder hpb = new HmsPickerBuilder()
35 | .setFragmentManager(getChildFragmentManager())
36 | .setStyleResId(R.style.BetterPickersDialogFragment)
37 | .setTargetFragment(SampleHmsFragment.this);
38 | hpb.show();
39 | }
40 | });
41 |
42 | return view;
43 | }
44 |
45 | @Override
46 | public void onDialogHmsSet(int reference, boolean isNegative, int hours, int minutes, int seconds) {
47 | mResultTextView.setText(getString(R.string.hms_picker_result_value_multiline, hours, minutes, seconds, isNegative));
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/codetroopers/betterpickers/sample/fragment/SampleTimeFragment.java:
--------------------------------------------------------------------------------
1 | package com.codetroopers.betterpickers.sample.fragment;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 | import android.widget.Button;
9 | import android.widget.TextView;
10 |
11 | import com.codetroopers.betterpickers.sample.R;
12 | import com.codetroopers.betterpickers.timepicker.TimePickerBuilder;
13 | import com.codetroopers.betterpickers.timepicker.TimePickerDialogFragment;
14 |
15 | /**
16 | * User: derek Date: 4/30/13 Time: 7:43 PM
17 | */
18 | public class SampleTimeFragment extends Fragment
19 | implements TimePickerDialogFragment.TimePickerDialogHandler {
20 |
21 | private TextView mResultTextView;
22 |
23 | @Override
24 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
25 | View view = inflater.inflate(R.layout.text_and_button, container, false);
26 |
27 | mResultTextView = (TextView) view.findViewById(R.id.text);
28 | Button button = (Button) view.findViewById(R.id.button);
29 |
30 | mResultTextView.setText(R.string.no_value);
31 | button.setText(R.string.time_picker_set);
32 | button.setOnClickListener(new View.OnClickListener() {
33 | @Override
34 | public void onClick(View v) {
35 | TimePickerBuilder tpb = new TimePickerBuilder()
36 | .setFragmentManager(getChildFragmentManager())
37 | .setStyleResId(R.style.BetterPickersDialogFragment)
38 | .setTargetFragment(SampleTimeFragment.this);
39 | tpb.show();
40 | }
41 | });
42 |
43 | return view;
44 | }
45 |
46 | @Override
47 | public void onDialogTimeSet(int reference, int hourOfDay, int minute) {
48 | mResultTextView.setText(getString(R.string.time_picker_result_value, String.format("%02d", hourOfDay), String.format("%02d", minute)));
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/sample/src/main/res/color/custom_text_color.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
11 |
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-hdpi/ic_menu_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/src/main/res/drawable-hdpi/ic_menu_add.png
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-mdpi/ic_menu_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/src/main/res/drawable-mdpi/ic_menu_add.png
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-v21/button_background_custom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-v21/button_primary.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | -
5 |
6 |
-
7 |
8 |
9 |
10 |
11 |
12 | -
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-v21/key_background_custom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-xhdpi/custom_dialog_background.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/src/main/res/drawable-xhdpi/custom_dialog_background.9.png
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-xhdpi/ic_backspace_disabled_custom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/src/main/res/drawable-xhdpi/ic_backspace_disabled_custom.png
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-xhdpi/ic_backspace_normal_custom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/src/main/res/drawable-xhdpi/ic_backspace_normal_custom.png
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-xhdpi/ic_check_disabled_custom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/src/main/res/drawable-xhdpi/ic_check_disabled_custom.png
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-xhdpi/ic_check_normal_custom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/src/main/res/drawable-xhdpi/ic_check_normal_custom.png
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-xhdpi/ic_menu_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/src/main/res/drawable-xhdpi/ic_menu_add.png
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/code-troopers/android-betterpickers/d729f248d98eb335e284c6d4f9fde4162b8f64cd/sample/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sample/src/main/res/drawable/button_background_custom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
9 |
10 |
14 |
15 |
18 |
19 |
21 |
22 |
--------------------------------------------------------------------------------
/sample/src/main/res/drawable/button_primary.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 | -
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/sample/src/main/res/drawable/ic_backspace_custom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/sample/src/main/res/drawable/ic_check_custom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
8 |
9 |
11 |
12 |
--------------------------------------------------------------------------------
/sample/src/main/res/drawable/key_background_custom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
9 |
10 |
14 |
15 |
18 |
19 |
21 |
22 |
--------------------------------------------------------------------------------
/sample/src/main/res/drawable/tp_done_background_color.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
21 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/sample/src/main/res/layout/date_preset.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
15 |
22 |
29 |
33 |
37 |
--------------------------------------------------------------------------------
/sample/src/main/res/layout/four_buttons.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
12 |
16 |
20 |
24 |
--------------------------------------------------------------------------------
/sample/src/main/res/layout/frame_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/sample/src/main/res/layout/list.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/sample/src/main/res/layout/list_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
14 |
22 |
--------------------------------------------------------------------------------
/sample/src/main/res/layout/text_and_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
12 |
16 |
--------------------------------------------------------------------------------
/sample/src/main/res/layout/text_and_button_colored.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
16 |
17 |
21 |
22 |
27 |
--------------------------------------------------------------------------------
/sample/src/main/res/layout/text_and_three_buttons.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
12 |
16 |
20 |
24 |
--------------------------------------------------------------------------------
/sample/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 2dp
3 |
4 |
--------------------------------------------------------------------------------
/sample/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Month (zero-indexed int)
4 | Date (int)
5 | Year (int)
6 | Set
7 |
8 | --
9 | Set Date
10 | Year: %1$s\nMonth: %2$s\nDay: %3$s
11 | Set Time
12 | %1$d:%2$d
13 | Set Date
14 | Year: %1$s\nMonth: %2$s\nDay: %3$s
15 | Set Expiration
16 | %1$s/%2$s
17 | Set HMS
18 | Hours: %1$s\nMinutes: %2$s\nSeconds: %3$s\nNegative : %4$b
19 | H:%1$s, M:%2$s, S:%3$s
20 | Set Time
21 | %1$s:%2$s
22 | Set Time Zone
23 | Set Recurrence
24 | Set Number
25 | Number: %1$s\nDecimal: %2$s\nIs negative: %3$b\nFull number: %4$s
26 | Here is colorPrimary
27 |
28 | Okay
29 | Nop
30 | Dialog dismissed
31 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':library', ':sample'
2 |
--------------------------------------------------------------------------------