最終更新:2012-12-05 (水) 16:54:04 (4150d)  

Android/res/layout
Top / Android / res / layout

ファイル

  • activity_main.xml?

横向き用リソース

  • Android/res/layout-land/main.xml?

Android/レイアウト

画面サイズ別 (deprecated)

  • Android/res/layout-small?
  • Android/res/layout-normal?
  • Android/res/layout-large?
  • Android/res/layout-xlarge?

廃止

  • Beginning with Android 3.2 (Android/APIレベル13), the above size groups are deprecated and you should instead use the sw<N>dp configuration qualifier to define the smallest available width required by your layout resources.

dp

  • <N>dp (width N dp)
    • アプリ描画領域の横幅が<N>dpより大きい場合に参照されるリソース
  • h<N>dp (height N dp)
    • アプリ描画領域の高さが<N>dpより大きい場合に参照されるリソース
  • sw<N>dp (smallest width N dp)
    • アプリ描画領域で最も短い辺の長さが<N>dpより大きい場合に参照されるリソース

優先順位

  • layout-h<N>dp > layout-sw<N>dp > layout-w<N>dp > layout(デフォルト)

  • Android/res/layout-land?
  • Android/res/layout-port?
  • Android/res/layout-sw600dp - アプリ描画領域で最も短い辺の長さが600dpより大きい場合に参照される

関連