pekingme
8204856dd4
[Token][Color] Upgraded to v0.170 for tonal surface colors.
...
PiperOrigin-RevId: 555230534
2023-08-09 19:03:25 +00:00
pekingme
c7a0adf8dd
[AppBarLayout] Added getMaterialShapeBackground() to return a MaterialShapeDrawable object of the background (non-lifted layer).
...
PiperOrigin-RevId: 553531357
2023-08-04 01:04:40 +00:00
pekingme
2b476b3a96
[TopAppBar] Updated the handling of liftOnScrollColor not override android:background.
...
PiperOrigin-RevId: 547883467
2023-07-17 15:56:54 +00:00
rightnao
e3b255b3a0
[Docs] Crosslink github docs in javadocs
...
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
pekingme
6980c40f12
[TopAppBar] Updated to take a CSL as the AppBarLayout background color.
...
PiperOrigin-RevId: 527090028
2023-04-26 16:18:09 -04:00
rightnao
fdaff78506
[TopAppBar] Removing keyboard scroll event workaround for AppBarLayout since CoordinatorLayout issue has been fixed in androidx.core:core:1.10.0
...
Resolves https://github.com/material-components/material-components-android/issues/2249
PiperOrigin-RevId: 525775019
2023-04-24 15:29:47 -04:00
pekingme
d722a782bc
[Tokens] Upgraded outdated token output in textfield & appbar.
...
PiperOrigin-RevId: 520714140
2023-03-30 21:58:22 +00:00
pekingme
b3f7b6604e
[AppBarLayout] Fixed dragging the app bar layout overshoots the status bar.
...
Resolves https://github.com/material-components/material-components-android/issues/3316
PiperOrigin-RevId: 520466126
2023-03-30 15:55:50 +00:00
pekingme
dfbf4d9c2c
[Cleanup] Minor fix.
...
PiperOrigin-RevId: 519997026
2023-03-28 16:19:46 +00:00
rightnao
21a7aff545
[AppBarLayout] Fix bug in AppBarLayout that refreshes all its children's drawables instead of just its own
...
Resolves https://github.com/material-components/material-components-android/issues/3233
PiperOrigin-RevId: 512678371
2023-02-27 20:48:34 +00:00
hunterstich
b3f32d42a0
[TopAppBar] Added app:layout_scrollEffect to public attributes.
...
PiperOrigin-RevId: 509484463
2023-02-15 10:21:30 -08:00
pubiqq
80ec5ccdd5
[AppBarLayout] Add AbsListView to views that support nested scrolling
...
Resolves https://github.com/material-components/material-components-android/pull/3220
GIT_ORIGIN_REV_ID=14e89d9356190155a82f01414c2221118d8d1d02
PiperOrigin-RevId: 507880939
2023-02-07 22:14:29 +00:00
dsn5ft
86600c2cf1
[MaterialToolbar] Override inflateMenu() to stop dispatching item changes during inflation for a performance improvement
...
PiperOrigin-RevId: 503995162
2023-01-24 11:55:47 -05:00
pekingme
4c31ab50aa
Automated g4 rollback of changelist 498007913
...
PiperOrigin-RevId: 502944558
2023-01-19 17:49:56 +00:00
Material Design Team
0200690256
Automated g4 rollback of changelist 497863181
...
PiperOrigin-RevId: 498007913
2022-12-29 00:20:39 -05:00
pekingme
44445fa90a
[AppBar] Integrated tokens.
...
PiperOrigin-RevId: 497863181
2022-12-29 00:19:54 -05:00
conradchen
7b8faef12b
[TopAppBar] Fix input rectangle being modified in onRequestChildRectangleOnScreen()
...
Resolves https://github.com/material-components/material-components-android/issues/3054
PiperOrigin-RevId: 491440304
2022-11-28 17:17:40 -05:00
rightnao
c8108b1f8e
[TopAppBar] Update motion specs
...
PiperOrigin-RevId: 480953621
2022-10-13 21:01:26 +00:00
rightnao
c587dd1259
[AppBarLayout] Adding new attribute liftOnScrollColor that disables elevation overlay and allows users to change the app bar color
...
PiperOrigin-RevId: 477794812
2022-10-03 16:57:13 +00:00
rightnao
9df6c9d072
[AppBarLayout] Fix issue with a physical keyboard scroll not collapsing toolbar
...
PiperOrigin-RevId: 471608866
2022-09-01 17:22:43 -07:00
rightnao
14415a1308
[AppBarLayout] Make a new setter for scroll effect and make SCROLL_EFFECT_COMPRESS public
...
resolves https://github.com/material-components/material-components-android/issues/2894
PiperOrigin-RevId: 471289613
2022-08-31 15:55:37 -07:00
raajkumars
4e323fa18b
[M3][Search] Added search bar component.
...
PiperOrigin-RevId: 467749926
2022-08-16 15:18:07 -04:00
rightnao
29bed9a021
[CollapsingToolbarLayout] Exposing methods to set text size for collapsed and expanded text size
...
Resolves https://github.com/material-components/material-components-android/issues/775
PiperOrigin-RevId: 465391478
2022-08-05 19:10:31 +00:00
Material Design Team
7fc2aed7dc
[AppBarLayout] Fix bug in HeaderScrollingViewBehavior that causes child translation Y not to be reset to default if the behavior is changed from an overlapping to non-overlapping behavior in layoutParams.setBehavior
...
PiperOrigin-RevId: 462201550
2022-07-20 21:49:08 +00:00
conradchen
10ac255bb2
Automated g4 rollback of changelist 457744460
...
PiperOrigin-RevId: 459744654
2022-07-08 13:27:04 -07:00
conradchen
ca2da6c6a4
Automated g4 rollback of changelist 454163860
...
PiperOrigin-RevId: 457744460
2022-06-29 14:36:58 +00:00
dsn5ft
241aa5cd8b
[CollapsingToolbarLayout] Added experimental API to allow generic customizations of the StaticLayout.Builder used for the title text
...
Example usage:
```
collapsingToolbarLayout.setStaticLayoutBuilderConfigurer(
builder ->
builder.setLineBreakConfig(
new LineBreakConfig.Builder()
.setLineBreakWordStyle(LineBreakConfig.LINE_BREAK_WORD_STYLE_PHRASE)
.build()));
```
PiperOrigin-RevId: 455625977
2022-06-23 18:32:33 +00:00
conradchen
687e73590d
[TopAppBar] Exclude gone views from scroll range calculation
...
Resolves https://github.com/material-components/material-components-android/issues/2709
PiperOrigin-RevId: 454163860
2022-06-10 16:38:51 -07:00
dsn5ft
c5b37e6ea6
[MaterialToolbar] Add clearNavigationIconTint() method
...
Resolves https://github.com/material-components/material-components-android/issues/2678
PiperOrigin-RevId: 453220817
2022-06-06 14:25:49 -07:00
pubiqq
382ce9c792
[TopAppBar] Fix copy constructors
...
Resolves https://github.com/material-components/material-components-android/pull/2686
GIT_ORIGIN_REV_ID=7f62b56c7edf01046e85b474d1cf0f17c6153b68
PiperOrigin-RevId: 450440535
2022-05-23 11:20:15 -04:00
Material Design Team
4b81bb1d1a
[AppBarLayout] Loosen check for scrollable child when adding a11y actions
...
Adding the a11y delegate and a11y actions was dependent on there being a CoordinatorLayout child that both inherits from certain scrolling classes (NestedScrollingChild, ListView, ScrollView) and has an AppBarLayout scrolling behavior. This was too restrictive and so we only check for a behavior.
Any scrolling child may add an a11y delegate or scroll action to the parent CoordinatorLayout.
PiperOrigin-RevId: 448335380
2022-05-12 17:24:36 -04:00
Material Design Team
72228f4f35
[AppBarLayout] Fix scrolling for a11y
...
Ensure the CoL can scroll to the bottommost elements of the scrolling child, which may not be visible due to the app bar.
Also, set the node info properties to expose the CoL to auto-scrolling.
PiperOrigin-RevId: 447596411
2022-05-10 09:48:55 -04:00
Venugopal Rao Gubbala
7b043c3b68
[CollapsingToolbarLayout] Allow application to Set ellipsis to Title in CollapsingToolBar
...
Resolves https://github.com/material-components/material-components-android/pull/2636
GIT_ORIGIN_REV_ID=f6c2b07c1eb936ed2de47b7586688a5f6b322e48
PiperOrigin-RevId: 445200467
2022-04-28 16:26:58 -04:00
dsn5ft
d6c435461e
[AppBarLayout] Add setLiftOnScrollTargetView() method
...
Resolves https://github.com/material-components/material-components-android/pull/2544
PiperOrigin-RevId: 442823082
2022-04-19 12:02:59 -04:00
conradchen
05be1b92c5
[TopAppBar] Fix app:expanded=false not working
...
When an AppBarLayout is loaded, it will load the attribute and set up a non-forcing pending action. However when it's measured, the current scroll state will be saved and restored, which will override the non-forcing pending action. This behavior is incorrect - if there's a pending action, we shouldn't restore the scrolling state because it's meant to be changed.
Resolves https://github.com/material-components/material-components-android/issues/2629
PiperOrigin-RevId: 440960254
2022-04-11 15:47:00 -04:00
dsn5ft
b49284ec75
[M3][Toolbar] Hide shadows on all M3 Toolbar styles, not just Surface style
...
Resolves https://github.com/material-components/material-components-android/issues/2552
PiperOrigin-RevId: 429059800
2022-02-18 15:40:35 +00:00
P1NG2WIN
b01051b8bc
[MaterialToolbar] Support scaleType and adjustViewBounds for logo
...
Resolves https://github.com/material-components/material-components-android/pull/2562
GIT_ORIGIN_REV_ID=c675c6a12e2fc242d2e9e019913df650b87eea2b
PiperOrigin-RevId: 428837808
2022-02-15 19:52:03 +00:00
pfthomas
0f2b5378f7
[Top App Bar][ActionMode] Make title and subtitle match ActionBar's
...
Resolves https://github.com/material-components/material-components-android/issues/2189
PiperOrigin-RevId: 425712147
2022-02-01 22:00:53 -08:00
conradchen
698cf9b45e
[AppBarLayout] Save and restore scroll state during scroll range recalculation
...
When scroll range changes, the current scroll position may not make sense anymore. Therefore we need to save the scroll state and restore it after the scroll range is invalidated. This change reuses and refactors the existing saving instance state logic to support this need. Also adds a flag to denote "fully expanded" state to avoid improper scroll position calculation when views are still being initialized.
PiperOrigin-RevId: 421348135
2022-01-13 12:15:17 -05:00
Material Design Team
cfc00aa5a3
Update android core class definitions across material
...
PiperOrigin-RevId: 414839941
2021-12-08 14:56:25 +00:00
conradchen
acb7958c66
[TopAppBar] Fix top app bar snapping issue
...
Unlike other child views of AppBarLayout, CollapsingToolbarLayout will shift its top boundary to consume the window insets as well. Therefore we need to shift the top boundary back when calculating snapping positions to have a consistent logic with other views.
This CL also simplifies the calculation so the origin of the y-coordinate used in the calculation will always be the top of the AppBarLayout.
PiperOrigin-RevId: 413750156
2021-12-06 19:34:30 +00:00
Dan Nizri
b7c7d18834
Revert "[Material Toolbar] Change logo scaleType and set logo adjustViewBounds"
2021-12-01 18:41:20 -05:00
Jose Figueroa
71a110fe89
Merge pull request #2406 from P1NG2WIN/master
...
[Material Toolbar] Change logo scaleType and set logo adjustViewBounds
2021-12-01 16:47:25 -05:00
Material Design Team
a487c89185
Internal change
...
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
jeremymuhia
65754bd152
[CollapsingToolbarLayout][a11y] collapsing toolbar layout not respecting system level bold
...
PiperOrigin-RevId: 410846065
2021-11-29 16:53:01 +00:00
P1NG2WIN
9f7a6ea667
fix
2021-11-04 03:42:55 +02:00
P1NG2WIN
71489349df
Merge remote-tracking branch 'origin/master'
2021-11-02 12:59:53 +02:00
P1NG2WIN
2cf8ef0c96
fix
2021-11-02 12:59:35 +02:00
Khang NT
b935604e2c
[AppBarLayout] Fix snap issue with transparent status bar
...
Resolves https://github.com/material-components/material-components-android/pull/2387
GIT_ORIGIN_REV_ID=47538c3b4cb10337c537d1ef532bd1d73b216ae3
PiperOrigin-RevId: 406835368
2021-11-01 19:53:05 +00:00
dsn5ft
9ae56ceedd
[Javadocs] Remove all broken attr links from Javadocs
...
PiperOrigin-RevId: 404246710
2021-10-20 19:06:18 +00:00