floatingsearchview icon indicating copy to clipboard operation
floatingsearchview copied to clipboard

Daynight theme support

Open JasonHezz opened this issue 7 years ago • 1 comments

Switch to night mode ,floatingsearchview nothing changed and reopen app ,the floatingsearchview auto switch to night mode here are some screenshot

normal state: image

switch to night mode state: image

reopen app: image

JasonHezz avatar Jun 01 '17 09:06 JasonHezz

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.

JasonHezz avatar Jun 09 '17 07:06 JasonHezz