pekingme
8204856dd4
[Token][Color] Upgraded to v0.170 for tonal surface colors.
...
PiperOrigin-RevId: 555230534
2023-08-09 19:03:25 +00:00
pekingme
9f1caa2c64
[Tokens] Upgraded to v0.162.
...
PiperOrigin-RevId: 517446114
2023-03-20 21:23:07 +00:00
pekingme
23dc14ca3a
[Tokens] Updated to v0.157.
...
PiperOrigin-RevId: 505978081
2023-01-31 20:01:13 +00:00
minwang1
7bbbe3925e
[Slider] Added API for setting the radius of active/inactive tick in xml and Java.
...
Resolves https://github.com/material-components/material-components-android/pull/2994
Resolves https://github.com/material-components/material-components-android/issues/1920
GIT_ORIGIN_REV_ID=7bf15fb545496cb8e63f8b6ecf653229b1f203f8
PiperOrigin-RevId: 492557754
2022-12-02 18:36:26 -05:00
pekingme
2019bf90be
[Tokens] Upgraded to version v0.147.
...
PiperOrigin-RevId: 492551875
2022-12-02 18:34:12 -05:00
pekingme
17e3581642
[Tokens] Upgraded to v0.145
...
PiperOrigin-RevId: 492291163
2022-12-02 15:11:37 +00:00
pekingme
b9963a5212
[Tokens][Android] Omitted more comments when configuration specifies no comments.
...
PiperOrigin-RevId: 492290497
2022-12-02 15:04:22 +00:00
pekingme
8ee6c00f73
[Tokens] Upgraded to v0.142
...
Added lStar CSLs for new neutral palettes in v31 and above.
PiperOrigin-RevId: 491693724
2022-11-30 17:31:11 -05:00
pekingme
12ef329276
[Tokens] Upgraded to v0.141
...
PiperOrigin-RevId: 490324728
2022-11-23 15:13:20 -05:00
pekingme
b2b546b205
[Tokens] Internal updates.
...
PiperOrigin-RevId: 490295053
2022-11-23 15:11:19 -05:00
Jerry Zhu
9e210ea731
[Slider] Add current value to talkback for Slider
...
Resolves https://github.com/material-components/material-components-android/pull/2964
GIT_ORIGIN_REV_ID=02fe1a0b529369772fec9c52631c75c1865535f3
PiperOrigin-RevId: 479097052
2022-10-06 17:51:41 +00:00
pekingme
ed77ab36cc
[Tokens] Refreshed outdated component token resources files.
...
PiperOrigin-RevId: 477262742
2022-09-28 00:07:41 +00:00
conradchen
4a1e6bc42a
[Slider] Integrate component tokens
...
PiperOrigin-RevId: 475405055
2022-09-22 17:34:52 +00:00
pekingme
f3952f83df
[Slider] Ensured the minimum touch size of handle is 48dp
...
PiperOrigin-RevId: 465125601
2022-08-04 14:47:42 -04:00
conradchen
dc0d8a956e
[Slider] Make slider's height adjustable with track height or thumb radius
...
Resolves https://github.com/material-components/material-components-android/issues/1923
PiperOrigin-RevId: 440913851
2022-04-11 12:42:09 -04:00
pekingme
ca8594d2d2
[Slider] Added LABEL_VISIBLE to label behavior and added a demo fragment in catalog.
...
Resolves https://github.com/material-components/material-components-android/issues/1316
PiperOrigin-RevId: 433570701
2022-03-09 22:14:31 +00:00
conradchen
0064aa1e9c
[M3][Slider] Create M3 styles
...
PiperOrigin-RevId: 392503743
2021-08-24 15:43:21 -04:00
Gabriele Mariotti
487e321497
[Slider] Added options to set thumbStrokeColor and thumbStrokeWidth
...
Resolves https://github.com/material-components/material-components-android/pull/1653
Resolves https://github.com/material-components/material-components-android/issues/1652
GIT_ORIGIN_REV_ID=ba5cab25a210a34e9d6396101ad045c8cfc8cb92
PiperOrigin-RevId: 328542122
2020-08-26 17:40:22 -04:00
Gabriele Mariotti
5fb7964372
[Slider] Added option to show/hide tick marks in discrete mode
...
Resolves https://github.com/material-components/material-components-android/pull/1545
GIT_ORIGIN_REV_ID=6c5dc94df08ad7ec202722d5b546795f436de404
PiperOrigin-RevId: 324263710
2020-07-31 15:44:30 -04:00
Mattia
57a31caef5
[Slider] Added XML enabled property to constructor attrs evaluation
...
Resolves https://github.com/material-components/material-components-android/issues/1531
Resolves https://github.com/material-components/material-components-android/pull/1534
GIT_ORIGIN_REV_ID=79a45af769f604f3fb1c4f0f82fb05f36f0934aa
PiperOrigin-RevId: 323783892
2020-07-29 10:41:35 -04:00
marianomartin
b8f4b221f4
[Slider] Added min separation support
...
PiperOrigin-RevId: 322212299
2020-07-21 04:17:46 -07:00
marianomartin
71fcb73c7f
[Slider] Changed slider thumbs to prevent crossing each other
...
PiperOrigin-RevId: 318502401
2020-06-26 14:13:27 -04:00
marianomartin
f945a0649b
[Slider] Rollback Slider Ally fixes, will address separately
...
PiperOrigin-RevId: 318169160
2020-06-26 14:08:53 -04:00
marianomartin
aecb3be32f
[A11y] Added Range Start, Range End to slider content description
...
PiperOrigin-RevId: 317315616
2020-06-19 14:05:37 -04:00
marianomartin
8f0aa7f8d6
Split Slider into two classes
...
Slider throws an exception when calling getValue with more than one value. Supporting both single value and multiple values in the same class makes it confusing. While not supporting convenience methods getValue and setValue in the multi value class makes it, well, inconvenient.
In addition min, max are also a bit ambiguous since seekBar uses these for valueFrom and valueTo so those were removed.
PiperOrigin-RevId: 311774410
2020-05-18 11:19:05 -04:00
cketcham
340cdea60d
Add a11y support to Slider
...
This includes support for Range slider when there is more than one thumb. Each thumb can receive focus and behaves as if it was it's own SeekBar.
Resolves https://github.com/material-components/material-components-android/issues/827
PiperOrigin-RevId: 294681995
2020-02-13 10:23:18 -05:00
haodong
bb34f717df
Refactor trackColor attribute into common resources.
...
PiperOrigin-RevId: 291983432
2020-01-29 15:32:01 -05:00
cketcham
9ae1494597
Add option to hide the Slider's label
...
This creates 3 options, to have the label floating, within the bounds of the view, or not shown.
Resolves https://github.com/material-components/material-components-android/issues/703
PiperOrigin-RevId: 287244827
2019-12-30 13:31:52 -05:00
cketcham
dc17035a8b
Fix height of Slider when floating label is false
...
PiperOrigin-RevId: 286201599
2019-12-18 15:55:40 -05:00
cketcham
f28cc095a7
Reorganized and updated comments in Slider
...
PiperOrigin-RevId: 286194091
2019-12-18 15:54:30 -05:00
cketcham
921d392602
Rename slider tick and track color attributes to keep them together when sorted alphabetically
...
PiperOrigin-RevId: 285972204
2019-12-17 17:06:10 -05:00
cketcham
fe160f33e6
Add option to set the track height of the Slider
...
PiperOrigin-RevId: 284667379
2019-12-10 07:25:07 -05:00
cketcham
df94cd1bca
Remove the requirement to setClipChildren false on the parent of Slider
...
Draw the Slider label with ViewOverlay, and update the way the halo is drawn pre lollipop. This stops any clipping that happens by the bounds view.
Resolves https://github.com/material-components/material-components-android/issues/697
PiperOrigin-RevId: 284650572
2019-12-10 07:24:00 -05:00
cketcham
5d1a369ea0
Update Slider to use TooltipDrawable
...
PiperOrigin-RevId: 282583539
2019-12-02 17:27:40 -05:00
cketcham
4e1da2a4be
Update Slider to use RippleDrawable for Lollipop and above
...
PiperOrigin-RevId: 276528198
2019-11-01 13:28:40 -07:00
cketcham
349f91c07b
Always draw the Slider's label
...
Also adds an option to toggle floating the label above the views around the slider, or adding extra height to the slider to keep the label inside the bounds.
PiperOrigin-RevId: 272713986
2019-10-03 15:43:03 -04:00
cketcham
f8fe052ed3
Add support for Slider thumb elevation
...
PiperOrigin-RevId: 269866946
2019-09-20 10:56:07 -04:00
cketcham
38e95a5f3c
Remove the gap between the thumb and track in disabled mode
...
PiperOrigin-RevId: 268905977
2019-09-18 14:04:28 -04:00
cketcham
97ca231d70
Allow the radius of the thumb and halo around the thumb to be set by the style
...
PiperOrigin-RevId: 268735380
2019-09-18 13:01:22 -04:00
marianomartin
53d4185ff9
Internal cleanup
...
PiperOrigin-RevId: 267368841
2019-09-12 13:47:15 -04:00