Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ハードコードされた値 (パディング、メジャー、および et) を使用してすべてのレイアウトを作成しました。値を dimen.xml に自動的に転送する方法はありますか?
私の英語でごめんなさい。
私の知る限り、ハードコードされたプロジェクトの dimen.xml を自動的に生成することはできません。必要に応じて、ldpi、mdpi、hdpi、xhdpi の dimen.xml ファイルを手動で作成し、ハードコーディングされた値の代わりにその dimen 参照を使用する必要があります。それを行う他の方法はありません。