---
title: "Launcher- workspace 的layout"
author: "gnibrE"
date: "2010-01-26T17:42:09Z"
tags: []
categories: ["移动开发"]
slug: "launcher-workspace-layout"
draft: false
lastmod: "2010-01-26T17:42:09Z"
id: 580355
url: "https://gnibre.iteye.com/blog/580355"
---

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
上来就是这个了。