Issue
I need to obtain string attribute name in custom view.
My custom view extends TextView
and in constructor I need somehow to get android:text
value. Not just string resource value, but name.
For instance, I need to get "appear" from <string name="appear">Some text</string>
.
Any thoughts?
Solution
Just found out, this works for me.
getResources().getResourceName(int resid);
Answered By - Oleksandr Nos
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.