You are getting an error when you are compiling, correct? Unlike strings, properties can change at runtime (app-settings), so I don't believe they can be used in layouts.
You might want to do that with a string resource. Compile it it based on device/family (resource over-rides/jungles), and if you need it as a number, use toNumber() on the string.