开发者

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?

Thanks


What 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜