Android P visibilityawareimagebutton.setVisibility can only be called from the same library group

前端 未结 8 1860
不思量自难忘°
不思量自难忘° 2020-12-23 20:00

I\'m trying to use the new Android P FloatingActionButton that\'s part of the com.google.android.material.floatingactionbutton.FloatingActionButton and I\'m get

8条回答
  •  长情又很酷
    2020-12-23 20:31

    For com.google.android.material.floatingactionbutton.FloatingActionButton

    Visibility

    Use the show and hide methods to animate the visibility of a FloatingActionButton. The show animation grows the widget and fades it in, while the hide animation shrinks the widget and fades it out.

    Source: https://material.io/develop/android/components/floating-action-button/

    For android.support.design.widget.FloatingActionButton use setVisibility() Method

提交回复
热议问题