diff --git a/.gitignore b/.gitignore index a4c3358..adf630b 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ /.idea/misc.xml /.idea/codeStyles/ /.idea/vcs.xml +/.idea/inspectionProfiles/ +/.idea/dictionaries/ diff --git a/.idea/copyright/Apache_2_0.xml b/.idea/copyright/Apache_2_0.xml new file mode 100644 index 0000000..5050ebf --- /dev/null +++ b/.idea/copyright/Apache_2_0.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..09e2386 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index e7a698f..a7d154d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,3 +1,16 @@ +/* + * Copyright 2018 Keval Patel + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for + * the specific language governing permissions and limitations under the License. + */ + apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 4ac162f..d3533da 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,4 +1,16 @@ - + + diff --git a/app/src/main/java/com/kevalpatel2106/sample/RulerDemoActivity.kt b/app/src/main/java/com/kevalpatel2106/sample/RulerDemoActivity.kt index 087600a..9ddee3b 100644 --- a/app/src/main/java/com/kevalpatel2106/sample/RulerDemoActivity.kt +++ b/app/src/main/java/com/kevalpatel2106/sample/RulerDemoActivity.kt @@ -1,18 +1,14 @@ /* - * Copyright 2018 Keval Patel. + * Copyright 2018 Keval Patel * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit + * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * http://www.apache.org/licenses/LICENSE-2.0 * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for + * the specific language governing permissions and limitations under the License. */ package com.kevalpatel2106.sample diff --git a/app/src/main/res/layout/activity_ruler_demo.xml b/app/src/main/res/layout/activity_ruler_demo.xml index 28c0077..d793cd7 100644 --- a/app/src/main/res/layout/activity_ruler_demo.xml +++ b/app/src/main/res/layout/activity_ruler_demo.xml @@ -1,18 +1,14 @@ + + #3F51B5 #303F9F diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index dc7d2bb..887ec27 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,3 +1,16 @@ + + - Ruler view sample + Ruler Picker sample diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 5885930..e6699eb 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,3 +1,16 @@ + + diff --git a/build.gradle b/build.gradle index ef6eddb..77d3a03 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,16 @@ +/* + * Copyright 2018 Keval Patel + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for + * the specific language governing permissions and limitations under the License. + */ + // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { diff --git a/docs/allclasses-frame.html b/docs/allclasses-frame.html new file mode 100644 index 0000000..0fad699 --- /dev/null +++ b/docs/allclasses-frame.html @@ -0,0 +1,49 @@ + + + + + + + + All Classes + + + + + +

All Classes

+ + + diff --git a/docs/allclasses-noframe.html b/docs/allclasses-noframe.html new file mode 100644 index 0000000..640c722 --- /dev/null +++ b/docs/allclasses-noframe.html @@ -0,0 +1,45 @@ + + + + + + + + All Classes + + + + + +

All Classes

+ + + diff --git a/docs/com/kevalpatel2106/rulerpicker/ObservableHorizontalScrollView.OnScrollChangedListener.html b/docs/com/kevalpatel2106/rulerpicker/ObservableHorizontalScrollView.OnScrollChangedListener.html new file mode 100644 index 0000000..157370c --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/ObservableHorizontalScrollView.OnScrollChangedListener.html @@ -0,0 +1,298 @@ + + + + + + + + ObservableHorizontalScrollView.OnScrollChangedListener + + + + + + + + + + + + +
+
com.kevalpatel2106.rulerpicker
+

+ Interface ObservableHorizontalScrollView.OnScrollChangedListener

+
+
+
+
    +
  • +
    +
    Enclosing class:
    +
    + ObservableHorizontalScrollView +
    +
    +
    +
    +
    public static interface ObservableHorizontalScrollView.OnScrollChangedListener
    +
  • +
+
+
+ +
+
+
    +
  • + + +
  • +
+
+
+ + + + + + + diff --git a/docs/com/kevalpatel2106/rulerpicker/ObservableHorizontalScrollView.html b/docs/com/kevalpatel2106/rulerpicker/ObservableHorizontalScrollView.html new file mode 100644 index 0000000..fa0123f --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/ObservableHorizontalScrollView.html @@ -0,0 +1,2629 @@ + + + + + + + + ObservableHorizontalScrollView + + + + + + + + + + + + +
+
com.kevalpatel2106.rulerpicker
+

Class + ObservableHorizontalScrollView

+
+
+ +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ObservableHorizontalScrollView

        +
        public ObservableHorizontalScrollView(Context context)
        +
      • +
      + + + +
        +
      • +

        ObservableHorizontalScrollView

        +
        public ObservableHorizontalScrollView(Context context,
        +                                      AttributeSet attrs)
        +
      • +
      + + + +
        +
      • +

        ObservableHorizontalScrollView

        +
        public ObservableHorizontalScrollView(Context context,
        +                                      AttributeSet attrs,
        +                                      int defStyleAttr)
        +
      • +
      + + + +
        +
      • +

        ObservableHorizontalScrollView

        +
        public ObservableHorizontalScrollView(Context context,
        +                                      AttributeSet attrs,
        +                                      int defStyleAttr,
        +                                      int defStyleRes)
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/docs/com/kevalpatel2106/rulerpicker/RulerView.html b/docs/com/kevalpatel2106/rulerpicker/RulerView.html new file mode 100644 index 0000000..a7296cd --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/RulerView.html @@ -0,0 +1,3221 @@ + + + + + + + + RulerView + + + + + + + + + + + + +
+
com.kevalpatel2106.rulerpicker
+

Class RulerView

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    + Drawable.Callback, + AccessibilityEventSource, + KeyEvent.Callback
    +
    +
    +
    +
    final class RulerView
    +extends View
    +
    Created by Keval Patel on 28 Mar 2018. +

    + This is custom View which + will draw a ruler with indicators. + There are two types of indicators: +

  • Long Indicators: These indicators marks specific important value after some + periodic interval. + e.g. Long indicator represents evert 10th (10, 20, 30...) value. +
  • +
  • Short Indicators: There indicators represents single value.
  • +
+ + +
+
+ +
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        refreshPaint

        +
        private void refreshPaint()
        +
        Create the indicator paint and value text color. +
        +
      • +
      + + + +
        +
      • +

        onDraw

        +
        protected void onDraw(Canvas canvas)
        +
        +
        Overrides:
        +
        onDraw in + class View +
        +
        +
      • +
      + + + +
        +
      • +

        onMeasure

        +
        protected void onMeasure(int widthMeasureSpec,
        +                         int heightMeasureSpec)
        +
        +
        Overrides:
        +
        onMeasure in + class View +
        +
        +
      • +
      + + + +
        +
      • +

        updateIndicatorHeight

        +
        private void updateIndicatorHeight(float longIndicatorHeightRatio,
        +                                   float shortIndicatorHeightRatio)
        +
        Calculate and update the height of the long and the + short indicators based on new ratios. +
        +
        +
        Parameters:
        +
        longIndicatorHeightRatio - Ratio of long indicator + height to the ruler height. +
        +
        shortIndicatorHeightRatio - Ratio of short + indicator height to the ruler height. +
        +
        +
      • +
      + + + +
        +
      • +

        drawSmallIndicator

        +
        private void drawSmallIndicator(@NonNull
        +                                Canvas canvas,
        +                                int value)
        +
        Draw the vertical short line at every value.
        +
        +
        Parameters:
        +
        canvas - Canvas + on which the line will be drawn. +
        +
        value - Value to calculate the position of the + indicator. +
        +
        +
      • +
      + + + +
        +
      • +

        drawLongIndicator

        +
        private void drawLongIndicator(@NonNull
        +                               Canvas canvas,
        +                               int value)
        +
        Draw the vertical long line.
        +
        +
        Parameters:
        +
        canvas - Canvas + on which the line will be drawn. +
        +
        value - Value to calculate the position of the + indicator. +
        +
        +
      • +
      + + + +
        +
      • +

        drawValueText

        +
        private void drawValueText(@NonNull
        +                           Canvas canvas,
        +                           int value)
        +
        Draw the value number below the longer indicator. + This will use mTextPaint + to draw + the text. +
        +
        +
        Parameters:
        +
        canvas - Canvas + on which the text will be drawn. +
        +
        value - Value to draw.
        +
        +
      • +
      + + + +
        +
      • +

        setTextColorRes

        +
        public void setTextColorRes(@ColorRes
        +                            int color)
        +
        Set the color of the text to display on the ruler. +
        +
        +
        Parameters:
        +
        color - Color resource id.
        +
        +
      • +
      + + + +
        +
      • +

        setTextSizeRes

        +
        public void setTextSizeRes(@DimenRes
        +                           int dimension)
        +
        Set the size of the text to display on the ruler. +
        +
        +
        Parameters:
        +
        dimension - Text size dimension resource.
        +
        +
      • +
      + + + +
        +
      • +

        setIndicatorColorRes

        +
        public void setIndicatorColorRes(@ColorRes
        +                                 int color)
        +
        Set the indicator color.
        +
        +
        Parameters:
        +
        color - Color resource id.
        +
        +
      • +
      + + + +
        +
      • +

        setIndicatorWidthRes

        +
        public void setIndicatorWidthRes(@DimenRes
        +                                 int width)
        +
        Set the width of the indicator line in the ruler. +
        +
        +
        Parameters:
        +
        width - Dimension resource for indicator width. +
        +
        +
      • +
      + + + +
        +
      • +

        setValueRange

        +
        public void setValueRange(int minValue,
        +                          int maxValue)
        +
        Set the maximum value to display on the ruler. This + will decide the range of values and number + of indicators that ruler will draw. +
        +
        +
        Parameters:
        +
        minValue - Value to display at the left end of the + ruler. This can be positive, negative + or zero. Default minimum value is 0. +
        +
        maxValue - Value to display at the right end of the + ruler. This can be positive, negative + or zero.This value must be greater than min value. Default + minimum value is 100. +
        +
        +
      • +
      + + + +
        +
      • +

        setIndicatorIntervalDistance

        +
        public void setIndicatorIntervalDistance(int indicatorIntervalPx)
        +
        Set the spacing between two vertical + lines/indicators. Default value is 14 pixels. +
        +
        +
        Parameters:
        +
        indicatorIntervalPx - Distance in pixels. This + cannot be negative number or zero. +
        +
        Throws:
        +
        IllegalArgumentException + - if interval is negative or zero. +
        +
        +
      • +
      + + + +
        +
      • +

        setIndicatorHeight

        +
        public void setIndicatorHeight(float longHeightRatio,
        +                               float shortHeightRatio)
        +
        Set the height of the long and short indicators. +
        +
        +
        Parameters:
        +
        longHeightRatio - Ratio of long indicator height to + the ruler height. This value must + be between 0 to 1. The value should greater than mShortIndicatorHeight. + Default value is 0.6 (i.e. 60%). If the value is 0, indicator + won't + be displayed. If the value is 1, indicator height will be same + as the + ruler height. +
        +
        shortHeightRatio - Ratio of short indicator height + to the ruler height. This value must + be between 0 to 1. The value should less than mLongIndicatorHeight. + Default value is 0.4 (i.e. 40%). If the value is 0, indicator + won't + be displayed. If the value is 1, indicator height will be same + as + the ruler height. +
        +
        Throws:
        +
        IllegalArgumentException + - if any of the parameter is invalid. +
        +
        +
      • +
      + + + + + + + +
        +
      • +

        setIndicatorColor

        +
        public void setIndicatorColor(int color)
        +
        Set the indicator color.
        +
        +
        Parameters:
        +
        color - Color integer value.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        setIndicatorWidth

        +
        public void setIndicatorWidth(@DimenRes
        +                              int widthDp)
        +
        Set the width of the indicator line in the ruler. +
        +
        +
        Parameters:
        +
        widthDp - Width in dp.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        setTextColor

        +
        public void setTextColor(int color)
        +
        Set the color of the text to display on the ruler. +
        +
        +
        Parameters:
        +
        color - Color integer value.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        setTextSize

        +
        public void setTextSize(@DimenRes
        +                        int dimensionDp)
        +
        Set the size of the text to display on the ruler. +
        +
        +
        Parameters:
        +
        dimensionDp - Text size dimension in dp.
        +
        +
      • +
      + + + + + + + + + + + + + + + + + + + + +
    • +
    +
  • +
+
+ + + + + + + + diff --git a/docs/com/kevalpatel2106/rulerpicker/RulerViewUtils.html b/docs/com/kevalpatel2106/rulerpicker/RulerViewUtils.html new file mode 100644 index 0000000..9dd0f65 --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/RulerViewUtils.html @@ -0,0 +1,364 @@ + + + + + + + + RulerViewUtils + + + + + + + + + + + + +
+
com.kevalpatel2106.rulerpicker
+

Class RulerViewUtils

+
+
+ +
+
    +
  • +
    +
    +
    final class RulerViewUtils
    +extends Object
    +
    Created by Kevalpatel2106 on 28-Mar-18. + Utils classes for this library. +
    +
    +
    Author:
    +
    kevalpatel2106
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RulerViewUtils

        +
        RulerViewUtils()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        sp2px

        +
        static int sp2px(@NonNull
        +                 Context context,
        +                 float spValue)
        +
        Convert SP to pixel.
        +
        +
        Parameters:
        +
        context - Context.
        +
        spValue - Value in sp to convert.
        +
        Returns:
        +
        Value in pixels.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/com/kevalpatel2106/rulerpicker/ScrollingValuePicker.html b/docs/com/kevalpatel2106/rulerpicker/ScrollingValuePicker.html new file mode 100644 index 0000000..b990d40 --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/ScrollingValuePicker.html @@ -0,0 +1,2896 @@ + + + + + + + + ScrollingValuePicker + + + + + + + + + + + + +
+
com.kevalpatel2106.rulerpicker
+

Class ScrollingValuePicker

+
+
+ +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        mLeftSpacer

        +
        private View mLeftSpacer
        +
      • +
      + + + +
        +
      • +

        mRightSpacer

        +
        private View mRightSpacer
        +
      • +
      + + + +
        +
      • +

        mRulerView

        +
        private RulerView mRulerView
        +
      • +
      + + + + + + + +
        +
      • +

        viewMultipleSize

        +
        private float viewMultipleSize
        +
      • +
      + + + +
        +
      • +

        maxValue

        +
        private float maxValue
        +
      • +
      + + + +
        +
      • +

        minValue

        +
        private float minValue
        +
      • +
      + + + +
        +
      • +

        valueMultiple

        +
        private int valueMultiple
        +
      • +
      + + + +
        +
      • +

        mPathPaint

        +
        private Paint mPathPaint
        +
      • +
      + + + +
        +
      • +

        mRulerStrokePath

        +
        private Path mRulerStrokePath
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ScrollingValuePicker

        +
        public ScrollingValuePicker(Context context)
        +
      • +
      + + + +
        +
      • +

        ScrollingValuePicker

        +
        public ScrollingValuePicker(Context context,
        +                            AttributeSet attrs)
        +
      • +
      + + + +
        +
      • +

        ScrollingValuePicker

        +
        public ScrollingValuePicker(Context context,
        +                            AttributeSet attrs,
        +                            int defStyleAttr)
        +
      • +
      + + + +
        +
      • +

        ScrollingValuePicker

        +
        public ScrollingValuePicker(Context context,
        +                            AttributeSet attrs,
        +                            int defStyleAttr,
        +                            int defStyleRes)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        setMinMaxValue

        +
        public void setMinMaxValue(int minValue,
        +                           int maxValue)
        +
      • +
      + + + +
        +
      • +

        getViewMultipleSize

        +
        public float getViewMultipleSize()
        +
      • +
      + + + +
        +
      • +

        setViewMultipleSize

        +
        public void setViewMultipleSize(float size)
        +
      • +
      + + + +
        +
      • +

        init

        +
        private void init(Context context)
        +
      • +
      + + + +
        +
      • +

        calculateRulerStrokePath

        +
        private void calculateRulerStrokePath()
        +
      • +
      + + + +
        +
      • +

        prepareRuler

        +
        private void prepareRuler(Context context)
        +
      • +
      + + + +
        +
      • +

        addScrollbar

        +
        private void addScrollbar(Context context)
        +
      • +
      + + + + + + + +
        +
      • +

        onDraw

        +
        protected void onDraw(Canvas canvas)
        +
        +
        Overrides:
        +
        onDraw in + class View +
        +
        +
      • +
      + + + +
        +
      • +

        onLayout

        +
        protected void onLayout(boolean changed,
        +                        int left,
        +                        int top,
        +                        int right,
        +                        int bottom)
        +
        +
        Overrides:
        +
        onLayout in + class FrameLayout +
        +
        +
      • +
      + + + +
        +
      • +

        getCurrentValue

        +
        public int getCurrentValue(int l)
        +
        Get the currently selected value in the value + picker. +
        +
        +
        Returns:
        +
        Current value without offset adjustment.
        +
        +
      • +
      + + + +
        +
      • +

        getValueAndScrollItemToCenter

        +
        public int getValueAndScrollItemToCenter(int l)
        +
        Get the currently selected value in the value + picker and move that value to the center of + the ruler and adjust offsets. +
        +
        +
        Returns:
        +
        value selected with offset adjustment. (This value will be + whole integer always.) +
        +
        +
      • +
      + + + +
        +
      • +

        scrollToValue

        +
        public void scrollToValue(float value)
        +
        Scroll the ruler to the given value.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/com/kevalpatel2106/rulerpicker/class-use/ObservableHorizontalScrollView.OnScrollChangedListener.html b/docs/com/kevalpatel2106/rulerpicker/class-use/ObservableHorizontalScrollView.OnScrollChangedListener.html new file mode 100644 index 0000000..95ac40e --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/class-use/ObservableHorizontalScrollView.OnScrollChangedListener.html @@ -0,0 +1,230 @@ + + + + + + + + Uses of Interface + com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView.OnScrollChangedListener + + + + + + + + + + + +
+

Uses of Interface
com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView.OnScrollChangedListener +

+
+
+ +
+ + + + + + diff --git a/docs/com/kevalpatel2106/rulerpicker/class-use/ObservableHorizontalScrollView.html b/docs/com/kevalpatel2106/rulerpicker/class-use/ObservableHorizontalScrollView.html new file mode 100644 index 0000000..3601d84 --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/class-use/ObservableHorizontalScrollView.html @@ -0,0 +1,243 @@ + + + + + + + + Uses of Class com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView + + + + + + + + + + + +
+

Uses of Class
com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView +

+
+
+ +
+ + + + + + diff --git a/docs/com/kevalpatel2106/rulerpicker/class-use/RulerView.html b/docs/com/kevalpatel2106/rulerpicker/class-use/RulerView.html new file mode 100644 index 0000000..e657795 --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/class-use/RulerView.html @@ -0,0 +1,188 @@ + + + + + + + + Uses of Class com.kevalpatel2106.rulerpicker.RulerView + + + + + + + + + + + +
+

Uses of + Class
com.kevalpatel2106.rulerpicker.RulerView

+
+
+ +
+ + + + + + diff --git a/docs/com/kevalpatel2106/rulerpicker/class-use/RulerViewUtils.html b/docs/com/kevalpatel2106/rulerpicker/class-use/RulerViewUtils.html new file mode 100644 index 0000000..bfa3f33 --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/class-use/RulerViewUtils.html @@ -0,0 +1,150 @@ + + + + + + + + Uses of Class com.kevalpatel2106.rulerpicker.RulerViewUtils + + + + + + + + + + + +
+

Uses of + Class
com.kevalpatel2106.rulerpicker.RulerViewUtils

+
+
No usage of com.kevalpatel2106.rulerpicker.RulerViewUtils
+ + + + + + diff --git a/docs/com/kevalpatel2106/rulerpicker/class-use/ScrollingValuePicker.html b/docs/com/kevalpatel2106/rulerpicker/class-use/ScrollingValuePicker.html new file mode 100644 index 0000000..0d58932 --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/class-use/ScrollingValuePicker.html @@ -0,0 +1,150 @@ + + + + + + + + Uses of Class com.kevalpatel2106.rulerpicker.ScrollingValuePicker + + + + + + + + + + + +
+

Uses + of Class
com.kevalpatel2106.rulerpicker.ScrollingValuePicker

+
+
No usage of com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+ + + + + + diff --git a/docs/com/kevalpatel2106/rulerpicker/package-frame.html b/docs/com/kevalpatel2106/rulerpicker/package-frame.html new file mode 100644 index 0000000..9312134 --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/package-frame.html @@ -0,0 +1,50 @@ + + + + + + + + com.kevalpatel2106.rulerpicker + + + + + +

com.kevalpatel2106.rulerpicker

+ + + diff --git a/docs/com/kevalpatel2106/rulerpicker/package-summary.html b/docs/com/kevalpatel2106/rulerpicker/package-summary.html new file mode 100644 index 0000000..2e17e45 --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/package-summary.html @@ -0,0 +1,211 @@ + + + + + + + + com.kevalpatel2106.rulerpicker + + + + + + + + + + + +
+

Package com.kevalpatel2106.rulerpicker

+
+
+ +
+ + + + + + diff --git a/docs/com/kevalpatel2106/rulerpicker/package-tree.html b/docs/com/kevalpatel2106/rulerpicker/package-tree.html new file mode 100644 index 0000000..04d6c10 --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/package-tree.html @@ -0,0 +1,220 @@ + + + + + + + + com.kevalpatel2106.rulerpicker Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package com.kevalpatel2106.rulerpicker

+
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/com/kevalpatel2106/rulerpicker/package-use.html b/docs/com/kevalpatel2106/rulerpicker/package-use.html new file mode 100644 index 0000000..4d297bf --- /dev/null +++ b/docs/com/kevalpatel2106/rulerpicker/package-use.html @@ -0,0 +1,180 @@ + + + + + + + + Uses of Package com.kevalpatel2106.rulerpicker + + + + + + + + + + + +
+

Uses of Package
com.kevalpatel2106.rulerpicker +

+
+
+ +
+ + + + + + diff --git a/docs/constant-values.html b/docs/constant-values.html new file mode 100644 index 0000000..9212a84 --- /dev/null +++ b/docs/constant-values.html @@ -0,0 +1,141 @@ + + + + + + + + Constant Field Values + + + + + + + + + + + +
+

Constant Field Values

+

Contents

+
+ + + + + + diff --git a/docs/deprecated-list.html b/docs/deprecated-list.html new file mode 100644 index 0000000..369a039 --- /dev/null +++ b/docs/deprecated-list.html @@ -0,0 +1,141 @@ + + + + + + + + Deprecated List + + + + + + + + +
+ + + + + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + + + + + + +
+ + + + diff --git a/docs/help-doc.html b/docs/help-doc.html new file mode 100644 index 0000000..937a7a5 --- /dev/null +++ b/docs/help-doc.html @@ -0,0 +1,277 @@ + + + + + + + + API Help + + + + + + + + +
+ + + + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages + corresponding to the items in the navigation bar, described as follows. +
+
+
+
    +
  • +

    Package

    +

    Each package has a page that contains a list of its classes and interfaces, with a + summary for each. This page can contain six categories:

    +
      +
    • Interfaces (italic)
    • +
    • Classes
    • +
    • Enums
    • +
    • Exceptions
    • +
    • Errors
    • +
    • Annotation Types
    • +
    +
  • +
  • +

    Class/Interface

    +

    Each class, interface, nested class and nested interface has its own separate page. + Each of these pages has three sections consisting of a class/interface description, + summary tables, and detailed member descriptions:

    +
      +
    • Class inheritance diagram
    • +
    • Direct Subclasses
    • +
    • All Known Subinterfaces
    • +
    • All Known Implementing Classes
    • +
    • Class/interface declaration
    • +
    • Class/interface description
    • +
    +
      +
    • Nested Class Summary
    • +
    • Field Summary
    • +
    • Constructor Summary
    • +
    • Method Summary
    • +
    +
      +
    • Field Detail
    • +
    • Constructor Detail
    • +
    • Method Detail
    • +
    +

    Each summary entry contains the first sentence from the detailed description for that + item. The summary entries are alphabetical, while the detailed descriptions are in + the order they appear in the source code. This preserves the logical groupings + established by the programmer.

    +
  • +
  • +

    Annotation Type

    +

    Each annotation type has its own separate page with the following sections:

    +
      +
    • Annotation Type declaration
    • +
    • Annotation Type description
    • +
    • Required Element Summary
    • +
    • Optional Element Summary
    • +
    • Element Detail
    • +
    +
  • +
  • +

    Enum

    +

    Each enum has its own separate page with the following sections:

    +
      +
    • Enum declaration
    • +
    • Enum description
    • +
    • Enum Constant Summary
    • +
    • Enum Constant Detail
    • +
    +
  • +
  • +

    Use

    +

    Each documented package, class and interface has its own Use page. This page + describes what packages, classes, methods, constructors and fields use any part of + the given class or package. Given a class or interface A, its Use page includes + subclasses of A, fields declared as A, methods that return A, and methods and + constructors with parameters of type A. You can access this page by first going to + the package, class or interface, then clicking on the "Use" link in the navigation + bar.

    +
  • +
  • +

    Tree (Class Hierarchy)

    +

    There is a Class Hierarchy page for all packages, + plus a hierarchy for each package. Each hierarchy page contains a list of classes + and a list of interfaces. The classes are organized by inheritance structure + starting with java.lang.Object. The interfaces do not inherit from + java.lang.Object.

    +
      +
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for + all packages. +
    • +
    • When viewing a particular package, class or interface page, clicking "Tree" + displays the hierarchy for only that package. +
    • +
    +
  • +
  • +

    Deprecated API

    +

    The Deprecated API page lists all of the API that + have been deprecated. A deprecated API is not recommended for use, generally due to + improvements, and a replacement API is usually given. Deprecated APIs may be removed + in future implementations.

    +
  • +
  • +

    Index

    +

    The Index contains an alphabetic list of all + classes, interfaces, constructors, methods, and fields.

    +
  • +
  • +

    Prev/Next

    +

    These links take you to the next or previous class, interface, package, or related + page.

    +
  • +
  • +

    Frames/No Frames

    +

    These links show and hide the HTML frames. All pages are available with or without + frames.

    +
  • +
  • +

    All Classes

    +

    The All Classes link shows all classes and + interfaces except non-static nested types.

    +
  • +
  • +

    Serialized Form

    +

    Each serializable or externalizable class has a description of its serialization + fields and methods. This information is of interest to re-implementors, not to + developers using the API. While there is no link in the navigation bar, you can get + to this information by going to any serialized class and clicking "Serialized Form" + in the "See also" section of the class description.

    +
  • +
  • +

    Constant Field Values

    +

    The Constant Field Values page lists the static + final fields and their values.

    +
  • +
+ This help file applies to API documentation generated using the standard doclet. +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-files/index-1.html b/docs/index-files/index-1.html new file mode 100644 index 0000000..d42bc1e --- /dev/null +++ b/docs/index-files/index-1.html @@ -0,0 +1,161 @@ + + + + + + + + A-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D G I M N O P R S U V  + + +

A

+
+
addScrollbar(Context) + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
+ A C D G I M N O P R S U V  +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-files/index-10.html b/docs/index-files/index-10.html new file mode 100644 index 0000000..a63d403 --- /dev/null +++ b/docs/index-files/index-10.html @@ -0,0 +1,208 @@ + + + + + + + + R-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D G I M N O P R S U V  + + +

R

+
+
refreshPaint() + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Create the indicator paint and value text color.
+
+
RulerView - Class in com.kevalpatel2106.rulerpicker +
+
+
Created by Keval Patel on 28 Mar 2018.
+
+
RulerView(Context) + - Constructor for class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
RulerView(Context, AttributeSet) + - Constructor for class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
RulerView(Context, AttributeSet, int) + - Constructor for class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
RulerView(Context, AttributeSet, int, int) + - Constructor for class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
RulerViewUtils + - Class in com.kevalpatel2106.rulerpicker +
+
+
Created by Kevalpatel2106 on 28-Mar-18.
+
+
RulerViewUtils() + - Constructor for class com.kevalpatel2106.rulerpicker.RulerViewUtils
+
 
+
+ A C D G I M N O P R S U V  +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-files/index-11.html b/docs/index-files/index-11.html new file mode 100644 index 0000000..79e1bef --- /dev/null +++ b/docs/index-files/index-11.html @@ -0,0 +1,329 @@ + + + + + + + + S-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D G I M N O P R S U V  + + +

S

+
+
scrollerTask + - Variable in class com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView +
+
 
+
ScrollingValuePicker + - Class in com.kevalpatel2106.rulerpicker +
+
+
Created by DWFOX on 2016-09-01.
+
+
ScrollingValuePicker(Context) + - Constructor for class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
ScrollingValuePicker(Context, AttributeSet) + - Constructor for class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
ScrollingValuePicker(Context, AttributeSet, int) + - Constructor for class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
ScrollingValuePicker(Context, AttributeSet, int, int) + - Constructor for class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
scrollToValue(float) + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
+
Scroll the ruler to the given value.
+
+
setIndicatorColor(int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Set the indicator color.
+
+
setIndicatorColorRes(int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Set the indicator color.
+
+
setIndicatorHeight(float, float) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Set the height of the long and short indicators.
+
+
setIndicatorIntervalDistance(int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Set the spacing between two vertical lines/indicators.
+
+
setIndicatorWidth(int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Set the width of the indicator line in the ruler.
+
+
setIndicatorWidthRes(int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Set the width of the indicator line in the ruler.
+
+
setMinMaxValue(int, int) + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
setOnScrollChangedListener(ObservableHorizontalScrollView.OnScrollChangedListener) + - Method in class com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView +
+
 
+
setOnScrollChangedListener(ObservableHorizontalScrollView.OnScrollChangedListener) + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
setTextColor(int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Set the color of the text to display on the ruler.
+
+
setTextColorRes(int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Set the color of the text to display on the ruler.
+
+
setTextSize(int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Set the size of the text to display on the ruler.
+
+
setTextSizeRes(int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Set the size of the text to display on the ruler.
+
+
setValueRange(int, int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Set the maximum value to display on the ruler.
+
+
setViewMultipleSize(float) + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
sp2px(Context, float) + - Static method in class com.kevalpatel2106.rulerpicker.RulerViewUtils
+
+
Convert SP to pixel.
+
+
startScrollerTask() + - Method in class com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView +
+
 
+
+ A C D G I M N O P R S U V  +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-files/index-12.html b/docs/index-files/index-12.html new file mode 100644 index 0000000..e15422f --- /dev/null +++ b/docs/index-files/index-12.html @@ -0,0 +1,165 @@ + + + + + + + + U-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D G I M N O P R S U V  + + +

U

+
+
updateIndicatorHeight(float, float) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Calculate and update the height of the long and the short indicators + based on new ratios. +
+
+
+ A C D G I M N O P R S U V  +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-files/index-13.html b/docs/index-files/index-13.html new file mode 100644 index 0000000..d5a0238 --- /dev/null +++ b/docs/index-files/index-13.html @@ -0,0 +1,167 @@ + + + + + + + + V-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D G I M N O P R S U V  + + +

V

+
+
valueMultiple + - Variable in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
viewMultipleSize + - Variable in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
+ A C D G I M N O P R S U V  +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-files/index-2.html b/docs/index-files/index-2.html new file mode 100644 index 0000000..e299146 --- /dev/null +++ b/docs/index-files/index-2.html @@ -0,0 +1,165 @@ + + + + + + + + C-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D G I M N O P R S U V  + + +

C

+
+
calculateRulerStrokePath() + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
com.kevalpatel2106.rulerpicker + - package com.kevalpatel2106.rulerpicker +
+
 
+
+ A C D G I M N O P R S U V  +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-files/index-3.html b/docs/index-files/index-3.html new file mode 100644 index 0000000..f1530d9 --- /dev/null +++ b/docs/index-files/index-3.html @@ -0,0 +1,179 @@ + + + + + + + + D-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D G I M N O P R S U V  + + +

D

+
+
drawLongIndicator(Canvas, int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Draw the vertical long line.
+
+
drawSmallIndicator(Canvas, int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Draw the vertical short line at every value.
+
+
drawValueText(Canvas, int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Draw the value number below the longer indicator.
+
+
+ A C D G I M N O P R S U V  +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-files/index-4.html b/docs/index-files/index-4.html new file mode 100644 index 0000000..ee1ccf0 --- /dev/null +++ b/docs/index-files/index-4.html @@ -0,0 +1,240 @@ + + + + + + + + G-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D G I M N O P R S U V  + + +

G

+
+
getCurrentValue(int) + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
+
Get the currently selected value in the value picker.
+
+
getHorizontalScrollView() + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
getIndicatorColor() + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
getIndicatorIntervalWidth() + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
getIndicatorWidth() + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
getLongIndicatorHeightRatio() + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
getMaxValue() + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
getMinValue() + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
getShortIndicatorHeightRatio() + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
getTextColor() + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
getTextSize() + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
getValueAndScrollItemToCenter(int) + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
+
Get the currently selected value in the value picker and move that + value to the center of + the ruler and adjust offsets. +
+
+
getViewMultipleSize() + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
+ A C D G I M N O P R S U V  +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-files/index-5.html b/docs/index-files/index-5.html new file mode 100644 index 0000000..d83e44f --- /dev/null +++ b/docs/index-files/index-5.html @@ -0,0 +1,175 @@ + + + + + + + + I-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D G I M N O P R S U V  + + +

I

+
+
init() + - Method in class com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView +
+
 
+
init(Context) + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
initialPosition + - Variable in class com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView +
+
 
+
+ A C D G I M N O P R S U V  +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-files/index-6.html b/docs/index-files/index-6.html new file mode 100644 index 0000000..b8b9c11 --- /dev/null +++ b/docs/index-files/index-6.html @@ -0,0 +1,339 @@ + + + + + + + + M-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D G I M N O P R S U V  + + +

M

+
+
maxValue + - Variable in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
mHorizontalScrollView + - Variable in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
mIndicatorColor + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Integer color of the indicators.
+
+
mIndicatorInterval + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Distance interval between two subsequent indicators on the ruler. +
+
+
mIndicatorPaint + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Paint for the + line in the ruler view. +
+
+
mIndicatorWidth + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Width of the indicator in dp.
+
+
minValue + - Variable in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
mLeftSpacer + - Variable in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
mLongIndicatorHeight + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Actual height of the long indicator in pixels.
+
+
mLongIndicatorHeightRatio + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Ratio of long indicator height to the ruler height.
+
+
mMaxValue + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Maximum value.
+
+
mMinValue + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Minimum value.
+
+
mOnScrollChangedListener + - Variable in class com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView +
+
 
+
mPathPaint + - Variable in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
mRightSpacer + - Variable in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
mRulerStrokePath + - Variable in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
mRulerView + - Variable in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
mShortIndicatorHeight + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Actual height of the short indicator in pixels.
+
+
mShortIndicatorHeightRatio + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Ratio of short indicator height to the ruler height.
+
+
mTextColor + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Integer color of the text, that is displayed on the ruler.
+
+
mTextPaint + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Paint to display + the text on the ruler view. +
+
+
mTextSize + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Height of the text, that is displayed on ruler in dp.
+
+
mViewHeight + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Height of the view.
+
+
mViewWidth + - Variable in class com.kevalpatel2106.rulerpicker.RulerView
+
+
Width of the view.
+
+
+ A C D G I M N O P R S U V  +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-files/index-7.html b/docs/index-files/index-7.html new file mode 100644 index 0000000..e867dd2 --- /dev/null +++ b/docs/index-files/index-7.html @@ -0,0 +1,162 @@ + + + + + + + + N-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D G I M N O P R S U V  + + +

N

+
+
newCheck + - Variable in class com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView +
+
 
+
+ A C D G I M N O P R S U V  +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-files/index-8.html b/docs/index-files/index-8.html new file mode 100644 index 0000000..2dbdd5b --- /dev/null +++ b/docs/index-files/index-8.html @@ -0,0 +1,241 @@ + + + + + + + + O-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D G I M N O P R S U V  + + +

O

+
+
ObservableHorizontalScrollView + - Class in com.kevalpatel2106.rulerpicker +
+
+
Created by DWFOX on 2016-09-01.
+
+
ObservableHorizontalScrollView(Context) + - Constructor for class com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView +
+
 
+
ObservableHorizontalScrollView(Context, AttributeSet) + - Constructor for class com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView +
+
 
+
ObservableHorizontalScrollView(Context, AttributeSet, int) + - Constructor for class com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView +
+
 
+
ObservableHorizontalScrollView(Context, AttributeSet, int, int) + - Constructor for class com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView +
+
 
+
+ ObservableHorizontalScrollView.OnScrollChangedListener + - Interface in com.kevalpatel2106.rulerpicker +
+
 
+
onDraw(Canvas) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
onDraw(Canvas) + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
onLayout(boolean, int, int, int, int) + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
onMeasure(int, int) + - Method in class com.kevalpatel2106.rulerpicker.RulerView
+
 
+
onScrollChanged(int, int, int, int) + - Method in class com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView +
+
 
+
onScrollChanged(ObservableHorizontalScrollView, int, int) + - Method in interface com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView.OnScrollChangedListener +
+
 
+
onScrollStopped(int, int) + - Method in interface com.kevalpatel2106.rulerpicker.ObservableHorizontalScrollView.OnScrollChangedListener +
+
 
+
+ A C D G I M N O P R S U V  +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index-files/index-9.html b/docs/index-files/index-9.html new file mode 100644 index 0000000..ebbe70e --- /dev/null +++ b/docs/index-files/index-9.html @@ -0,0 +1,161 @@ + + + + + + + + P-Index + + + + + + + + +
+ + + + + + + +
+ + +
A C D G I M N O P R S U V  + + +

P

+
+
prepareRuler(Context) + - Method in class com.kevalpatel2106.rulerpicker.ScrollingValuePicker
+
 
+
+ A C D G I M N O P R S U V  +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..430180e --- /dev/null +++ b/docs/index.html @@ -0,0 +1,92 @@ + + + + + + + + Generated Documentation (Untitled) + + + + + + + <noscript> + <div>JavaScript is disabled on your browser.</div> + </noscript> + <h2>Frame Alert</h2> + <p>This document is designed to be viewed using the frames feature. If you see this message, + you are using a non-frame-capable web client. Link to <a + href="com/kevalpatel2106/rulerpicker/package-summary.html">Non-frame version</a>. + </p> + + + diff --git a/docs/overview-tree.html b/docs/overview-tree.html new file mode 100644 index 0000000..fc3f70c --- /dev/null +++ b/docs/overview-tree.html @@ -0,0 +1,223 @@ + + + + + + + + Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For All Packages

+ Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/docs/package-list b/docs/package-list new file mode 100644 index 0000000..7320542 --- /dev/null +++ b/docs/package-list @@ -0,0 +1 @@ +com.kevalpatel2106.rulerpicker diff --git a/docs/script.js b/docs/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/docs/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/docs/stylesheet.css b/docs/stylesheet.css new file mode 100644 index 0000000..98055b2 --- /dev/null +++ b/docs/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/gradle.properties b/gradle.properties index 743d692..8ed8221 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,15 @@ +# +# Copyright 2018 Keval Patel +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index f606047..25cc039 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,3 +1,15 @@ +# +# Copyright 2018 Keval Patel +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# #Wed Mar 28 13:10:59 IST 2018 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists diff --git a/ruler-picker/bintray.gradle b/ruler-picker/bintray.gradle index 6792821..c0a1358 100644 --- a/ruler-picker/bintray.gradle +++ b/ruler-picker/bintray.gradle @@ -1,5 +1,5 @@ /* - * Copyright 2017 Keval Patel + * Copyright 2018 Keval Patel * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit * the License. You may obtain a copy of the License at diff --git a/ruler-picker/build.gradle b/ruler-picker/build.gradle index 56b9c73..3e8c724 100644 --- a/ruler-picker/build.gradle +++ b/ruler-picker/build.gradle @@ -1,3 +1,16 @@ +/* + * Copyright 2018 Keval Patel + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for + * the specific language governing permissions and limitations under the License. + */ + apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' diff --git a/ruler-picker/src/main/AndroidManifest.xml b/ruler-picker/src/main/AndroidManifest.xml index 1191ea7..9c0ec10 100644 --- a/ruler-picker/src/main/AndroidManifest.xml +++ b/ruler-picker/src/main/AndroidManifest.xml @@ -1 +1,14 @@ + + diff --git a/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/ObservableHorizontalScrollView.java b/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/ObservableHorizontalScrollView.java index 95da475..bc95174 100644 --- a/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/ObservableHorizontalScrollView.java +++ b/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/ObservableHorizontalScrollView.java @@ -1,18 +1,14 @@ /* - * Copyright 2018 Keval Patel. + * Copyright 2018 Keval Patel * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit + * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * http://www.apache.org/licenses/LICENSE-2.0 * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for + * the specific language governing permissions and limitations under the License. */ package com.kevalpatel2106.rulerpicker; diff --git a/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/RulerView.java b/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/RulerView.java index 81c6c65..9883602 100644 --- a/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/RulerView.java +++ b/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/RulerView.java @@ -1,18 +1,14 @@ /* - * Copyright 2018 Keval Patel. + * Copyright 2018 Keval Patel * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit + * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * http://www.apache.org/licenses/LICENSE-2.0 * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for + * the specific language governing permissions and limitations under the License. */ package com.kevalpatel2106.rulerpicker; diff --git a/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/RulerViewUtils.java b/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/RulerViewUtils.java index 9d0675b..f6d563c 100644 --- a/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/RulerViewUtils.java +++ b/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/RulerViewUtils.java @@ -1,3 +1,16 @@ +/* + * Copyright 2018 Keval Patel + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for + * the specific language governing permissions and limitations under the License. + */ + package com.kevalpatel2106.rulerpicker; import android.content.Context; diff --git a/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/ScrollingValuePicker.java b/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/ScrollingValuePicker.java index f426b9e..ffe3a74 100644 --- a/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/ScrollingValuePicker.java +++ b/ruler-picker/src/main/java/com/kevalpatel2106/rulerpicker/ScrollingValuePicker.java @@ -1,18 +1,14 @@ /* - * Copyright 2018 Keval Patel. + * Copyright 2018 Keval Patel * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit + * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * http://www.apache.org/licenses/LICENSE-2.0 * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for + * the specific language governing permissions and limitations under the License. */ package com.kevalpatel2106.rulerpicker; diff --git a/settings.gradle b/settings.gradle index 9ebb6a3..9763558 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,14 @@ +/* + * Copyright 2018 Keval Patel + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for + * the specific language governing permissions and limitations under the License. + */ + include ':app', ':ruler-picker'