How do I reference a String resource in a class name and concatenate it with another string in XML?
I have created a String resource in Android:
<string name="package_Name">com.blue.MonkeyTech</string>
I want to reference this in a view element in XML
Here开发者_运维技巧 is what I got so far:<view class="@string/package_Name"+".AppHome$DewiButton"
I want to reference the package name from the string resource and then concatenate the class name "AppHome" along with the inner class "DewiButton"
This just gives me an error How do I solve this? ThanksWhat you're trying to do isn't possible. If you give details of what you're trying to achieve then maybe someone can help you with a workaround
精彩评论