close

常見基本的版面配置



類別 說明
AbsoluteLayout
以絕對位置表示出所有元件的配置, 譬如說以像素的位置來表示
FrameLayout 呈現單一元件項目的框架. 可以容納多個元件, 以堆疊原理存放, 但是僅能呈現最上面的元件項目
Gallery 以水平捲軸來呈現多個影像
GridView 捲軸窗格( m x n) 方式呈現
LinearLayout 以水平或是垂直方式(擇一)排列元件
ListView 直行方式排列呈現
RelativeLayout 以元件的相對位置表示. 可能相對於父元件, 或是其他元件.
ScrollView A vertically scrolling column of elements.
Spinner Displays a single item at a time from a bound list, inside a one-row textbox. Rather like a one-row listbox that can scroll either horizontally or vertically.
SurfaceView Provides direct access to a dedicated drawing surface. It can hold child views layered on top of the surface, but is intended for applications that need to draw pixels, rather than using widgets.
TabHost Provides a tab selection list that monitors clicks and enables the application to change the screen whenever a tab is clicked.
TableLayout A tabular layout with an arbitrary number of rows and columns, each cell holding the widget of your choice. The rows resize to fit the largest column. The cell borders are not visible.
ViewFlipper A list that displays one item at a time, inside a one-row textbox. It can be set to swap items at timed intervals, like a slide show.
ViewSwitcher Same as ViewFlipper.


轉自 http://school.brad.tw/mod/resource/view.php?id=386

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 uetoaya 的頭像
    uetoaya

    uetoaya的部落格

    uetoaya 發表在 痞客邦 留言(0) 人氣()