Skip to content

Commit d5b41c1

Browse files
imhappiraajkumars
authored andcommitted
[ExtendedFloatingActionButton] Add a extendToWrapContent attribute 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
1 parent 857f481 commit d5b41c1

File tree

5 files changed

+266
-46
lines changed

5 files changed

+266
-46
lines changed

docs/components/FloatingActionButton.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ Element | Attribute
394394
**Stroke color** | `app:strokeColor` | `setStrokeColor`<br/>`getStrokeColor` | `null`
395395
**Stroke width** | `app:strokeWidth` | `setStrokeWidth`<br/>`getStrokeWidth` | `0dp`
396396
**Size** | `app:collapsedSize` | N/A |
397+
**Extend Strategy** | `app:extendStrategy` | N/A | `wrap_content`
397398
**Shape** | `app:shapeAppearance`<br/>`app:shapeAppearanceOverlay` | `setShapeAppearanceModel`<br/>`getShapeAppearanceModel` | `ShapeAppearanceOverlay.Material3.FloatingActionButton`<br/>
398399
**Elevation** | `app:elevation` | `setElevation`<br/>`getElevation` | `6dp`
399400
**Hovered/Focused elevation** | `app:hoveredFocusedTranslationZ` | N/A | `2dp`

0 commit comments

Comments
 (0)