Monday, 30 September 2013

getString() method for a class which extends from LinearLayout

getString() method for a class which extends from LinearLayout

I have a class which extends from LinearLayout. I want to use a string
from string.xml . Normally I use the following code:
this.getString(R.string.xxxx);
But since my class extends from LinearLayout I can't call getString()
method. How can i access those strings which are in my string.xml from my
class?

No comments:

Post a Comment