conradchen
8123c63747
[Menu] Fix toolbar menu arrow not visible
...
In toolbar styles we use android:theme to override text and icon colors and set ?attr/colorControlNormal to ?attr/colorOnPrimary, which is the same color (white) in the light mode as the menu background. To override this behavior again, we need to use ?attr/popupTheme and set ?attr/colorControlNormal to ?attr/colorOnSurface.
Resolves https://github.com/material-components/material-components-android/issues/553
PiperOrigin-RevId: 392003704
2021-08-23 09:36:09 -07:00
dsn5ft
cb74134075
[M3][Top App Bar] Fixed collapsing toolbar collapsed title text appearance
...
PiperOrigin-RevId: 391821355
2021-08-23 09:27:39 -07:00
dsn5ft
18490ff82d
[M3][Top App Bar] Added new AppBarLayout, CollapsingToolbarLayout, and Toolbar styles and updated Catalog pages + demos
...
PiperOrigin-RevId: 391755524
2021-08-23 09:20:24 -07:00
pfthomas
ec3f96cbb9
[CollapsingToolbarLayout] Fix expanded height incorrect after rotation
...
PiperOrigin-RevId: 391547762
2021-08-18 10:27:05 -07:00
conradchen
a682ab0ee0
[AppBar] Make it possible to disable app bars' shadow
...
Originally we always set the outline provider of app bars to BOUND, even if the outline provider is set to none explicitly in the XML file.
Checks if the outline provider is set to BACKGROUND before we override it, to prevent unwanted overriding from happening.
Resolves https://github.com/material-components/material-components-android/issues/2332
PiperOrigin-RevId: 391339943
2021-08-18 10:01:27 -07:00
dsn5ft
e2c911b9e5
[AppBarLayout] Add setLiftableOverrideEnabled() method to allow toggling between automatic and manual setLifted() behavior
...
PiperOrigin-RevId: 388786221
2021-08-05 18:20:57 -04:00
dsn5ft
67f9e9da88
[AppBarLayout] Updated setLifted() to preserve lifted state if using setLiftable() programmatically
...
PiperOrigin-RevId: 388539565
2021-08-05 18:19:51 -04:00
dsn5ft
3008d782e7
[AppBarLayout] Added listener for when lift on scroll background elevation and color change
...
PiperOrigin-RevId: 386243658
2021-07-28 14:26:55 -04:00
Material Design Team
3eea60727f
[AppBarLayout] Modify updateAppBarLayoutDrawableState logic to only require a child at an offset for conditions that depend on that child. For conditions that can be determined just based on the AppBarLayout, always check those conditions.
...
PiperOrigin-RevId: 385026332
2021-07-22 10:17:08 -04:00
dsn5ft
aaa0444308
[AppBarLayout] Added support for statusBarForeground lift on scroll elevation overlay for edge to edge mode and updated demo
...
Helpful for the case where the Top App Bar text/icons are still visible underneath a transparent status bar, when the Top App Bar is scrolled up.
PiperOrigin-RevId: 384985602
2021-07-22 10:11:22 -04:00
dniz
655dde062a
[CollapsingToolbarLayout] Added option to add extra height when title text spans across multiple lines
...
PiperOrigin-RevId: 382716405
2021-07-02 08:16:09 -04:00
dniz
9ebf1a1387
[CollapsingToolbarLayout] Added option to force always applying system window inset top regardless of layout_height
...
PiperOrigin-RevId: 382286923
2021-07-01 06:49:33 -07:00
dniz
ae82585b79
[CollapsingToolbarLayout] Added experimental setRtlTextDirectionHeuristicsEnabled() method
...
PiperOrigin-RevId: 377044268
2021-06-02 16:47:05 -04:00
haodong
e3343326ab
[MaterialToolbar & BottomAppBar] Updated navigationIconTint implementation to mutate drawable to prevent tinting drawable globally
...
Resolves https://github.com/material-components/material-components-android/issues/2207
PiperOrigin-RevId: 375130975
2021-05-21 14:12:02 -07:00
dniz
5c147722ed
[CollapsingToolbarLayout] Added support for expanded and collapsed title text color attributes
...
PiperOrigin-RevId: 375103699
2021-05-21 14:10:28 -07:00
dniz
841f229592
[CollapsingToolbarLayout] Fixed RTL text only laying out as RTL when actual text is RTL
...
PiperOrigin-RevId: 374663684
2021-05-19 11:00:25 -07:00
dniz
f0ce498108
[CollapsingToolbarLayout] Added title line spacing and hyphenation frequency setters
...
PiperOrigin-RevId: 371920600
2021-05-05 09:40:38 -04:00
haodong
0ed7c7675e
[BottomAppBar] Adding the attr to set the color of navigation icon.
...
PiperOrigin-RevId: 370999656
2021-04-29 14:49:59 -04:00
hunterstich
586d5543e2
[AppBarLayout] Added compress scroll effect.
...
PiperOrigin-RevId: 370090494
2021-04-23 14:49:12 -04:00
dniz
be85a92a73
[CollapsingToolbarLayout] Added getLineCount() method
...
PiperOrigin-RevId: 368630070
2021-04-16 17:48:59 -04:00
Material Design Team
7fc9df5399
Automated g4 rollback of changelist 368429312
...
PiperOrigin-RevId: 368474895
2021-04-16 12:44:38 -04:00
dniz
2b2c69f773
[CollapsingToolbarLayout] Added getLineCount() method
...
PiperOrigin-RevId: 368429312
2021-04-16 12:43:47 -04:00
dniz
9c75ad07f7
[CollapsingToolbarLayout] Added support for fade out/in title collapse mode
...
PiperOrigin-RevId: 365629647
2021-03-30 14:48:19 -04:00
dniz
1f6ebe9e7b
[CollapsingToolbarLayout] Fixed Toolbar link errors in javadoc due to androidx vs framework Toolbar support
...
PiperOrigin-RevId: 360443545
2021-03-03 14:24:34 -05:00
dniz
cbf528e3a6
[MaterialToolbar] Added support for centering title and subtitle
...
Resolves https://github.com/material-components/material-components-android/issues/2011
PiperOrigin-RevId: 359360955
2021-03-03 12:37:29 -05:00
dniz
2a639a311e
[AppBarLayout] Fix spec link in Javadoc
...
PiperOrigin-RevId: 353032509
2021-01-21 12:55:18 -08:00
dniz
036cff7c33
[CollapsingToolbarLayout] Updated CollapsingToolbarLayout to support framework android.widget.Toolbar (<Toolbar)
...
PiperOrigin-RevId: 345236307
2020-12-02 15:04:30 -05:00
dniz
a21a30026a
[CollapsingToolbarLayout] Fixed scrolling sibling view bottom cut off issue
...
There was an issue when navigating back to a fragment with a CollapsingToolbarLayout, where the items at bottom of the CollapsingToolbarLayout's scrolling sibling view were cut off and couldn't be reached by scrolling. It had to do with the minimum height of the CollapsingToolbarLayout not being set at the point when HeaderScrollingViewBehavior calculates the height of the scrolling view in its onMeasureChild() method. The onMeasureChild() method factors in AppBarLayout#getTotalScrollRange which is dependent on the minimum height of the CollapsingToolbarLayout, so moving the CollapsingToolbarLayout's setMinimumHeight() from its onLayout() to its onMeasure() fixes the issue by making the minimum height available earlier.
Resolves https://github.com/material-components/material-components-android/issues/1558
Resolves https://github.com/material-components/material-components-android/issues/846
Resolves https://github.com/material-components/material-components-android/issues/1070
Resolves https://github.com/material-components/material-components-android/issues/1198
PiperOrigin-RevId: 337309314
2020-10-15 13:40:26 -07:00
dniz
e5bed8653c
[MaterialToolbar] Renamed navigationIconColor attribute to navigationIconTint
...
PiperOrigin-RevId: 336079531
2020-10-08 16:35:04 +00:00
dniz
a6d788f28e
[CollapsingToolbarLayout] Added collapsingToolbarLayoutStyle default theme attribute
...
PiperOrigin-RevId: 333515330
2020-09-24 09:02:13 -07:00
dniz
d5eeea6247
[MaterialToolbar] Added navigationIconColor attribute
...
PiperOrigin-RevId: 332019070
2020-09-16 11:45:41 -07:00
dniz
4a0f60c62d
[AppBarLayout] Added isLifted() getter
...
PiperOrigin-RevId: 331606863
2020-09-15 09:27:58 -07:00
Frantisek Nagy
8210b3ac01
[CollapsingToolbarLayout] Fix CollapsingToolbar multiline position
...
GIT_ORIGIN_REV_ID=7dbd8905bf58eb5811c4661ee77512d4d9c59c19
Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 321294325
2020-07-15 09:49:15 -07:00
marianomartin
049ad022a6
Delete components build.gradle files
...
PiperOrigin-RevId: 320944144
2020-07-15 09:38:31 -07: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
Material Design Team
073382034a
Migrate android.support.v4.content.ContextCompat to androidx
...
Android X migration
PiperOrigin-RevId: 315791679
2020-06-11 17:27:51 -07:00
Material Design Team
76ffe35fef
Cleanup
...
PiperOrigin-RevId: 313865830
2020-06-01 16:52:06 -04:00
marianomartin
7e6dfce572
Bring back CollpasingToolbarLayout MaterialThemeOverlay support
...
PiperOrigin-RevId: 295971324
2020-02-19 13:27:47 -05:00
johan12345
d7554adce3
Add catalog demo for CollapsingToolbarLayout with mutliple lines
...
Resolves https://github.com/material-components/material-components-android/pull/413
Resolves https://github.com/material-components/material-components-android/issues/6
PiperOrigin-RevId: 294481434
2020-02-11 14:36:03 -05:00
marianomartin
83e4e47d22
Initial support for Multiline CollapsingToolbarLayout
...
This cl adds the capabilities to set multiline on CollapsingToolbarLayout while keeping single line toolbars unchanged.
Co-Authored-By: johan12345 <johan.forstner@gmail.com>
PiperOrigin-RevId: 294256516
2020-02-10 14:32:15 -05:00
cketcham
b467d65bc4
Add attributes from AppBar to public.xml
...
PiperOrigin-RevId: 293847895
2020-02-10 09:57:20 -05:00
isabellekim
1f9de68025
[All] Add support for materialThemeOverlay
...
Resolves https://github.com/material-components/material-components-android/pull/948
GIT_ORIGIN_REV_ID=5a8bb35a56c1b813df47d964de8482a26e0da66d
PiperOrigin-RevId: 293839172
2020-02-10 09:55:19 -05:00
Material Design Team
0a03911f89
Add more a11y support to AppBarLayout's BaseBehavior.
...
PiperOrigin-RevId: 289692654
2020-01-14 15:05:59 -08:00
dniz
2059499085
Fix AppBarLayout statusBarForeground issue where status bar drawable is drawn behind content
...
Resolves https://github.com/material-components/material-components-android/issues/824
PiperOrigin-RevId: 285981837
2019-12-17 17:07:12 -05:00
marianomartin
c266251ee9
Cleanup HeaderBehavior
...
PiperOrigin-RevId: 280004172
2019-11-12 16:24:26 -05:00
haodong
7bcd5f606e
Fixed popup menu on action bar.
...
* Made sure light/dark theme always shows popup menu in corresponding theme.
* Increased contrast of text in popup menu in dark theme.
PiperOrigin-RevId: 278397458
2019-11-04 13:09:28 -05:00
marianomartin
115313c0c0
Expose a class for themeoverlay in style
...
This moves functionality from ThemeEnforcement into a stand alone class.
Resolves https://github.com/material-components/material-components-android/issues/665
PiperOrigin-RevId: 275481343
2019-10-21 10:24:19 -04:00
Seanghay
3d074701a8
[AppBarLayout] Added format to appBarLayoutStyle attribute
...
Resolves https://github.com/material-components/material-components-android/pull/649
GIT_ORIGIN_REV_ID=59f78a367d5a3fe61a51a55b7b5ff88d4cac2b7b
PiperOrigin-RevId: 272719500
2019-10-03 19:40:03 -04:00
Material Design Team
5f017cd5cd
Migrate away from deprecated behavior annotation
...
PiperOrigin-RevId: 271616445
2019-09-27 14:59:16 -04:00