dsn5ft
9ae56ceedd
[Javadocs] Remove all broken attr links from Javadocs
...
PiperOrigin-RevId: 404246710
2021-10-20 19:06:18 +00:00
pekingme
9de9319b1e
[Resources] Added styles in res-public.
...
PiperOrigin-RevId: 403451624
2021-10-18 15:31:13 -04:00
Riccardo Ciovati
1b8fb30370
[CollapsingToolbarLayout] Allow customizing the title position interpolator
...
Resolves https://github.com/material-components/material-components-android/pull/1757
GIT_ORIGIN_REV_ID=87dea3a74d8a8f460cc9beb32bcb783f71ee6e63
PiperOrigin-RevId: 401826042
2021-10-11 10:59:08 -04:00
conradchen
7fc006c5e4
[TopAppBar] Fix the issue that top app bars not collapsed when top padding is set
...
In the snap logic we didn't take the AppBarLayout's top padding into account, therefore in certain cases the scrolling will be incorrectly snapped to the top of CollapsingToolbarLayout instead of the bottom of it, which cause the title not collapsed.
PiperOrigin-RevId: 400749401
2021-10-05 09:04:10 -04:00
dsn5ft
c40ac672d8
[M3][Docs] Updated Top App Bar dev doc to Material3 and added new styles/attrs to res-public
...
PiperOrigin-RevId: 398465771
2021-09-23 19:37:46 +00:00
conradchen
4bec3e2b13
[AppBar] Fix incorrect scroll position after orientation changes
...
An app bar remembers the visible percentage of its first visible child during recreation to restore its scroll position. However, if an app bar is "fully" scrolled (scrolled to its maximum range), gets recreated, and changes its size after recreation, it can become not fully scrolled even if it keeps the same visible percentage of its first visible child, due to the difference in its own size. This can result in unexpected "gaps" in the layout due to inconsistency between AppBar layout's scroll position and the content view's.
Fixes this by remembering the "fully scrolled" state and restore it during recreation.
PiperOrigin-RevId: 398013525
2021-09-23 19:18:08 +00:00
dsn5ft
445c4979b3
[M3][Top App Bar] Updated ActionBar and ActionMode styling
...
PiperOrigin-RevId: 397107223
2021-09-20 10:59:34 -07:00
huangtongnao
b7786451ca
[AppBarLayout] fix stateListAnimator related elevation bug
...
Resolves https://github.com/material-components/material-components-android/pull/1190
GIT_ORIGIN_REV_ID=61ad9889e0c99f89b5df70f5bddb86ebd745af4f
PiperOrigin-RevId: 394234794
2021-09-01 17:05:16 -04:00
extmkv
9382bb03c3
[CollapsingToolbarLayout] When scrimAnimator already created we must update the duration when calling setScrimAnimationDuration
...
Resolves https://github.com/material-components/material-components-android/pull/1575
GIT_ORIGIN_REV_ID=7e3f5f99fa650b0282a5338eac254ec71593e795
PiperOrigin-RevId: 394035205
2021-09-01 17:03:15 -04:00
dsn5ft
ebacf79ec1
[M3][Top App Bar] Reorganize styles
...
PiperOrigin-RevId: 392705930
2021-08-24 15:57:22 -04:00
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