-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve search bar design on add podcast screen #7249
Conversation
The search bar now looks more up to date with modern android styles.
043e0ef
to
8f92e86
Compare
I further tested the PR and figured out that the colors didn't work on dark theme which send me down into a rabbit whole about how we manage colors and I discovered that the So I also changed how we set that color and now it works on all themes and even on the oldes Android versions we support (Android 5). |
True that was from an experiment I did. |
To be honest I think the white line is cleaner than directly the search bar. If we want, we could add a shadow if & when scrolling. |
b071d97
to
6ba94f3
Compare
Ok I think I might have found the solution, by making the searchbar part of the appbar and tinting it once scrolled down: Screencast of the animation: Screen.Recording.2024-06-25.at.16.41.28.mov |
6ba94f3
to
5a24fbd
Compare
Hmm. It is in line with the material design guidelines but it feels a bit odd to invert the colours. It somehow gives extra prominence to the search bar. Maybe we should just scroll it away together with the rest of the content. If a user is not searching by the time they scroll, they're probably more interested in the other options (discover, add RSS url) anyway. |
Yeah, I see your point, but I tried that earlier and it looked odd, but I will try to get a video for you tomorrow |
The color should be usable as the background for containers with a tint of the accent color, but it was set to the full accent color. Now it is much more in line with how it should work.
5a24fbd
to
1b21422
Compare
Actually, this doesn't look as bad as I thought (though tinting the top bar really helps here which I didn't do the last time I tried it). I might actually prefer this solution (it is also a lot simpler code-wise) than the last one, though I am interested in what you think. Screencast: Screen.Recording.2024-06-26.at.10.24.50.mov |
Thanks! That looks better, yes :-) |
Thanks! |
Description
The search bar now looks more up to date with modern android styles. I tried to get it as close to the official documentation for Search as possible.
Eventually, we could update the MDC library to 1.8 and use the SearchBar component from there but, it is not quite easy and in two separate attempts I never got all aspects of the search to work.
For now I think this is a visual improvement.
Screenshot (left: before, right: this PR):
![image](https://private-user-images.githubusercontent.com/21206831/339810466-ecd9b047-4748-4ebf-85ee-b74519e9dce6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2MjE0NjIsIm5iZiI6MTcyMTYyMTE2MiwicGF0aCI6Ii8yMTIwNjgzMS8zMzk4MTA0NjYtZWNkOWIwNDctNDc0OC00ZWJmLTg1ZWUtYjc0NTE5ZTlkY2U2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIyVDA0MDYwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcwMTNkYmFjODFiMWY1ODBiMGQ1NzgyMjVkYWFjNmJhMzc5MTAxZjBlZmZmMmJhMTVkY2Y4NjI0ZDdiYWMwZjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Uu06PLJCM1u8ub2R7AYKkT77YNw1K_gKw0iWwtJcF0A)
Checklist
./gradlew checkstyle spotbugsPlayDebug spotbugsDebug :app:lintPlayDebug