@@ -339,11 +339,9 @@ public WeekView(Context context, AttributeSet attrs, int defStyleAttr) {
339339 mEventMarginVertical = a .getDimensionPixelSize (R .styleable .WeekView_eventMarginVertical , mEventMarginVertical );
340340 mXScrollingSpeed = a .getFloat (R .styleable .WeekView_xScrollingSpeed , mXScrollingSpeed );
341341 mEventCornerRadius = a .getDimensionPixelSize (R .styleable .WeekView_eventCornerRadius , mEventCornerRadius );
342-
343342 mShowDistinctPastFutureColor = a .getBoolean (R .styleable .WeekView_showDistinctPastFutureColor , mShowDistinctPastFutureColor );
344343 mShowDistinctWeekendColor = a .getBoolean (R .styleable .WeekView_showDistinctWeekendColor , mShowDistinctWeekendColor );
345344 mShowNowLine = a .getBoolean (R .styleable .WeekView_showNowLine , mShowNowLine );
346-
347345 mHorizontalFlingEnabled = a .getBoolean (R .styleable .WeekView_horizontalFlingEnabled , mHorizontalFlingEnabled );
348346 mVerticalFlingEnabled = a .getBoolean (R .styleable .WeekView_verticalFlingEnabled , mVerticalFlingEnabled );
349347 } finally {
@@ -1685,18 +1683,34 @@ public void setNowLineThickness(int nowLineThickness) {
16851683 invalidate ();
16861684 }
16871685
1686+ /**
1687+ * Get whether the week view should fling horizontally.
1688+ * @return True if the week view has horizontal fling enabled.
1689+ */
16881690 public boolean isHorizontalFlingEnabled () {
16891691 return mHorizontalFlingEnabled ;
16901692 }
16911693
1694+ /**
1695+ * Set whether the week view should fling horizontally.
1696+ * @return True if it should have horizontal fling enabled.
1697+ */
16921698 public void setHorizontalFlingEnabled (boolean enabled ) {
16931699 mHorizontalFlingEnabled = enabled ;
16941700 }
16951701
1702+ /**
1703+ * Get whether the week view should fling vertically.
1704+ * @return True if the week view has vertical fling enabled.
1705+ */
16961706 public boolean isVerticalFlingEnabled () {
16971707 return mVerticalFlingEnabled ;
16981708 }
16991709
1710+ /**
1711+ * Set whether the week view should fling vertically.
1712+ * @return True if it should have vertical fling enabled.
1713+ */
17001714 public void setVerticalFlingEnabled (boolean enabled ) {
17011715 mVerticalFlingEnabled = enabled ;
17021716 }
0 commit comments