Read custom attributes from activity

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

Leave a Reply

Your email address will not be published. Required fields are marked *