-
Notifications
You must be signed in to change notification settings - Fork 4
Using Themes
リェンーゆく edited this page Nov 17, 2020
·
6 revisions
Now, you can start using themes in your app!
Start by using:
yourview.setBackgroundColor(currentTheme.colorBackground);
This code may vary on the type of view or on your usage. For example, use setColorFilter(); to manipulate the image color inside of the ImageView, setBackgroundTintList(ColorStateList.valueOf()); to change the view color if it's using a custom background, and also you surely want to replace the "colorBackground" with whatever color you want for the view.
To view all of the colors that you can use in your app, click here.
If you have any questions about using os-thm, go ahead and post an issue by clicking here.
< Previous Page | Next Page >