pubiqq
a17e208d45
[Internal] Restore binary compatibility (ViewOverlay)
...
Resolves https://github.com/material-components/material-components-android/issues/4821
Resolves https://github.com/material-components/material-components-android/pull/4822
- 88fa6714b38456cd39e2104992034a99bab00fc7 by pubiqq <serj.ese@gmail.com>
PiperOrigin-RevId: 776589862
2025-06-27 16:31:41 +00:00
Ga\u00ebtan Muller
65e5f1aba1
[Internal] Remove the internal ViewOverlay compat layer
...
Resolves https://github.com/material-components/material-components-android/pull/4736
GIT_ORIGIN_REV_ID=9eced1439e9503f5cc88cc3f2834f55e5466448c
PiperOrigin-RevId: 756779136
2025-05-12 18:15:01 +00:00
pubiqq
bc2fdeadaf
[Internal] Prefer platform methods to compat ones
...
Resolves https://github.com/material-components/material-components-android/pull/4532
GIT_ORIGIN_REV_ID=180dec736f2521579e483317a4d537629d8f247b
PiperOrigin-RevId: 715494344
2025-01-15 18:06:07 +00:00
pubiqq
510881a469
[Internal] Stop using deprecated androidx.core.view.* methods
...
Resolves https://github.com/material-components/material-components-android/pull/4117
GIT_ORIGIN_REV_ID=dd157e8360c2511810496693cec1616fce578655
PiperOrigin-RevId: 632284856
2024-05-13 17:37:38 +00:00
Ga\u00ebtan Muller
b3fe6a7f61
[Cleanup] Remove redundant version checks for api <= 19.
...
Resolves https://github.com/material-components/material-components-android/pull/3849
GIT_ORIGIN_REV_ID=47bb2fcc8031740e5a7d4f741f1ada2af025e126
PiperOrigin-RevId: 632154861
2024-05-09 18:46:02 +00:00
pubiqq
0663019f45
[Color] Add ColorStateListDrawable support
...
Resolves https://github.com/material-components/material-components-android/pull/3538
GIT_ORIGIN_REV_ID=1bf9e320dc148e1bc959e7577372d3a393f35574
PiperOrigin-RevId: 563258432
2023-09-07 12:37:54 +00:00
dsn5ft
a4b6f46f0c
[Predictive Back][Search] Update SearchView to support predictive back when set up with SearchBar
...
PiperOrigin-RevId: 520613990
2023-03-30 16:35:21 +00:00
pfthomas
4032a74112
[MaterialDatePicker] Fix keyboard not showing at first in text input mode
...
Resolves https://github.com/material-components/material-components-android/issues/2747
PiperOrigin-RevId: 511501130
2023-02-23 03:46:22 -08:00
raajkumars
07938f572f
[Internal] Added utility methods to ViewUtils.
...
PiperOrigin-RevId: 462208023
2022-07-20 21:49:42 +00:00
pubiqq
5d6678cc66
[MaterialDatePicker] Hide the keyboard when switching to calendar mode
...
Resolves https://github.com/material-components/material-components-android/pull/2688
Resolves https://github.com/material-components/material-components-android/issues/2687
GIT_ORIGIN_REV_ID=686526aa049eadb08ded72ca9eb0b60027358756
PiperOrigin-RevId: 447819486
2022-05-11 09:41:38 -04:00
conradchen
be6050a23c
[DatePicker] Always go edge-to-edge in fullscreen mode
...
Resolves https://github.com/material-components/material-components-android/issues/1966
PiperOrigin-RevId: 432296692
2022-03-04 13:06:17 -05:00
Material Design Team
a487c89185
Internal change
...
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
dniz
89a1bf883f
[Snackbar] Added ability to have Snackbar position respond to anchor view layout changes
...
Disabled by default to avoid changes in behavior and breakages in tests
PiperOrigin-RevId: 333299318
2020-09-23 12:10:02 -07:00
marianomartin
555356b03f
Internal cleanup
...
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
hunterstich
b631ef6979
[Slider] Fix slider tooltip in popupwindows
...
Slider needs to find an ancestor in which it can add its tooltip overlay. When added in a PopupWindow, its possible to search up the view hierarchy and find a parent which is neither a View nor a ViewGroup. This change adds a check for this case
A note is that this change updates edge cases to return the current parent if it is any valid ancestor instead of just returning null. This allows Slider's tooltip to be added to Popup windows, but doesn't guarantee that the tooltip will be fully visible since a PopupWindow's height might be smaller than the slider + tooltip. If adding a Slider to a PopupWindow, you might need to manually add height to your popup's content view to account for the tooltip or turn of the slider's label.
PiperOrigin-RevId: 310913776
2020-05-11 16:04:03 -04:00
hunterstich
d6501c97bc
[Slider] Fix attach/detach behavior when Slider is added in an overlay as part of a Transition.
...
Resolves https://github.com/material-components/material-components-android/issues/1195
A Visibility transition will add Slider to an overlay and then call onAttachToWindow/onDetachFromWindow which looks for an android.R.id.content view, which doen't exist, getting stuck in a loop. This adds an exit strategy for android.R.id.content not being found and fixes Slider in Visibility transitions.
PiperOrigin-RevId: 305886706
2020-04-13 10:21:36 -07:00
Material Design Team
6405635df4
Handle horizontal system insets for BottomAppBar.
...
Previously only the bottom inset (navigation bar) would add extra padding to the BottomAppBar which avoided overlapping with the bottom inset when drawing edge-to-edge. A problem arises if the device is rotated horizontally. The FAB (or sometimes the ActionMenuView in RtL layouts) would overlap with the right inset, making usage impossible.
This CL adjusts the FAB and ActionMenuView X translations when necessary to avoid the horizontal system insets. Two new stylable attributes have been added to enable/disable this behavior, analogous to the existing attribute for bottom padding.
PiperOrigin-RevId: 286419669
2019-12-19 15:45:44 -05:00
cketcham
7d4b472262
Add copy of ViewOverlay compatibility until it is included in androidx
...
PiperOrigin-RevId: 283403884
2019-12-03 17:16:13 -05:00
cketcham
b9f8ee94b3
Adding option to enable and disable bottom inset padding for BottomAppBar
...
Resolves https://github.com/material-components/material-components-android/issues/580
This adds the paddingBottomSystemWindowInsets attribute which is a databinding extension that will probably be part of https://github.com/chrisbanes/insetter
PiperOrigin-RevId: 277139485
2019-11-01 13:28:40 -07:00
cketcham
81e708e1bb
Add @NonNull and @Nullable annotations
...
PiperOrigin-RevId: 264745164
2019-08-26 11:19:28 -04:00
isabellekim
a628bf516b
Revert the library to compile with Java 7: revert lambdas, add necessary casts, and make some variables final.
...
Continue compile shrine demo, catalog, and tests with Java 8.
PiperOrigin-RevId: 257874888
2019-07-15 19:19:23 -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
cketcham
8a2e358f1f
Fix issue with insets being overwritten by providing a copy
...
PiperOrigin-RevId: 253785920
2019-06-18 13:53:14 -04:00
cketcham
bff75f2d3e
Update to lamdas
...
PiperOrigin-RevId: 252846439
2019-06-18 13:21:02 -04:00
cketcham
1aa7125398
Update BottomAppBar to respect bottom system insets
...
PiperOrigin-RevId: 252394398
2019-06-18 11:49:00 -04:00
dniz
2ab5bdbf29
Date Picker text field toggle
...
PiperOrigin-RevId: 251443135
2019-06-10 08:45:32 -07:00
gauthams
1db449c897
Refactor dpToPx method into ViewUtils
...
PiperOrigin-RevId: 235243747
2019-02-24 14:38:37 -05:00
cketcham
dc72aaeed4
Migrate Gradle build and sources to androidx
...
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
dniz
9ca33544ac
Update package name to com.google.android.material
...
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00