Adding support for negative x and y in layout xml.

Fixing default configurations for some screen sizes.

> Negative values for x and y are parsed as distance from end
column and row respectively. e.g.  (-1, -2) => (3, 2) in a
4x4 grid

Bug: 26110981
Change-Id: I4ca30e225ed6e2a31610ab23235d2cd10e8d317c
This commit is contained in:
Sunny Goyal
2015-12-16 11:32:54 -08:00
parent ffa1237698
commit 96a0963c4a
8 changed files with 129 additions and 26 deletions

View File

@@ -48,9 +48,8 @@ public class DefaultLayoutParser extends AutoInstallsLayout {
}
public DefaultLayoutParser(Context context, AppWidgetHost appWidgetHost,
LayoutParserCallback callback, Resources sourceRes, int layoutId, String rootTag,
int hotseatAllAppsRank) {
super(context, appWidgetHost, callback, sourceRes, layoutId, rootTag, hotseatAllAppsRank);
LayoutParserCallback callback, Resources sourceRes, int layoutId, String rootTag) {
super(context, appWidgetHost, callback, sourceRes, layoutId, rootTag);
}
@Override