Skip to content

Commit

Permalink
[ExtendedFloatingActionButton] Add a extendToWrapContent attribute …
Browse files Browse the repository at this point in the history
…that can disable the current eFAB behavior of extending to wrap content (thus allowing `extend` to return to its original width before shrinking)

Resolves #3006

PiperOrigin-RevId: 487376415
  • Loading branch information
imhappi authored and raajkumars committed Nov 10, 2022
1 parent 857f481 commit d5b41c1
Show file tree
Hide file tree
Showing 5 changed files with 266 additions and 46 deletions.
1 change: 1 addition & 0 deletions docs/components/FloatingActionButton.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ Element | Attribute
**Stroke color** | `app:strokeColor` | `setStrokeColor`<br/>`getStrokeColor` | `null`
**Stroke width** | `app:strokeWidth` | `setStrokeWidth`<br/>`getStrokeWidth` | `0dp`
**Size** | `app:collapsedSize` | N/A |
**Extend Strategy** | `app:extendStrategy` | N/A | `wrap_content`
**Shape** | `app:shapeAppearance`<br/>`app:shapeAppearanceOverlay` | `setShapeAppearanceModel`<br/>`getShapeAppearanceModel` | `ShapeAppearanceOverlay.Material3.FloatingActionButton`<br/>
**Elevation** | `app:elevation` | `setElevation`<br/>`getElevation` | `6dp`
**Hovered/Focused elevation** | `app:hoveredFocusedTranslationZ` | N/A | `2dp`
Expand Down
Loading

0 comments on commit d5b41c1

Please sign in to comment.