4 Commits

Author SHA1 Message Date
Max Luzuriaga
eebab2557d [Slider] ThumbHollowAtStart property better named with obj-c conventions
Summary: Leaves setter as `slider.thumbHollowAtStart` but makes getter `slider.isThumbHollowAtStart`.

Reviewers: O1 Material components iOS, iangordon

Reviewed By: O1 Material components iOS, iangordon

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1525
2016-08-24 12:01:36 -04:00
Max Luzuriaga
14e1943f44 [Slider] Rename thumbIsHollowAtStart to isThumbHollowAtStart
Summary: Per Junius' suggestion, this name fits better with the convention of BOOL var names.

Reviewers: O1 Material components iOS, randallli, junius

Reviewed By: O1 Material components iOS, randallli, junius

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1520
2016-08-24 10:12:51 -04:00
Max Luzuriaga
19ab4675a6 [Slider] Property for whether or not thumb is hollow at minimum value
Summary:
Adds `thumbIsHollowAtStart` property to MDCSlider, to support usages where you don't need the thumb view to be hollow when `slider.value == slider.minimumValue`, i.e. when the slider is used as a scrubber in an audio or video file.

Also adds an example of this property being `NO` to the primary slider example view controller.

{F6417}

Reviewers: O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1518
2016-08-23 15:46:01 -04:00
Max Luzuriaga
72088f48cb [Slider] Expanded slider demo within a collection view.
Summary:
Switched the default demo for MDCSlider to a new view controller that displays several different types of sliders in a collection view format. Serves as an example of how to use a slider in this context, as collection views are often used for settings screens where sliders are most likely to appear.

Also shows off new options for the slider, such as displaying the discrete value label or not, and setting an anchor value to draw the track from.

{F6385}

Reviewers: O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1486
2016-08-23 15:21:00 -04:00