Open JasonHezz opened 7 years ago
The new version still had the same issue , spend some time to investigate.According to Chris Banes AppCompat v23.2 — DayNight, the resources for day/night switching should not be restored by floatingsearchview. That's why switch to night mode state , the BackgroundColor still is white.
@Override
public void onRestoreInstanceState(Parcelable state) {
.....
// setBackgroundColor(savedState.backgroundColor);
}
it works for me.
Switch to night mode ,floatingsearchview nothing changed and reopen app ,the floatingsearchview auto switch to night mode here are some screenshot
normal state:
switch to night mode state:
reopen app: