ITeye博客

Launcher- workspace 的layout

gnibrE · 2010-01-26 17:42 · 移动开发 · Markdown

Launcher- workspace 的每个屏幕的layout是什么呢?

是CellLayout.

为什么是CellLayout,在哪里表明了的呢?

在launcher.xml:

<com.android.launcher.Workspace android:id="@+id/workspace" android:layout_width="fill_parent" android:layout_height="fill_parent" launcher:defaultScreen="1">

    <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
    <include android:id="@+id/cell2" layout="@layout/workspace_screen" />

</com.android.launcher.Workspace>

layout/workspace_screen里: <com.android.launcher.CellLayout 上来就是这个了。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。