Its quite small article about reading custom attributes from theme in Activity code.
First we need to define our custom attribute.
Apply this attribute to Activity’s theme
Read this attribute in activity and set TextView text.
Full source code for this article is available on GitHub