If want to create a custom view that is usable by many people, it needs to be customizable. The EPG is no exception. In our initial implementation, we hardcoded some colors and values, but let's see how we can extend these functionalities and make our EPG customizable.
Configurations and Extensions
Making it configurable
In the initial chapters of this book, we introduced how to add parameters and, that way, easily customize our custom view. Following the same principles, we have created an attrs.xml file with all the customizable parameters:
<?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="EPG"> <attr name="backgroundColor...