1. 程式人生 > >layout、layout-land和layout-port的區別

layout、layout-land和layout-port的區別

 一般把UI 佈局檔案放在layout資料夾下,如果要支援橫屏,就會取同名的layout放在layout-land資料夾下。

-res/layout-land 橫屏  -res/layout-port 豎屏  -res/layout 預設

還有layout-finger, layout-land-finger, finger使用在對手指觸控支援很好的螢幕(finger-friendly touchscree)。平時開發基本不會用到。