taltstidl / AppCompat-Extension-Library

A library that builds on the AppCompat Design Library and provides additional common components such as AccountHeaderView, FloatingActionMenu, CircleImageView, Picker Dialogs, FlexibleToolbarLayout, Delightful Detail Drawables and TypefaceCompat.
Apache License 2.0
304 stars 42 forks source link

更新UI时,界面闪烁。 #28

Open JustinChiang123 opened 6 years ago

JustinChiang123 commented 6 years ago

执行以下2句代码的时候,app界面会看见floatingActionMenu闪烁几次。 1、floatingActionMenu.removeButton(fab); 2、floatingActionMenu.addButton(fab);

希望在floatingActionMenu关闭的时候更新UI时,界面不闪烁。

JustinChiang123 commented 6 years ago

When the UI is updated, the interface flashes.

When executing the following two lines of code, the app interface will see floatingActionMenu flashes several times. 1, floatingActionMenu.removeButton (fab); 2, floatingActionMenu.addButton (fab);

I hope that when the floatingActionMenu closed when the UI update, the interface does not flash.