614 Commits

Author SHA1 Message Date
dniz
03cf027bc7 Deprecate Experimental annotation and remove from Shapes
PiperOrigin-RevId: 229200655
2019-01-18 14:10:16 -05:00
marianomartin
2c1d3d99e0 Fix deprecated getEdgePath method
PiperOrigin-RevId: 229195616
2019-01-18 14:09:20 -05:00
denis-kim
e49cd32a43 Fix wrong position and state when touches settling view
1) When touches normal child view in settling bottom sheet,
the state goes to STATE_EXPANDED or STATE_COLLAPSED by SettleRunnable.
It should be STATE_DRAGGING.
SettleRunnable’s targetState should be ignored when settling is aborted.

2) When touches nested scroll child view in settling bottom sheet,
the settling animation is not stopped.
In settling state, the child view should be captured, not the nested scroll child.

Fixes: https://issuetracker.google.com/issues/119289861
Test: Touch or drag the settling bottom sheet

GIT_ORIGIN_REV_ID=514e20ad10aafcc6e95015d95e1efc888d93bed7
PiperOrigin-RevId: 228944484
2019-01-18 14:02:59 -05:00
Material Design Team
9dab50e145 Expose methods for fine grained control of TabLayout animation
Makes the following methods public:
- setScrollPosition(int, float, boolean, boolean)
- selectTab(Tab)
- selectTab(Tab, boolean)

This makes it possible to separate the link between a TabLayout and a ViewPager to another class.

PiperOrigin-RevId: 228887919
2019-01-18 14:01:38 -05:00
melaniegoetz
685f244e2e Animate Bottomsheet shape corner transitions
PiperOrigin-RevId: 228756397
2019-01-10 17:20:37 -05:00
marianomartin
eeba1619e9 Resubmit fix for MaterialButton padding bug
PiperOrigin-RevId: 228723499
2019-01-10 17:18:36 -05:00
marianomartin
8b7ec0c80e Add check drawable when card is selected.
PiperOrigin-RevId: 228715367
2019-01-10 17:17:34 -05:00
dniz
a4964594a1 Add MaterialShapeDrawable setElevation(float) and deprecate setShadowElevation(int)
PiperOrigin-RevId: 228572421
2019-01-10 17:16:43 -05:00
marianomartin
51bee714f6 Preserve icon after updating menus in BottomNav
PiperOrigin-RevId: 228525610
2019-01-10 17:11:43 -05:00
marianomartin
1220e66ce1 Automated g4 rollback of changelist 228351080
PiperOrigin-RevId: 228386136
2019-01-10 16:50:12 -05:00
marianomartin
218225008a Update stroke instead of creating background again
PiperOrigin-RevId: 228351080
2019-01-10 16:49:24 -05:00
marianomartin
5ef4727d84 Only use BorderDrawable in fab for Rounded Rects
PiperOrigin-RevId: 228350250
2019-01-10 16:48:03 -05:00
ldjesper
499dc02f8c Respect dialogCornerRadius in MaterialAlertDialogBuilders.
PiperOrigin-RevId: 228337335
2019-01-10 16:46:42 -05:00
gauthams
32db2e2af1 Update shape path edge length to prevent concave path
PiperOrigin-RevId: 228238196
2019-01-10 16:35:58 -05:00
leticiars
872cae3400 Updating MDC text field text appearance.
PiperOrigin-RevId: 228150532
2019-01-10 16:34:41 -05:00
marianomartin
0c00762410 Resubmit card view ripple changes
PiperOrigin-RevId: 227909348
2019-01-10 16:30:51 -05:00
marianomartin
c4f014b192 Add back getPathForSize(int int, Path) to MaterialShapeDrawable.
PiperOrigin-RevId: 227901559
2019-01-10 16:27:32 -05:00
leticiars
9a30c9331b Fixing focus order when text fields have the password toggle enabled.
PiperOrigin-RevId: 227893863
2019-01-10 16:18:57 -05:00
marianomartin
7adbeac4b2 Add back getEdgePath method without interpolation
PiperOrigin-RevId: 227877153
2019-01-10 16:07:46 -05:00
Material Design Team
3b066d9e65 Fix grammar in javadoc.
PiperOrigin-RevId: 227849552
2019-01-10 16:05:50 -05:00
marianomartin
637e1599ca Automated g4 rollback of changelist 227719145
PiperOrigin-RevId: 227738476
2019-01-10 16:04:39 -05:00
marianomartin
4cbe3b1ad2 Support checkable in card view, add states demo.
Also added a demo showing the different states

PiperOrigin-RevId: 227719145
2019-01-10 16:02:59 -05:00
afohrman
db4c951c0c Add annotations to hide protected MaterialShapeDrawable#drawShape() method.
MaterialShapeDrawable#drawShape() is protected, so it shouldn't be visible outside of the library group. This commit also adds documentation, since this method is protected.

PiperOrigin-RevId: 227696166
2019-01-10 16:01:24 -05:00
isabellekim
0055c665af Remember the selected item when adding items to BottomNavigation's menu
PiperOrigin-RevId: 227140261
2019-01-10 15:53:25 -05:00
isabellekim
bd994a109a Update icon tint alpha for colored BottomNav to be 0.6 per spec.
PiperOrigin-RevId: 227056603
2019-01-10 15:50:41 -05:00
connieshi
6c70169e8d Update chipgroup spacing attribute documentation to clarify that it doesn't apply to hidden chips.
PiperOrigin-RevId: 226498090
2018-12-21 16:29:20 -05:00
gauthams
11ae93ddc1 Refactor custom view inflation logic into shouldInflateAppCompatButton method, and make it protected rather than private.
PiperOrigin-RevId: 226256921
2018-12-21 11:34:51 -05:00
gauthams
b07eb82f31 Fix MaterialButton inflation issue for API 24 and 25
PiperOrigin-RevId: 226235558
2018-12-21 11:33:46 -05:00
ldjesper
46ce278ebb Add Dialogs to ShapeThemeingDemo and fix Overlay ordering
PiperOrigin-RevId: 226213645
2018-12-21 11:32:29 -05:00
ldjesper
52c5e72d81 Remove top level dialog attributes in favor of materialAlertDialogTheme
PiperOrigin-RevId: 226210511
2018-12-21 11:30:35 -05:00
marianomartin
6a7b1b2ce2 Mutate background drawable before changing tint
PiperOrigin-RevId: 226181425
2018-12-21 11:25:39 -05:00
connieshi
50d133ef03 Update chip to support dynamically changing texts in RTL layout.
PiperOrigin-RevId: 226174458
2018-12-21 11:24:38 -05:00
connieshi
3d23dbeac2 Fix logic to delegate text rendering to ChipDrawable instead of Chip.
Delegating text rendering to ChipDrawable breaks the api contract so this is for testing purposes only.

PiperOrigin-RevId: 226001080
2018-12-21 11:15:02 -05:00
Material Design Team
56c22ed0f7 Migrate Cardview android support libraries to androidx.
PiperOrigin-RevId: 225886550
2018-12-21 11:13:36 -05:00
marianomartin
055a791ae2 Support materialThemeOverlay on FloatingActionButton
PiperOrigin-RevId: 225857520
2018-12-21 11:09:03 -05:00
cketcham
dc72aaeed4 Migrate Gradle build and sources to androidx
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
Material Design Team
649828b6df Automated g4 rollback of changelist 225407398
PiperOrigin-RevId: 225418035
2018-12-21 10:47:43 -05:00
ldjesper
198b614e21 Remove new top level attributes in favor of scoped materialAlertDialogTheme
PiperOrigin-RevId: 225407398
2018-12-21 10:43:26 -05:00
marianomartin
a083017520 Add backgroundTint support to BottomNav
PiperOrigin-RevId: 225384496
2018-12-21 10:41:14 -05:00
melaniegoetz
4cf6ece413 Automated g4 rollback of changelist 225064028
PiperOrigin-RevId: 225088658
2018-12-12 16:24:24 -05:00
melaniegoetz
220456295b Fix expanded state appearance to match spec and ShapeAppearanceModel reference in BottomSheetBehavior
PiperOrigin-RevId: 225064028
2018-12-12 16:24:02 -05:00
melaniegoetz
403973284e Automated g4 rollback of changelist 224522042
PiperOrigin-RevId: 225060461
2018-12-12 16:23:30 -05:00
gauthams
a48a9af060 Shape system changes for MaterialButton
PiperOrigin-RevId: 225050954
2018-12-12 16:22:46 -05:00
marianomartin
55cfdb0480 Invalidate BorderDrawable when changing shapeAppearance
PiperOrigin-RevId: 224826056
2018-12-12 16:21:08 -05:00
melaniegoetz
73f7681101 Automated g4 rollback of changelist 224370498
PiperOrigin-RevId: 224522042
2018-12-10 14:15:46 -05:00
melaniegoetz
16822d6344 Shape Theming for BottomSheet
PiperOrigin-RevId: 224370498
2018-12-10 14:14:05 -05:00
isabellekim
fa528c4403 Remove padding from large text for BottomNavigation to match small text. Guidance is to use short text in bottom navigation so this should not have a visual effect since the width of each item is equally divided with a max width (in other words, the padding doesn't affect the width). However, when system font size is increased, even short text can be cut off by the padding and this gives a little more room for the text.
PiperOrigin-RevId: 224345637
2018-12-06 12:07:07 -05:00
marianomartin
9837721733 Replace circular border drawable with a drawable for any shape.
PiperOrigin-RevId: 224205053
2018-12-06 12:05:36 -05:00
marianomartin
cf69538c9c Refactor path logic out of MSD
PiperOrigin-RevId: 224182175
2018-12-06 12:05:06 -05:00
marianomartin
61f426afca Remove (get/set)PaintFlags from MSD
PiperOrigin-RevId: 224162294
2018-12-06 12:04:30 -05:00