Issue
Is there a way to perform boolean logic inside an Android resource file? I'd like to calculate a boolean layout property based on two values.
Solution
You cannot directly do that, but try looking into a Android Selector
With that you set different layout-option based on boolean values, which you can access programmatically. So use a selecter and calculated your boolean property and then correctly pass this information to the selector in order to display the correct layout.
Answered By - Felix Eder
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.