pubiqq
3ca41be8f0
[General] Fix typos
...
Resolves https://github.com/material-components/material-components-android/pull/2654
GIT_ORIGIN_REV_ID=b8f6728979875629f2c813ef90d2f671cf56b4eb
PiperOrigin-RevId: 442852630
2022-04-19 14:48:55 -04:00
pubiqq
10edcd11d5
[ChipDrawable] Support setting text color programmatically.
...
Resolves https://github.com/material-components/material-components-android/pull/2526
GIT_ORIGIN_REV_ID=d1f47b5aa0b823ae0915d4c7ae85417e7d0eddd5
PiperOrigin-RevId: 424632069
2022-01-27 09:53:18 -08:00
Material Design Team
cfc00aa5a3
Update android core class definitions across material
...
PiperOrigin-RevId: 414839941
2021-12-08 14:56:25 +00:00
Material Design Team
a487c89185
Internal change
...
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
dsn5ft
9ae56ceedd
[Javadocs] Remove all broken attr links from Javadocs
...
PiperOrigin-RevId: 404246710
2021-10-20 19:06:18 +00:00
conradchen
c08a07d7e8
[Chip] Fix icon tint states are not updated after setting new icon
...
A drawable's tint will affect the result of drawable.isStateful().
After updating a new icon drawable, we should set tint first before
we check and update its state.
Resolves https://github.com/material-components/material-components-android/issues/2118
PiperOrigin-RevId: 381262641
2021-06-28 12:49:17 -07:00
conradchen
7adfd93d80
[TooltipDrawable] Adding android:textColor support
...
PiperOrigin-RevId: 374887222
2021-05-20 14:03:30 -07:00
connieshi
6951bd5179
[Chip] Support elevation overlay.
...
Resolves https://github.com/material-components/material-components-android/issues/1749
PiperOrigin-RevId: 336930100
2020-10-15 13:21:17 -07:00
marianomartin
e5f7951b01
[Chip] Support setting text size without changing TextAppearance
...
PiperOrigin-RevId: 320083914
2020-07-08 15:00:37 -04:00
marianomartin
555356b03f
Internal cleanup
...
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
Material Design Team
342ea9ad25
Internal cleanup
...
PiperOrigin-RevId: 317147378
2020-06-19 13:42:35 -04:00
Rafael
45f59032c8
[Chip]Fix chip icon with different width and height
...
Resolves https://github.com/material-components/material-components-android/pull/1242
GIT_ORIGIN_REV_ID=2c843f543245ac17327cbc55566eb3f8098d9082
Co-authored-by: wcshi <38438920+wcshi@github.com>
PiperOrigin-RevId: 309745804
2020-05-04 11:42:31 -04:00
connieshi
0687ca80b0
Fix javadocs errors in Chip and ChipDrawable.
...
PiperOrigin-RevId: 300592847
2020-03-13 11:11:29 -04:00
Material Design Team
5213b46edd
[Chip] Support setting checked icon's tint via xml attribute
...
PiperOrigin-RevId: 299429881
2020-03-09 10:45:57 -07:00
connieshi
ded0c3ff61
Initialize chipCornerRadius to -1 instead of 0 so it would not ignore a user who sets the corner radius to 0.
...
Resolves https://github.com/material-components/material-components-android/issues/1058
PiperOrigin-RevId: 297422651
2020-02-27 15:49:57 -05:00
connieshi
d25fa92021
Support tinted chip icons.
...
Resolves https://github.com/material-components/material-components-android/issues/767
PiperOrigin-RevId: 283387208
2019-12-03 17:00:18 -05:00
ldjesper
294f12498d
Rename setCornerRadius to setAllCornerSizes
...
PiperOrigin-RevId: 272959729
2019-10-04 20:08:43 -04:00
cketcham
0547d2a06b
Uncouple CornerSize from CornerTreatment
...
This allows for more easily updating the CornerSize independently from the CornerTreatment and makes it possible to create different types of CornerSizes such as percentage based corners. However, this means corner sizes can be different depending on the bounds of the shape, so the bounds need to be provided. MaterialShapeDrawable has bounds and the ShapeAppearanceModel, so there are new convenience methods there which return the current corner size for the current bounds of the drawable.
PiperOrigin-RevId: 272908508
2019-10-04 15:23:16 -04:00
ldjesper
17ff72c69a
Remove deprecated getPathForSize not in any stable release
...
PiperOrigin-RevId: 272877489
2019-10-04 11:28:25 -04:00
marianomartin
215a839598
Internal cleanup
...
PiperOrigin-RevId: 267504117
2019-09-12 13:48:16 -04:00
cketcham
7bb525ff59
Update usages of ShapeAppearanceModel to use Builder pattern
...
PiperOrigin-RevId: 266144471
2019-08-29 15:39:51 -04:00
marianomartin
0d4515cb46
Internal cleanup
...
PiperOrigin-RevId: 265971745
2019-08-29 14:59:20 -04:00
cketcham
3021dc0ac8
Add @NonNull and @Nullable annotations
...
PiperOrigin-RevId: 264856214
2019-08-26 11:41:00 -04:00
connieshi
7633a60328
Automated g4 rollback of changelist 260710940
...
PiperOrigin-RevId: 260920613
2019-08-02 15:35:40 -04:00
Material Design Team
a6c469374b
Automated g4 rollback of changelist 260577585
...
PiperOrigin-RevId: 260710940
2019-08-02 15:07:08 -04:00
connieshi
d60fb3fc22
Workaround chip compositing bug that dropped stated_pressed and state_focused.
...
PiperOrigin-RevId: 260577585
2019-07-29 17:50:23 -04:00
isabellekim
858fa6a1d5
Update Chip's close icon Drawable to respect both the chip state (includes state_focused when focusing on the chip) and close icon state (includes state_focused when focusing on the close icon).
...
PiperOrigin-RevId: 260507798
2019-07-29 16:45:41 -04:00
marianomartin
a648bac7b2
Merge DrawableUtils classes
...
PiperOrigin-RevId: 257022779
2019-07-09 12:56:12 -04:00
marianomartin
164bf0fabd
Internal cleanup
...
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00
isabellekim
bee37933f4
Update chips to support state_checkable.
...
PiperOrigin-RevId: 255186618
2019-06-26 11:22:10 -04:00
isabellekim
b857c791f9
Change ripples on Chip to use the alphas provided in the ColorStateList.
...
RippleDrawable on different API levels will modulate the alphas differently
for the pressed / focused / hovered states. Therefore, in order to get the
desired alphas for pressed / focused / hovered states, we are using the
mtrl_low_ripple_(pressed|focused|hovered|default)_alpha values which have
been defined to account for the different implementations of RippleDrawable.
PiperOrigin-RevId: 254737730
2019-06-24 17:27:42 -04:00
marianomartin
367b295624
Internal cleanup
...
PiperOrigin-RevId: 254414602
2019-06-24 17:12:42 -04:00
isabellekim
9a685eb2ce
Make Chip's close icon's ripple jump to the current state before
...
drawing.
PiperOrigin-RevId: 254000578
2019-06-24 16:53:17 -04:00
isabellekim
75b5759de7
Replace //noinspection with @TargetApi(VERSION_CODES.LOLLIPOP) as it is
...
more specific and supported in Android Studio.
PiperOrigin-RevId: 253824167
2019-06-24 16:42:31 -04:00
marianomartin
5a5d311a36
Check more lint warnings, show warnings as errors.
...
PiperOrigin-RevId: 252822573
2019-06-18 13:20:15 -04:00
connieshi
ccc48904e5
Add BadgeDrawable constructor that takes a xml resource.
...
PiperOrigin-RevId: 252709395
2019-06-18 13:15:07 -04:00
marianomartin
007e1b6b05
Internal cleanup
...
PiperOrigin-RevId: 249666005
2019-05-24 14:24:02 -04:00
marianomartin
455ba2557b
Internal cleanup
...
PiperOrigin-RevId: 249490219
2019-05-24 14:22:06 -04:00
marianomartin
4112edaa96
Internal cleanup
...
PiperOrigin-RevId: 249479167
2019-05-24 14:19:48 -04:00
marianomartin
90837ec485
Internal cleanup
...
PiperOrigin-RevId: 249243403
2019-05-21 12:15:07 -04:00
connieshi
aa44979c94
Automated g4 rollback of changelist 248597424
...
PiperOrigin-RevId: 248735545
2019-05-21 10:30:02 -04:00
Material Design Team
2130d86550
Automated g4 rollback of changelist 248530748
...
PiperOrigin-RevId: 248597424
2019-05-17 16:27:01 -04:00
connieshi
7cb8af269e
Add chip close icon ripple for Android L+.
...
PiperOrigin-RevId: 248530748
2019-05-16 17:28:39 -04:00
ldjesper
61ee09e6e8
Fix JavaDoc to MotionSpec for Chip
...
PiperOrigin-RevId: 246525931
2019-05-03 13:00:40 -04:00
ldjcmu
b0af4f0fb6
Revert "[Chip] setShowMotionSpec and setHideMotionSpec take a MotionSpec args"
2019-05-03 12:34:37 -04:00
ldjcmu
ad16e04d7d
Merge pull request #336 from satoshun/fix/chip_document
...
[Chip] setShowMotionSpec and setHideMotionSpec take a MotionSpec args
2019-05-03 12:32:33 -04:00
connieshi
7a4ecb0392
Update TextDrawableHelper's constructor to take a delegate.
...
Update ChipDrawable and BadgeDrwable to pass a delegate when they instantiate TextDrawbleHelper.
PiperOrigin-RevId: 245469285
2019-04-29 15:56:31 -07:00
SatoShun
83a876ce3c
setShowMotionSpec and setHideMotionSpec take a MotionSpec args
2019-04-29 08:20:55 +00:00
connieshi
574157e153
Fix chip background color state bug:
...
PiperOrigin-RevId: 243047644
2019-04-19 15:35:58 -04:00
connieshi
b544530ac0
Update Chip's background / surface color state lists to support state_checked as well.
...
PiperOrigin-RevId: 240128475
2019-03-26 17:33:09 -04:00