Android res フォルダーの xml ファイルで次のコードを取得しました。
<?xml version="1.0" encoding="utf-8"?>
<designs>
<design name="2Parts">
<module id="0" posY="0" posX="0" height="0.5" width="1" capHeight="0.2"></module>
<module id="1" posY="0.5" posX="0" height="0.66" width="1" capHeight="0.2"></module>
</design>
height="0.5" を使用する代わりに、 height="@string/height_one" のような文字列からの変数が必要です。しかし、どういうわけか @string 関数を使用できません。それは可能ですか?
他のファイルの文字列で計算する簡単な方法はありますか? 例:
height="@string/height_one * 0.5" ?
あなたの答えを楽しみにしています