Add go to and refresh to FavouriteScene
This commit is contained in:
1 parent
5087311b26
commit
19403975ba
3 files changed
+157
-14
No files matched your search
@@ -105,6 +105,19 @@ public class FabLayout extends ViewGroup implements View.OnClickListener {
|
||||
return (FloatingActionButton) getChildAt(index);
|
||||
}
|
||||
|
||||
public void setSecondaryFabVisibilityAt(int index, boolean visible) {
|
||||
View fab = getSecondaryFabAt(index);
|
||||
if (fab != null) {
|
||||
if (visible && fab.getVisibility() == View.GONE) {
|
||||
fab.animate().cancel();
|
||||
fab.setVisibility(mExpanded ? View.VISIBLE : View.INVISIBLE);
|
||||
} else if (!visible && fab.getVisibility() != View.GONE) {
|
||||
fab.animate().cancel();
|
||||
fab.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||
AssertUtils.assertEquals("Measure mode must be MeasureSpec.EXACTLY",
|
||||
|
||||
Reference in new issue
Block a user