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
Material Design Team
79953b02e3
if we don't set anything, talkback will announce it as checkbox because this class extends AppCompatCheckBox. This fix set the class name to be generic android view so nothing is announced if view is not checkable or clickable
...
PiperOrigin-RevId: 265746456
2019-08-29 12:19:52 -04:00
cketcham
3021dc0ac8
Add @NonNull and @Nullable annotations
...
PiperOrigin-RevId: 264856214
2019-08-26 11:41:00 -04:00
connieshi
238fad4560
Update Chip's AccessibilityDelegate to avoid setting classname /type description when chip is not clickable or checkable.
...
PiperOrigin-RevId: 264676607
2019-08-26 11:12:38 -04:00
connieshi
a6f066c0bf
Chip is an unsupported item type according to Accessibility Scanner.
...
Set the class name on chip's AccessibilityNodeInfo as either android.widget.Button or android.widget.CompoundButton depending on whether chip is checkable.
PiperOrigin-RevId: 263424377
2019-08-16 16:12:47 -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
dniz
cc73c2a630
Update TODOs
...
PiperOrigin-RevId: 259535844
2019-07-23 11:21:39 -04:00
dniz
0512f776c5
Remove sub-package AndroidManifest.xml files from lib directory
...
PiperOrigin-RevId: 258390736
2019-07-16 13:18:32 -04:00
marianomartin
0a5d66ffc0
Internal cleanup
...
PiperOrigin-RevId: 257802841
2019-07-15 19:07:26 -04:00
connieshi
6589e54a47
Publicly expose a hidden setter (ChipGroup#setSingleLine) inherited from a restricted parent class (FlowLayout).
...
PiperOrigin-RevId: 257046797
2019-07-09 12:59:59 -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
dniz
5df3bebd63
Update elevation overlays to be based absolute elevation, factoring in the elevation of all parent views
...
Will follow-up with TabLayout absolute elevation separately
Resolves https://github.com/material-components/material-components-android/issues/381
PiperOrigin-RevId: 255404830
2019-07-03 13:55:49 -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
connieshi
8c0f6f72c9
Call ChipDrawable#setShouldDrawText(false) inside Chip#setChipDrawable.
...
PiperOrigin-RevId: 253459599
2019-06-18 13:35:22 -04:00
Material Design Team
0aabd7848e
Automated g4 rollback of changelist 253229141
...
PiperOrigin-RevId: 253254250
2019-06-18 13:33:28 -04:00
Material Design Team
4c22b59c63
Cleanup for focus handing in Chips
...
PiperOrigin-RevId: 253229141
2019-06-18 13:27:43 -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
connieshi
462150b039
Update javadoc of Chip#ensureAccessibleTouchTarget(int) to describe the return value.
...
PiperOrigin-RevId: 248146423
2019-05-16 12:50:54 -04:00
Material Design Team
0a09c19dc6
Fix input focus handling inside Chips.
...
PiperOrigin-RevId: 246850628
2019-05-06 19:22:53 -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
f1255d9adf
Update choice chip to align with spec and use primary color to denote selection.
...
PiperOrigin-RevId: 246504982
2019-05-03 11:05:26 -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
afohrman
abb21b753f
Respect shapeAppearance and shapeAppearanceOverlay attributes in Chip.
...
Chip was setting chipCornerRadius in the style.
The chipCornerRadius attribute takes precedence over shapeAppearance cornerSize attributes in order to respect values previously set by the user. However, including it in the chip style prevents a cornerSize set in a shapeAppearance or shapeAppearanceOverlay from taking effect. This commit removes chipCornerSize from the chip style to respect cornerSize values.
PiperOrigin-RevId: 241014276
2019-04-05 15:19:48 -04:00
connieshi
e6f429fe75
Fix bug that ignored Chip#setEnsureMinTouchTargetAttribute(false) once Chip#setEnsureMinTouchTargetAttribute(true) has been called.
...
Ensure chip width also meets the min touch target size.
PiperOrigin-RevId: 240679599
2019-04-05 15:17:59 -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
marianomartin
05bc55723a
Add a way to disable min touch target size in fab
...
PiperOrigin-RevId: 239395098
2019-03-22 17:00:43 -04:00
dniz
833258417d
Add @RequiresApi(VERSION_CODES.LOLLIPOP) to overriden setElevation() methods
...
that call super.setElevation()
PiperOrigin-RevId: 239171863
2019-03-22 16:50:21 -04:00
connieshi
6ebcd6416a
Elevation overlay support for chip.
...
PiperOrigin-RevId: 239029411
2019-03-22 16:30:10 -04:00