From 69e2fb69c30a548e2c29675c6f045856c36820e9 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Fri, 23 Apr 2010 17:51:26 -0700 Subject: [PATCH] New xlarge screen size. Not complete, only for experimentation at this point. This includes a reworking of how screen size configurations are matched, so that if you are on a larger screen we can select configurations for smaller screens if there aren't any exactly matching the current screen. The screen size at which we switch to xlarge has been arbitrarily chosen; the compatibility behavior has not yet been defined. Change-Id: I1a33b3818eeb51a68fb72397568c39ab040a07f5 --- AaptAssets.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AaptAssets.cpp b/AaptAssets.cpp index fc655a7..4d2d046 100644 --- a/AaptAssets.cpp +++ b/AaptAssets.cpp @@ -766,6 +766,11 @@ bool AaptGroupEntry::getScreenLayoutSizeName(const char* name, (out->screenLayout&~ResTable_config::MASK_SCREENSIZE) | ResTable_config::SCREENSIZE_LARGE; return true; + } else if (strcmp(name, "xlarge") == 0) { + if (out) out->screenLayout = + (out->screenLayout&~ResTable_config::MASK_SCREENSIZE) + | ResTable_config::SCREENSIZE_XLARGE; + return true; } return false; -- 2.47.2