0

I've got a module with some custom components. Inside one of these I have a DatePickerDialog. I need to using a custom accent color for these. How can I retrieve the color from the main app style? Is there a way to use the same style avoiding circular reference? Otherwise, there is a method to set programmatically the accent color for a DatePickerDialog?

4

1 回答 1

5

您可以在子模块中定义样式,并在主模块中使用相同的名称定义它。应用程序将覆盖子模块的样式并从您的主模块应用它。

于 2017-03-27T14:47:46.493 回答