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.
縦向きのスタイルと横向きのスタイルを定義して、デバイスを回転させたときに変更が自動的に行われるようにするか、プログラムで行う必要がありますか?
ありがとう
あなたの/resフォルダーに、という名前の新しいフォルダーを作成し、そこlayout-landに入れますmain.xml。横向きのレイアウトに切り替わります。
/res
layout-land
main.xml