question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ExtendedFloatingActionButton] app:elevation="0dp" is invalid

See original GitHub issue

Description: app:elevation=“0dp” is invalid

Expected behavior: the same as FloatingActionButton

Source code:

<com.google.android.material.floatingactionbutton.FloatingActionButton
    android:id="@+id/floatingActionButton"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:elevation="0dp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:elevation="0dp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/floatingActionButton" />

Android API version: API 29

Material Library version: ‘com.google.android.material:material:1.3.0’

Device: Pixel 2(virtual machine)

Preview layout_design

device

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dzakdzakscommented, Jun 8, 2021

it happens to me, I cannot set elevation too. I think that’s a bug.

The above answer has solved the problem.

Ahh i see. Thanks @SashaCube @rianlu.

0reactions
drchencommented, Oct 6, 2021

I’ll close the issue for now due to it’s sort of working as intended and we have a reliable way to bypass it. : )

Read more comments on GitHub >

github_iconTop Results From Across the Web

FloatingActionButton with text instead of image - Stack Overflow
The most common Error, in this case, is an attempt to add text with FloatingActionButton. This is not how FAB is designed. Use...
Read more >
ExtendedFloatingActionButton - Android Developers
Sets whether the associated ExtendedFloatingActionButton automatically shrink when there is not enough space to be displayed. Protected methods. void ...
Read more >
Quick Tips to Start Using ExtendedFloatingActionButton
This article will provide you with the base knowledge & usage tips for adding Extended FAB to your project. Today we're going to...
Read more >
How to add Extended Floating Action Button in Android | Java
Extended Floating Action Button is the newly introduced class ... isAllFabsVisible = false; // Set the Extended floating action button to
Read more >
Extended Floating Action Button in Android with Example
Steps for Creating Extended Floating Action Button. Step 1: Create a New Project ... protected void onCreate(Bundle savedInstanceState) {.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found