Adding a scrollable folder content implementation

> Size is restricted to 3x3 for now
> Drag-drop across page s not implemented yet
> A-Z sorting is not implemented yet

Change-Id: I84328caa6ad910d1edeeac6f3a7fb61b7292ea7e
This commit is contained in:
Sunny Goyal
2015-03-05 11:33:33 -08:00
parent d5bf4ab5f7
commit 290800b5b7
9 changed files with 742 additions and 37 deletions
@@ -1,3 +1,19 @@
/**
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.launcher3;
import android.content.Context;
@@ -138,6 +154,11 @@ public class FolderCellLayout extends CellLayout implements Folder.FolderContent
addViewToCellLayout(view, -1, mFolder.mLauncher.getViewIdForItem(item), lp, true);
}
@Override
public void removeItem(View v) {
removeView(v);
}
/**
* Updates the item cellX and cellY position
*/