Simulating a split screen CellLayout using one CellLayout
Test: atest ReorderWidget Fix: 188081026 Change-Id: I8eda5f77c11dc2625ae1f028d07539c28018fb55
This commit is contained in:
1 parent
8baae80cdf
commit
09589326db
7 files changed
+347
-78
No files matched your search
@@ -107,6 +107,18 @@ public class ShortcutAndWidgetContainer extends ViewGroup implements FolderIcon.
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds view to Layout a new position and it does not trigger a layout request.
|
||||
* For more information check documentation for
|
||||
* {@code ViewGroup#addViewInLayout(View, int, LayoutParams, boolean)}
|
||||
*
|
||||
* @param child view to be added
|
||||
* @return true if the child was added, false otherwise
|
||||
*/
|
||||
public boolean addViewInLayout(View child, LayoutParams layoutParams) {
|
||||
return super.addViewInLayout(child, -1, layoutParams, true);
|
||||
}
|
||||
|
||||
public void setupLp(View child) {
|
||||
CellLayoutLayoutParams lp = (CellLayoutLayoutParams) child.getLayoutParams();
|
||||
if (child instanceof NavigableAppWidgetHostView) {
|
||||
|
||||
Reference in new issue
Block a user