Closed D4rK7355608 closed 10 months ago
Hey @D4rK7355608, thanks for the heads up! I believe the appearance is the default for what the Material library from Google provides. However I have noticed that they don't look quite like the system switches. I'll look into this. Thanks for the code snippets!
Fixed in f5ba4bf
Describe the bug The switches for Crashlytics and Event logging in the new update of the Stack app appear unusual.
To Reproduce Steps to reproduce the behavior:
Expected behavior The switches for Crashlytics and Event logging should appear normal.
Screenshots Too lazy to add screenshots.
Device Info (please complete the following information):
Additional context Greetings! I noticed that the Stack app has received a new update, which includes the introduction of switches for Crashlytics and Event logging. However, the switches appear to be a bit unusual. Allow me to explain how to fix them, as I have encountered a similar issue in my own Android apps.
First, create a file called
preference_switch_widget_layout.xml
in thelayout
folder. This file should contain the following code:Next, add the following line to the theme used by the settings activity:
Then, add this style to
themes.xml
:After completing these steps, the switch should display normally (assuming I haven't forgotten anything). 😊