use show/hide for fab instead of setVisibility
This commit is contained in:
parent
a3457db546
commit
163ea4959f
1 changed files with 6 additions and 6 deletions
|
@ -612,20 +612,20 @@ public class MainActivity extends AppCompatActivity implements TrackbookKeys {
|
||||||
/* Shows (and hides) the sub menu of the floating action button */
|
/* Shows (and hides) the sub menu of the floating action button */
|
||||||
private void showFloatingActionButtonMenu(boolean visible) {
|
private void showFloatingActionButtonMenu(boolean visible) {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
mFloatingActionButtonSubResume.setVisibility(View.VISIBLE);
|
mFloatingActionButtonSubResume.show();
|
||||||
mFloatingActionButtonSubResumeLabel.setVisibility(View.VISIBLE);
|
mFloatingActionButtonSubResumeLabel.setVisibility(View.VISIBLE);
|
||||||
mFloatingActionButtonSubClear.setVisibility(View.VISIBLE);
|
mFloatingActionButtonSubClear.show();
|
||||||
mFloatingActionButtonSubClearLabel.setVisibility(View.VISIBLE);
|
mFloatingActionButtonSubClearLabel.setVisibility(View.VISIBLE);
|
||||||
mFloatingActionButtonSubSave.setVisibility(View.VISIBLE);
|
mFloatingActionButtonSubSave.show();
|
||||||
mFloatingActionButtonSubSaveLabel.setVisibility(View.VISIBLE);
|
mFloatingActionButtonSubSaveLabel.setVisibility(View.VISIBLE);
|
||||||
mFloatingActionButtonSubMenuVisible = true;
|
mFloatingActionButtonSubMenuVisible = true;
|
||||||
} else {
|
} else {
|
||||||
mFloatingActionButtonSubResume.setVisibility(View.INVISIBLE);
|
mFloatingActionButtonSubResume.hide();
|
||||||
mFloatingActionButtonSubResumeLabel.setVisibility(View.INVISIBLE);
|
mFloatingActionButtonSubResumeLabel.setVisibility(View.INVISIBLE);
|
||||||
mFloatingActionButtonSubClear.setVisibility(View.INVISIBLE);
|
mFloatingActionButtonSubClear.hide();
|
||||||
mFloatingActionButtonSubClearLabel.setVisibility(View.INVISIBLE);
|
mFloatingActionButtonSubClearLabel.setVisibility(View.INVISIBLE);
|
||||||
|
mFloatingActionButtonSubSave.hide();
|
||||||
mFloatingActionButtonSubSaveLabel.setVisibility(View.INVISIBLE);
|
mFloatingActionButtonSubSaveLabel.setVisibility(View.INVISIBLE);
|
||||||
mFloatingActionButtonSubSave.setVisibility(View.INVISIBLE);
|
|
||||||
mFloatingActionButtonSubMenuVisible = false;
|
mFloatingActionButtonSubMenuVisible = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue