Need to get an attribute for runtime
<p>I've been researching this for days. There is a piece of code I am working on that depends on knowing whether clipToPadding is set to true or false. While the documentation provides a solution for setting this attribute, I cannot find an effective way to read the attribute that does not depend on XML. Ordinarily, this would not be a problem but the class I created is meant to be subclasses by layout objects and may or may not be generated by XML. Is there a way to get the value of clipToPadding without having to rely on XML attributes?</p>

<p>Thanks in advance,
Fuzzical Logic</p>
