From 14f67edd3fd39137df072d66a6fb33a148786545 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Tue, 11 May 2010 14:02:43 -0700 Subject: Update Launcher2 to work with LLVM. Change-Id: I992b812ec58d182e5df7ddad3ab8e7d9e7b88551 --- res/raw/allapps.rs | 330 ++++++++++++++++++++++++++++++++------------------ res/raw/allapps_bc.bc | Bin 0 -> 11052 bytes 2 files changed, 212 insertions(+), 118 deletions(-) create mode 100644 res/raw/allapps_bc.bc (limited to 'res') diff --git a/res/raw/allapps.rs b/res/raw/allapps.rs index af5abd3..0e278d9 100644 --- a/res/raw/allapps.rs +++ b/res/raw/allapps.rs @@ -1,41 +1,115 @@ #pragma version(1) -#pragma stateVertex(PV) -#pragma stateFragment(PFTexNearest) -#pragma stateStore(PSIcons) + +#include "../../../../../frameworks/base/libs/rs/scriptc/rs_types.rsh" +#include "../../../../../frameworks/base/libs/rs/scriptc/rs_math.rsh" +#include "../../../../../frameworks/base/libs/rs/scriptc/rs_graphics.rsh" +//#pragma stateVertex(PV) +//#pragma stateFragment(PFTexNearest) +//#pragma stateStore(PSIcons) #define PI 3.14159f -int g_SpecialHWWar; +static int g_SpecialHWWar; + + +// Constants from Java +int COLUMNS_PER_PAGE_PORTRAIT; +int ROWS_PER_PAGE_PORTRAIT; +int COLUMNS_PER_PAGE_LANDSCAPE; +int ROWS_PER_PAGE_LANDSCAPE; + +float gNewPositionX; +int gNewTouchDown; +float gFlingVelocity; +int gIconCount; +int gSelectedIconIndex; +rs_allocation gSelectedIconTexture; +float gZoomTarget; +rs_allocation gHomeButton; +float gTargetPos; + +rs_program_fragment gPFTexNearest; +rs_program_fragment gPFTexMip; +rs_program_fragment gPFTexMipAlpha; +rs_program_vertex gPVCurve; +rs_program_store gPS; +rs_mesh gSMCell; + +rs_allocation *gIconIDs; +rs_allocation *gLabelIDs; + +typedef struct VpConsts_s { + float4 Position; + float4 ScaleOffset; + float2 BendPos; + float2 ImgSize; +} VpConsts_t; +VpConsts_t *vpConstants; + + +#pragma rs export_var(COLUMNS_PER_PAGE_PORTRAIT, ROWS_PER_PAGE_PORTRAIT, COLUMNS_PER_PAGE_LANDSCAPE, ROWS_PER_PAGE_LANDSCAPE, gNewPositionX, gNewTouchDown, gFlingVelocity, gIconCount, gSelectedIconIndex, gSelectedIconTexture, gZoomTarget, gHomeButton, gTargetPos, gPFTexNearest, gPFTexMip, gPFTexMipAlpha, gPVCurve, gPS, gSMCell, gIconIDs, gLabelIDs, vpConstants) +#pragma rs export_func(resetHWWar, move, moveTo, setZoom, fling) + + +void debugAll() +{ + debugPi(1000, COLUMNS_PER_PAGE_PORTRAIT); + debugPi(1001, ROWS_PER_PAGE_PORTRAIT); + debugPi(1002, COLUMNS_PER_PAGE_LANDSCAPE); + debugPi(1003, ROWS_PER_PAGE_LANDSCAPE); + + debugPf(1018, gNewPositionX); + debugPi(1019, gNewTouchDown); + debugPf(1020, gFlingVelocity); + debugPi(1021, gIconCount); + debugPi(1022, gSelectedIconIndex); + debugPi(1023, gSelectedIconTexture); + debugPf(1024, gZoomTarget); + debugPi(1025, gHomeButton); + debugPf(1026, gTargetPos); + + debugPi(1027, gPFTexNearest); + debugPi(1028, gPFTexMip); + debugPi(1029, gPFTexMipAlpha); + debugPi(1030, gPVCurve); + debugPi(1031, gSMCell); + + debugP(1032, gIconIDs); + debugP(1033, gLabelIDs); + debugP(1034, vpConstants); +} + // Attraction to center values from page edge to page center. -float g_AttractionTable[9]; -float g_FrictionTable[9]; -float g_PhysicsTableSize; - -float g_PosPage; -float g_PosVelocity; -float g_LastPositionX; -int g_LastTouchDown; -float g_DT; -int g_LastTime; -int g_PosMax; -float g_Zoom; -float g_Animation; -float g_OldPosPage; -float g_OldPosVelocity; -float g_OldZoom; -float g_MoveToTotalTime; -float g_MoveToTime; -float g_MoveToOldPos; - -int g_Cols; -int g_Rows; +static float g_AttractionTable[9]; +static float g_FrictionTable[9]; +static float g_PhysicsTableSize; + +static float g_PosPage; +static float g_PosVelocity; +static float g_LastPositionX; +static int g_LastTouchDown; +static float g_DT; +static int g_LastTime; +static int g_PosMax; +static float g_Zoom; +static float g_Animation; +static float g_OldPosPage; +static float g_OldPosVelocity; +static float g_OldZoom; +static float g_MoveToTotalTime; +static float g_MoveToTime; +static float g_MoveToOldPos; + +static int g_Cols; +static int g_Rows; // Drawing constants, should be parameters ====== #define VIEW_ANGLE 1.28700222f -int g_DrawLastFrame; -int lastFrame(int draw) { +static int g_DrawLastFrame; +static int lastFrame(int draw) { + //debugPi(99, 13); // We draw one extra frame to work around the last frame post bug. // We also need to track if we drew the last frame to deal with large DT // in the physics. @@ -44,11 +118,15 @@ int lastFrame(int draw) { return ret; // should return draw instead. } -void updateReadback() { - if ((g_OldPosPage != g_PosPage) || - (g_OldPosVelocity != g_PosVelocity) || - (g_OldZoom != g_Zoom)) { +static void updateReadback() { + //debugPi(99, 12); + //if ((g_OldPosPage != g_PosPage) || + //(g_OldPosVelocity != g_PosVelocity) || + //(g_OldZoom != g_Zoom)) { + //debugPf(40, g_PosPage); + //debugPf(41, g_PosVelocity); + //debugPf(42, g_Zoom); g_OldPosPage = g_PosPage; g_OldPosVelocity = g_PosVelocity; g_OldZoom = g_Zoom; @@ -58,10 +136,11 @@ void updateReadback() { i[1] = g_PosVelocity * (1 << 16); i[2] = g_OldZoom * (1 << 16); sendToClient(&i[0], 1, 12, 1); - } + //} } -void setColor(float r, float g, float b, float a) { +static void setColor(float r, float g, float b, float a) { + //debugPi(99, 11); if (g_SpecialHWWar) { color(0, 0, 0, 0.001f); } else { @@ -70,6 +149,7 @@ void setColor(float r, float g, float b, float a) { } void init() { + //debugPi(99, 10); g_AttractionTable[0] = 20.0f; g_AttractionTable[1] = 20.0f; g_AttractionTable[2] = 20.0f; @@ -103,26 +183,29 @@ void init() { } void resetHWWar() { + //debugPi(99, 9); g_SpecialHWWar = 1; } void move() { + //debugPi(99, 8); if (g_LastTouchDown) { - float dx = -(state->newPositionX - g_LastPositionX); + float dx = -(gNewPositionX - g_LastPositionX); g_PosVelocity = 0; g_PosPage += dx * 5.2f; float pmin = -0.49f; float pmax = g_PosMax + 0.49f; - g_PosPage = clampf(g_PosPage, pmin, pmax); + g_PosPage = clamp(g_PosPage, pmin, pmax); } - g_LastTouchDown = state->newTouchDown; - g_LastPositionX = state->newPositionX; + g_LastTouchDown = gNewTouchDown; + g_LastPositionX = gNewPositionX; g_MoveToTime = 0; //debugF("Move P", g_PosPage); } void moveTo() { + //debugPi(99, 7); g_MoveToTime = g_MoveToTotalTime; g_PosVelocity = 0; g_MoveToOldPos = g_PosPage; @@ -131,18 +214,20 @@ void moveTo() { } void setZoom() { - g_Zoom = state->zoomTarget; + //debugPi(99, 6); + g_Zoom = gZoomTarget; g_DrawLastFrame = 1; updateReadback(); } void fling() { + //debugPi(99, 5); g_LastTouchDown = 0; - g_PosVelocity = -state->flingVelocity * 4; - float av = fabsf(g_PosVelocity); + g_PosVelocity = -gFlingVelocity * 4; + float av = fabs(g_PosVelocity); float minVel = 3.5f; - minVel *= 1.f - (fabsf(fracf(g_PosPage + 0.5f) - 0.5f) * 0.45f); + minVel *= 1.f - (fabs(frac(g_PosPage + 0.5f) - 0.5f) * 0.45f); if (av < minVel && av > 0.2f) { if (g_PosVelocity > 0) { @@ -153,59 +238,51 @@ void fling() { } if (g_PosPage <= 0) { - g_PosVelocity = maxf(0, g_PosVelocity); + g_PosVelocity = max(0.f, g_PosVelocity); } if (g_PosPage > g_PosMax) { - g_PosVelocity = minf(0, g_PosVelocity); + g_PosVelocity = min(0.f, g_PosVelocity); } } -float -modf(float x, float y) -{ - return x-(y*floorf(x/y)); +// Interpolates values in the range 0..1 to a curve that eases in +// and out. +static float getInterpolation(float input) { + //debugPi(99, 4); + return (cos((input + 1) * PI) * 0.5f) + 0.5f; } -/* - * Interpolates values in the range 0..1 to a curve that eases in - * and out. - */ -float -getInterpolation(float input) { - return (cosf((input + 1) * PI) / 2.0f) + 0.5f; -} - - -void updatePos() { +static void updatePos() { + //debugPi(99, 3); if (g_LastTouchDown) { return; } - float tablePosNorm = fracf(g_PosPage + 0.5f); + float tablePosNorm = frac(g_PosPage + 0.5f); float tablePosF = tablePosNorm * g_PhysicsTableSize; int tablePosI = tablePosF; float tablePosFrac = tablePosF - tablePosI; - float accel = lerpf(g_AttractionTable[tablePosI], + float accel = mix(g_AttractionTable[tablePosI], g_AttractionTable[tablePosI + 1], tablePosFrac) * g_DT; - float friction = lerpf(g_FrictionTable[tablePosI], + float friction = mix(g_FrictionTable[tablePosI], g_FrictionTable[tablePosI + 1], tablePosFrac) * g_DT; if (g_MoveToTime) { // New position is old posiition + (total distance) * (interpolated time) - g_PosPage = g_MoveToOldPos + (state->targetPos - g_MoveToOldPos) * getInterpolation((g_MoveToTotalTime - g_MoveToTime) / g_MoveToTotalTime); + g_PosPage = g_MoveToOldPos + (gTargetPos - g_MoveToOldPos) * getInterpolation((g_MoveToTotalTime - g_MoveToTime) / g_MoveToTotalTime); g_MoveToTime -= g_DT; if (g_MoveToTime <= 0) { g_MoveToTime = 0; - g_PosPage = state->targetPos; + g_PosPage = gTargetPos; } return; } // If our velocity is low OR acceleration is opposing it, apply it. - if (fabsf(g_PosVelocity) < 4.0f || (g_PosVelocity * accel) < 0) { + if (fabs(g_PosVelocity) < 4.0f || (g_PosVelocity * accel) < 0) { g_PosVelocity += accel; } //debugF("g_PosPage", g_PosPage); @@ -216,18 +293,18 @@ void updatePos() { // Normal physics if (g_PosVelocity > 0) { g_PosVelocity -= friction; - g_PosVelocity = maxf(g_PosVelocity, 0); + g_PosVelocity = max(g_PosVelocity, 0.f); } else { g_PosVelocity += friction; - g_PosVelocity = minf(g_PosVelocity, 0); + g_PosVelocity = min(g_PosVelocity, 0.f); } - if ((friction > fabsf(g_PosVelocity)) && (friction > fabsf(accel))) { + if ((friction > fabs(g_PosVelocity)) && (friction > fabs(accel))) { // Special get back to center and overcome friction physics. float t = tablePosNorm - 0.5f; - if (fabsf(t) < (friction * g_DT)) { + if (fabs(t) < (friction * g_DT)) { // really close, just snap - g_PosPage = roundf(g_PosPage); + g_PosPage = round(g_PosPage); g_PosVelocity = 0; } else { if (t > 0) { @@ -240,46 +317,51 @@ void updatePos() { // Check for out of boundry conditions. if (g_PosPage < 0 && g_PosVelocity < 0) { - float damp = 1.0 + (g_PosPage * 4); - damp = clampf(damp, 0.f, 0.9f); + float damp = 1.0f + (g_PosPage * 4); + damp = clamp(damp, 0.f, 0.9f); g_PosVelocity *= damp; } if (g_PosPage > g_PosMax && g_PosVelocity > 0) { - float damp = 1.0 - ((g_PosPage - g_PosMax) * 4); - damp = clampf(damp, 0.f, 0.9f); + float damp = 1.0f - ((g_PosPage - g_PosMax) * 4); + damp = clamp(damp, 0.f, 0.9f); g_PosVelocity *= damp; } g_PosPage += g_PosVelocity * g_DT; - g_PosPage = clampf(g_PosPage, -0.49, g_PosMax + 0.49); -} + g_PosPage = clamp(g_PosPage, -0.49f, g_PosMax + 0.49f); + //debugPf(300, g_PosPage); +} -void +static void draw_home_button() { + //debugPi(99, 2); setColor(1.0f, 1.0f, 1.0f, 1.0f); - bindTexture(NAMED_PFTexNearest, 0, state->homeButtonId); + bindTexture(gPFTexNearest, 0, gHomeButton); float w = getWidth(); float h = getHeight(); + float tw = allocGetDimX(gHomeButton); + float th = allocGetDimY(gHomeButton); float x; float y; if (getWidth() > getHeight()) { - x = w - (params->homeButtonTextureWidth * (1 - g_Animation)) + 20; - y = (h - params->homeButtonTextureHeight) * 0.5f; + x = w - (tw * (1 - g_Animation)) + 20; + y = (h - th) * 0.5f; } else { - x = (w - params->homeButtonTextureWidth) / 2; - y = -g_Animation * params->homeButtonTextureHeight; + x = (w - tw) / 2; + y = -g_Animation * th; y -= 30; // move the house to the edge of the screen as it doesn't fill the texture. } - drawSpriteScreenspace(x, y, 0, params->homeButtonTextureWidth, params->homeButtonTextureHeight); + drawSpriteScreenspace(x, y, 0, tw, th); } -void drawFrontGrid(float rowOffset, float p) +static void drawFrontGrid(float rowOffset, float p) { + //debugPi(99, 1); float h = getHeight(); float w = getWidth(); @@ -289,6 +371,8 @@ void drawFrontGrid(float rowOffset, float p) float rowHeight = colWidth + 25.f; float yoff = 0.5f * h + 1.5f * rowHeight; + //debugPi(199, 1); + int row, col; int colCount = 4; if (w > h) { @@ -299,8 +383,7 @@ void drawFrontGrid(float rowOffset, float p) int iconNum = (intRowOffset - 5) * colCount; - - bindProgramVertex(NAMED_PVCurve); + bindProgramVertex(gPVCurve); vpConstants->Position.z = p; @@ -309,7 +392,7 @@ void drawFrontGrid(float rowOffset, float p) float y = yoff - ((-rowFrac + row) * rowHeight); for (col=0; col < colCount; col++) { - if (iconNum >= state->iconCount) { + if (iconNum >= gIconCount) { return; } @@ -317,28 +400,35 @@ void drawFrontGrid(float rowOffset, float p) float x = colWidth * col + (colWidth / 2); vpConstants->Position.x = x + 0.2f; - if (state->selectedIconIndex == iconNum && !p) { - bindProgramFragment(NAMED_PFTexNearest); - bindTexture(NAMED_PFTexNearest, 0, state->selectedIconTexture); - vpConstants->ImgSize.x = SELECTION_TEXTURE_WIDTH_PX; - vpConstants->ImgSize.y = SELECTION_TEXTURE_HEIGHT_PX; - vpConstants->Position.y = y - (SELECTION_TEXTURE_HEIGHT_PX - ICON_TEXTURE_HEIGHT_PX) * 0.5f; - drawSimpleMesh(NAMED_SMCell); + if (gSelectedIconIndex == iconNum && !p && gSelectedIconTexture) { + bindProgramFragment(gPFTexNearest); + bindTexture(gPFTexNearest, 0, gSelectedIconTexture); + vpConstants->ImgSize.x = allocGetDimX(gSelectedIconTexture); + vpConstants->ImgSize.y = allocGetDimY(gSelectedIconTexture); + vpConstants->Position.y = y - (allocGetDimY(gSelectedIconTexture) - allocGetDimY(gIconIDs[iconNum])) * 0.5f; + drawSimpleMesh(gSMCell); } - bindProgramFragment(NAMED_PFTexMip); - vpConstants->ImgSize.x = ICON_TEXTURE_WIDTH_PX; - vpConstants->ImgSize.y = ICON_TEXTURE_HEIGHT_PX; + bindProgramFragment(gPFTexMip); + vpConstants->ImgSize.x = allocGetDimX(gIconIDs[iconNum]); + vpConstants->ImgSize.y = allocGetDimY(gIconIDs[iconNum]); vpConstants->Position.y = y - 0.2f; - bindTexture(NAMED_PFTexMip, 0, loadI32(ALLOC_ICON_IDS, iconNum)); - drawSimpleMesh(NAMED_SMCell); + bindTexture(gPFTexMip, 0, gIconIDs[iconNum]); + drawSimpleMesh(gSMCell); + + //debugPf(202, vpConstants->ImgSize.x); + //debugPf(203, vpConstants->ImgSize.y); + //debugPf(204, vpConstants->Position.y); + //debugPi(205, gIconIDs[iconNum]); + //debugPi(206, gLabelIDs[iconNum]); - bindProgramFragment(NAMED_PFTexMipAlpha); - vpConstants->ImgSize.x = 120.f; - vpConstants->ImgSize.y = 64.f; + + bindProgramFragment(gPFTexMipAlpha); + vpConstants->ImgSize.x = allocGetDimX(gLabelIDs[iconNum]); + vpConstants->ImgSize.y = allocGetDimY(gLabelIDs[iconNum]); vpConstants->Position.y = y - 64.f - 0.2f; - bindTexture(NAMED_PFTexMipAlpha, 0, loadI32(ALLOC_LABEL_IDS, iconNum)); - drawSimpleMesh(NAMED_SMCell); + bindTexture(gPFTexMipAlpha, 0, gLabelIDs[iconNum]); + drawSimpleMesh(gSMCell); } iconNum++; } @@ -346,12 +436,14 @@ void drawFrontGrid(float rowOffset, float p) } -int -main(int launchID) +int root() { + //debugAll(); + bindProgramStore(gPS); + // Compute dt in seconds. int newTime = uptimeMillis(); - g_DT = (newTime - g_LastTime) / 1000.f; + g_DT = (newTime - g_LastTime) * 0.001f; g_LastTime = newTime; if (!g_DrawLastFrame) { @@ -360,24 +452,25 @@ main(int launchID) g_DT = 0.033f; } // physics may break if DT is large. - g_DT = minf(g_DT, 0.2f); + g_DT = min(g_DT, 0.2f); - if (g_Zoom != state->zoomTarget) { + if (g_Zoom != gZoomTarget) { float dz = g_DT * 1.7f; - if (state->zoomTarget < 0.5f) { + if (gZoomTarget < 0.5f) { dz = -dz; } - if (fabsf(g_Zoom - state->zoomTarget) < fabsf(dz)) { - g_Zoom = state->zoomTarget; + if (fabs(g_Zoom - gZoomTarget) < fabs(dz)) { + g_Zoom = gZoomTarget; } else { g_Zoom += dz; } updateReadback(); } - g_Animation = powf(1-g_Zoom, 3); + g_Animation = pow(1.f - g_Zoom, 3.f); + //debugPf(100, g_Zoom); // Set clear value to dim the background based on the zoom position. - if ((g_Zoom < 0.001f) && (state->zoomTarget < 0.001f) && !g_SpecialHWWar) { + if ((g_Zoom < 0.001f) && (gZoomTarget < 0.001f) && !g_SpecialHWWar) { pfClearColor(0.0f, 0.0f, 0.0f, 0.0f); // When we're zoomed out and not tracking motion events, reset the pos to 0. if (!g_LastTouchDown) { @@ -385,11 +478,11 @@ main(int launchID) } return lastFrame(0); } else { + //debugPf(101, g_Zoom); pfClearColor(0.0f, 0.0f, 0.0f, g_Zoom); } // icons & labels - int iconCount = state->iconCount; if (getWidth() > getHeight()) { g_Cols = 6; g_Rows = 3; @@ -397,7 +490,7 @@ main(int launchID) g_Cols = 4; g_Rows = 4; } - g_PosMax = ((iconCount + (g_Cols-1)) / g_Cols) - g_Rows; + g_PosMax = ((gIconCount + (g_Cols-1)) / g_Cols) - g_Rows; if (g_PosMax < 0) g_PosMax = 0; updatePos(); @@ -408,7 +501,7 @@ main(int launchID) // Draw the icons ======================================== drawFrontGrid(g_PosPage, g_Animation); - bindProgramFragment(NAMED_PFTexNearest); + bindProgramFragment(gPFTexNearest); draw_home_button(); // This is a WAR to do a rendering pass without drawing during init to @@ -422,6 +515,7 @@ main(int launchID) // Bug workaround where the last frame is not always displayed // So we keep rendering until the bug is fixed. - return lastFrame((g_PosVelocity != 0) || fracf(g_PosPage) || g_Zoom != state->zoomTarget || (g_MoveToTime != 0)); + return lastFrame((g_PosVelocity != 0) || frac(g_PosPage) || g_Zoom != gZoomTarget || (g_MoveToTime != 0)); } + diff --git a/res/raw/allapps_bc.bc b/res/raw/allapps_bc.bc new file mode 100644 index 0000000..85d6805 Binary files /dev/null and b/res/raw/allapps_bc.bc differ -- cgit v1.1 From ad1bdf02040924ed5044c4c41d4b71f6b6690db9 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Fri, 14 May 2010 17:54:50 -0700 Subject: Launcher2 cleanup. Will remove dead script functions once reflection is working. Change-Id: Ieffcf55047b5e241a8cffb1852619d04e1a00d53 --- res/raw/allapps.rs | 155 +++++++++----------------------------------------- res/raw/allapps_bc.bc | Bin 11052 -> 10200 bytes 2 files changed, 28 insertions(+), 127 deletions(-) (limited to 'res') diff --git a/res/raw/allapps.rs b/res/raw/allapps.rs index 0e278d9..9342943 100644 --- a/res/raw/allapps.rs +++ b/res/raw/allapps.rs @@ -3,15 +3,9 @@ #include "../../../../../frameworks/base/libs/rs/scriptc/rs_types.rsh" #include "../../../../../frameworks/base/libs/rs/scriptc/rs_math.rsh" #include "../../../../../frameworks/base/libs/rs/scriptc/rs_graphics.rsh" -//#pragma stateVertex(PV) -//#pragma stateFragment(PFTexNearest) -//#pragma stateStore(PSIcons) #define PI 3.14159f -static int g_SpecialHWWar; - - // Constants from Java int COLUMNS_PER_PAGE_PORTRAIT; int ROWS_PER_PAGE_PORTRAIT; @@ -53,53 +47,29 @@ VpConsts_t *vpConstants; void debugAll() { - debugPi(1000, COLUMNS_PER_PAGE_PORTRAIT); - debugPi(1001, ROWS_PER_PAGE_PORTRAIT); - debugPi(1002, COLUMNS_PER_PAGE_LANDSCAPE); - debugPi(1003, ROWS_PER_PAGE_LANDSCAPE); - - debugPf(1018, gNewPositionX); - debugPi(1019, gNewTouchDown); - debugPf(1020, gFlingVelocity); - debugPi(1021, gIconCount); - debugPi(1022, gSelectedIconIndex); - debugPi(1023, gSelectedIconTexture); - debugPf(1024, gZoomTarget); - debugPi(1025, gHomeButton); - debugPf(1026, gTargetPos); - - debugPi(1027, gPFTexNearest); - debugPi(1028, gPFTexMip); - debugPi(1029, gPFTexMipAlpha); - debugPi(1030, gPVCurve); - debugPi(1031, gSMCell); - - debugP(1032, gIconIDs); - debugP(1033, gLabelIDs); - debugP(1034, vpConstants); } // Attraction to center values from page edge to page center. -static float g_AttractionTable[9]; -static float g_FrictionTable[9]; -static float g_PhysicsTableSize; - -static float g_PosPage; -static float g_PosVelocity; -static float g_LastPositionX; -static int g_LastTouchDown; +static float g_AttractionTable[9] = {20.f, 20.f, 20.f, 10.f, -10.f, -20.f, -20.f, -20.f, -20.f}; +static float g_FrictionTable[9] = {10.f, 10.f, 11.f, 15.f, 15.f, 11.f, 10.f, 10.f, 10.f}; +static float g_PhysicsTableSize = 7; + +static float g_PosPage = 0.f; +static float g_PosVelocity = 0.f; +static float g_LastPositionX = 0.f; +static int g_LastTouchDown = 0; static float g_DT; static int g_LastTime; static int g_PosMax; -static float g_Zoom; -static float g_Animation; +static float g_Zoom = 0.f; +static float g_Animation = 1.f; static float g_OldPosPage; static float g_OldPosVelocity; static float g_OldZoom; -static float g_MoveToTotalTime; -static float g_MoveToTime; -static float g_MoveToOldPos; +static float g_MoveToTotalTime = 0.2f; +static float g_MoveToTime = 0.f; +static float g_MoveToOldPos = 0.f; static int g_Cols; static int g_Rows; @@ -109,24 +79,15 @@ static int g_Rows; static int g_DrawLastFrame; static int lastFrame(int draw) { - //debugPi(99, 13); - // We draw one extra frame to work around the last frame post bug. - // We also need to track if we drew the last frame to deal with large DT - // in the physics. - int ret = g_DrawLastFrame | draw; g_DrawLastFrame = draw; - return ret; // should return draw instead. + return draw; } static void updateReadback() { - //debugPi(99, 12); - //if ((g_OldPosPage != g_PosPage) || - //(g_OldPosVelocity != g_PosVelocity) || - //(g_OldZoom != g_Zoom)) { - - //debugPf(40, g_PosPage); - //debugPf(41, g_PosVelocity); - //debugPf(42, g_Zoom); + if ((g_OldPosPage != g_PosPage) || + (g_OldPosVelocity != g_PosVelocity) || + (g_OldZoom != g_Zoom)) { + g_OldPosPage = g_PosPage; g_OldPosVelocity = g_PosVelocity; g_OldZoom = g_Zoom; @@ -136,55 +97,17 @@ static void updateReadback() { i[1] = g_PosVelocity * (1 << 16); i[2] = g_OldZoom * (1 << 16); sendToClient(&i[0], 1, 12, 1); - //} + } } -static void setColor(float r, float g, float b, float a) { - //debugPi(99, 11); - if (g_SpecialHWWar) { - color(0, 0, 0, 0.001f); - } else { - color(r, g, b, a); - } +void setColor(float r, float g, float b, float a) { } void init() { //debugPi(99, 10); - g_AttractionTable[0] = 20.0f; - g_AttractionTable[1] = 20.0f; - g_AttractionTable[2] = 20.0f; - g_AttractionTable[3] = 10.0f; - g_AttractionTable[4] = -10.0f; - g_AttractionTable[5] = -20.0f; - g_AttractionTable[6] = -20.0f; - g_AttractionTable[7] = -20.0f; - g_AttractionTable[8] = -20.0f; // dup 7 to avoid a clamp later - g_FrictionTable[0] = 10.0f; - g_FrictionTable[1] = 10.0f; - g_FrictionTable[2] = 11.0f; - g_FrictionTable[3] = 15.0f; - g_FrictionTable[4] = 15.0f; - g_FrictionTable[5] = 11.0f; - g_FrictionTable[6] = 10.0f; - g_FrictionTable[7] = 10.0f; - g_FrictionTable[8] = 10.0f; // dup 7 to avoid a clamp later - g_PhysicsTableSize = 7; - - g_PosVelocity = 0; - g_PosPage = 0; - g_LastTouchDown = 0; - g_LastPositionX = 0; - g_Zoom = 0; - g_Animation = 1.f; - g_SpecialHWWar = 1; - g_MoveToTime = 0; - g_MoveToOldPos = 0; - g_MoveToTotalTime = 0.2f; // Duration of scrolling 1 line } void resetHWWar() { - //debugPi(99, 9); - g_SpecialHWWar = 1; } void move() { @@ -329,15 +252,13 @@ static void updatePos() { g_PosPage += g_PosVelocity * g_DT; g_PosPage = clamp(g_PosPage, -0.49f, g_PosMax + 0.49f); - - //debugPf(300, g_PosPage); } static void draw_home_button() { //debugPi(99, 2); - setColor(1.0f, 1.0f, 1.0f, 1.0f); + color(1.0f, 1.0f, 1.0f, 1.0f); bindTexture(gPFTexNearest, 0, gHomeButton); float w = getWidth(); @@ -371,8 +292,6 @@ static void drawFrontGrid(float rowOffset, float p) float rowHeight = colWidth + 25.f; float yoff = 0.5f * h + 1.5f * rowHeight; - //debugPi(199, 1); - int row, col; int colCount = 4; if (w > h) { @@ -387,7 +306,7 @@ static void drawFrontGrid(float rowOffset, float p) vpConstants->Position.z = p; - setColor(1.0f, 1.0f, 1.0f, 1.0f); + color(1.0f, 1.0f, 1.0f, 1.0f); for (row = -5; row < 15; row++) { float y = yoff - ((-rowFrac + row) * rowHeight); @@ -416,13 +335,6 @@ static void drawFrontGrid(float rowOffset, float p) bindTexture(gPFTexMip, 0, gIconIDs[iconNum]); drawSimpleMesh(gSMCell); - //debugPf(202, vpConstants->ImgSize.x); - //debugPf(203, vpConstants->ImgSize.y); - //debugPf(204, vpConstants->Position.y); - //debugPi(205, gIconIDs[iconNum]); - //debugPi(206, gLabelIDs[iconNum]); - - bindProgramFragment(gPFTexMipAlpha); vpConstants->ImgSize.x = allocGetDimX(gLabelIDs[iconNum]); vpConstants->ImgSize.y = allocGetDimY(gLabelIDs[iconNum]); @@ -470,7 +382,7 @@ int root() //debugPf(100, g_Zoom); // Set clear value to dim the background based on the zoom position. - if ((g_Zoom < 0.001f) && (gZoomTarget < 0.001f) && !g_SpecialHWWar) { + if ((g_Zoom < 0.001f) && (gZoomTarget < 0.001f)) { pfClearColor(0.0f, 0.0f, 0.0f, 0.0f); // When we're zoomed out and not tracking motion events, reset the pos to 0. if (!g_LastTouchDown) { @@ -484,12 +396,13 @@ int root() // icons & labels if (getWidth() > getHeight()) { - g_Cols = 6; - g_Rows = 3; + g_Cols = COLUMNS_PER_PAGE_LANDSCAPE; + g_Rows = ROWS_PER_PAGE_LANDSCAPE; } else { - g_Cols = 4; - g_Rows = 4; + g_Cols = COLUMNS_PER_PAGE_PORTRAIT; + g_Rows = ROWS_PER_PAGE_PORTRAIT; } + g_PosMax = ((gIconCount + (g_Cols-1)) / g_Cols) - g_Rows; if (g_PosMax < 0) g_PosMax = 0; @@ -503,18 +416,6 @@ int root() bindProgramFragment(gPFTexNearest); draw_home_button(); - - // This is a WAR to do a rendering pass without drawing during init to - // force the driver to preload and compile its shaders. - // Without this the first animation does not appear due to the time it - // takes to init the driver state. - if (g_SpecialHWWar) { - g_SpecialHWWar = 0; - return 1; - } - - // Bug workaround where the last frame is not always displayed - // So we keep rendering until the bug is fixed. return lastFrame((g_PosVelocity != 0) || frac(g_PosPage) || g_Zoom != gZoomTarget || (g_MoveToTime != 0)); } diff --git a/res/raw/allapps_bc.bc b/res/raw/allapps_bc.bc index 85d6805..d73db54 100644 Binary files a/res/raw/allapps_bc.bc and b/res/raw/allapps_bc.bc differ -- cgit v1.1 From 5c1417acfc36499f40d7ffcb1949bc980281d103 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Tue, 18 May 2010 17:06:04 -0700 Subject: Fix regression in master. The attempt to remove the last frame hack in all apps caused home to sometimes render black upon returning from an application. Change-Id: I4444d7a6e62548f5a996c12b7e11aa46876d44e4 --- res/raw/allapps.rs | 6 +++++- res/raw/allapps_bc.bc | Bin 10200 -> 10212 bytes 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'res') diff --git a/res/raw/allapps.rs b/res/raw/allapps.rs index 9342943..7eb670a 100644 --- a/res/raw/allapps.rs +++ b/res/raw/allapps.rs @@ -79,8 +79,12 @@ static int g_Rows; static int g_DrawLastFrame; static int lastFrame(int draw) { + // We draw one extra frame to work around the last frame post bug. + // We also need to track if we drew the last frame to deal with large DT + // in the physics. + int ret = g_DrawLastFrame | draw; g_DrawLastFrame = draw; - return draw; + return ret;//draw; } static void updateReadback() { diff --git a/res/raw/allapps_bc.bc b/res/raw/allapps_bc.bc index d73db54..4cb3ecc 100644 Binary files a/res/raw/allapps_bc.bc and b/res/raw/allapps_bc.bc differ -- cgit v1.1 From 13a75d5f1ecdd216f76cb1a165b6af45acb7eec3 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Wed, 19 May 2010 16:38:04 -0700 Subject: Update names and move clear to script. Change-Id: I17af3cd027248f52ce6516f81968c6b3d976a09d --- res/raw/allapps.rs | 109 +++++++++++++++++++++----------------------------- res/raw/allapps_bc.bc | Bin 10212 -> 10208 bytes 2 files changed, 45 insertions(+), 64 deletions(-) (limited to 'res') diff --git a/res/raw/allapps.rs b/res/raw/allapps.rs index 7eb670a..6fa28e2 100644 --- a/res/raw/allapps.rs +++ b/res/raw/allapps.rs @@ -60,7 +60,7 @@ static float g_PosVelocity = 0.f; static float g_LastPositionX = 0.f; static int g_LastTouchDown = 0; static float g_DT; -static int g_LastTime; +static int64_t g_LastTime; static int g_PosMax; static float g_Zoom = 0.f; static float g_Animation = 1.f; @@ -82,9 +82,8 @@ static int lastFrame(int draw) { // We draw one extra frame to work around the last frame post bug. // We also need to track if we drew the last frame to deal with large DT // in the physics. - int ret = g_DrawLastFrame | draw; g_DrawLastFrame = draw; - return ret;//draw; + return draw; } static void updateReadback() { @@ -100,22 +99,18 @@ static void updateReadback() { i[0] = g_PosPage * (1 << 16); i[1] = g_PosVelocity * (1 << 16); i[2] = g_OldZoom * (1 << 16); - sendToClient(&i[0], 1, 12, 1); + rsSendToClient(&i[0], 1, 12, 1); } } void setColor(float r, float g, float b, float a) { } - void init() { - //debugPi(99, 10); } - void resetHWWar() { } void move() { - //debugPi(99, 8); if (g_LastTouchDown) { float dx = -(gNewPositionX - g_LastPositionX); g_PosVelocity = 0; @@ -128,33 +123,27 @@ void move() { g_LastTouchDown = gNewTouchDown; g_LastPositionX = gNewPositionX; g_MoveToTime = 0; - //debugF("Move P", g_PosPage); } void moveTo() { - //debugPi(99, 7); g_MoveToTime = g_MoveToTotalTime; g_PosVelocity = 0; g_MoveToOldPos = g_PosPage; - - // debugF("======= moveTo", state->targetPos); } void setZoom() { - //debugPi(99, 6); g_Zoom = gZoomTarget; g_DrawLastFrame = 1; updateReadback(); } void fling() { - //debugPi(99, 5); g_LastTouchDown = 0; g_PosVelocity = -gFlingVelocity * 4; float av = fabs(g_PosVelocity); float minVel = 3.5f; - minVel *= 1.f - (fabs(frac(g_PosPage + 0.5f) - 0.5f) * 0.45f); + minVel *= 1.f - (fabs(rsFrac(g_PosPage + 0.5f) - 0.5f) * 0.45f); if (av < minVel && av > 0.2f) { if (g_PosVelocity > 0) { @@ -175,18 +164,16 @@ void fling() { // Interpolates values in the range 0..1 to a curve that eases in // and out. static float getInterpolation(float input) { - //debugPi(99, 4); return (cos((input + 1) * PI) * 0.5f) + 0.5f; } static void updatePos() { - //debugPi(99, 3); if (g_LastTouchDown) { return; } - float tablePosNorm = frac(g_PosPage + 0.5f); + float tablePosNorm = rsFrac(g_PosPage + 0.5f); float tablePosF = tablePosNorm * g_PhysicsTableSize; int tablePosI = tablePosF; float tablePosFrac = tablePosF - tablePosI; @@ -212,10 +199,10 @@ static void updatePos() { if (fabs(g_PosVelocity) < 4.0f || (g_PosVelocity * accel) < 0) { g_PosVelocity += accel; } - //debugF("g_PosPage", g_PosPage); - //debugF(" g_PosVelocity", g_PosVelocity); - //debugF(" friction", friction); - //debugF(" accel", accel); + //RS_DEBUG(g_PosPage); + //RS_DEBUG(g_PosVelocity); + //RS_DEBUG(friction); + //RS_DEBUG(accel); // Normal physics if (g_PosVelocity > 0) { @@ -261,18 +248,17 @@ static void updatePos() { static void draw_home_button() { - //debugPi(99, 2); color(1.0f, 1.0f, 1.0f, 1.0f); - bindTexture(gPFTexNearest, 0, gHomeButton); + rsgBindTexture(gPFTexNearest, 0, gHomeButton); - float w = getWidth(); - float h = getHeight(); - float tw = allocGetDimX(gHomeButton); - float th = allocGetDimY(gHomeButton); + float w = rsgGetWidth(); + float h = rsgGetHeight(); + float tw = rsAllocationGetDimX(gHomeButton); + float th = rsAllocationGetDimY(gHomeButton); float x; float y; - if (getWidth() > getHeight()) { + if (w > h) { x = w - (tw * (1 - g_Animation)) + 20; y = (h - th) * 0.5f; } else { @@ -281,18 +267,17 @@ draw_home_button() y -= 30; // move the house to the edge of the screen as it doesn't fill the texture. } - drawSpriteScreenspace(x, y, 0, tw, th); + rsgDrawSpriteScreenspace(x, y, 0, tw, th); } static void drawFrontGrid(float rowOffset, float p) { - //debugPi(99, 1); - float h = getHeight(); - float w = getWidth(); + float h = rsgGetHeight(); + float w = rsgGetWidth(); int intRowOffset = rowOffset; float rowFrac = rowOffset - intRowOffset; - float colWidth = 120.f;//getWidth() / 4; + float colWidth = 120.f;//w / 4; float rowHeight = colWidth + 25.f; float yoff = 0.5f * h + 1.5f * rowHeight; @@ -306,7 +291,7 @@ static void drawFrontGrid(float rowOffset, float p) int iconNum = (intRowOffset - 5) * colCount; - bindProgramVertex(gPVCurve); + rsgBindProgramVertex(gPVCurve); vpConstants->Position.z = p; @@ -324,27 +309,28 @@ static void drawFrontGrid(float rowOffset, float p) vpConstants->Position.x = x + 0.2f; if (gSelectedIconIndex == iconNum && !p && gSelectedIconTexture) { - bindProgramFragment(gPFTexNearest); - bindTexture(gPFTexNearest, 0, gSelectedIconTexture); - vpConstants->ImgSize.x = allocGetDimX(gSelectedIconTexture); - vpConstants->ImgSize.y = allocGetDimY(gSelectedIconTexture); - vpConstants->Position.y = y - (allocGetDimY(gSelectedIconTexture) - allocGetDimY(gIconIDs[iconNum])) * 0.5f; - drawSimpleMesh(gSMCell); + rsgBindProgramFragment(gPFTexNearest); + rsgBindTexture(gPFTexNearest, 0, gSelectedIconTexture); + vpConstants->ImgSize.x = rsAllocationGetDimX(gSelectedIconTexture); + vpConstants->ImgSize.y = rsAllocationGetDimY(gSelectedIconTexture); + vpConstants->Position.y = y - (rsAllocationGetDimY(gSelectedIconTexture) + - rsAllocationGetDimY(gIconIDs[iconNum])) * 0.5f; + rsgDrawSimpleMesh(gSMCell); } - bindProgramFragment(gPFTexMip); - vpConstants->ImgSize.x = allocGetDimX(gIconIDs[iconNum]); - vpConstants->ImgSize.y = allocGetDimY(gIconIDs[iconNum]); + rsgBindProgramFragment(gPFTexMip); + vpConstants->ImgSize.x = rsAllocationGetDimX(gIconIDs[iconNum]); + vpConstants->ImgSize.y = rsAllocationGetDimY(gIconIDs[iconNum]); vpConstants->Position.y = y - 0.2f; - bindTexture(gPFTexMip, 0, gIconIDs[iconNum]); - drawSimpleMesh(gSMCell); + rsgBindTexture(gPFTexMip, 0, gIconIDs[iconNum]); + rsgDrawSimpleMesh(gSMCell); - bindProgramFragment(gPFTexMipAlpha); - vpConstants->ImgSize.x = allocGetDimX(gLabelIDs[iconNum]); - vpConstants->ImgSize.y = allocGetDimY(gLabelIDs[iconNum]); + rsgBindProgramFragment(gPFTexMipAlpha); + vpConstants->ImgSize.x = rsAllocationGetDimX(gLabelIDs[iconNum]); + vpConstants->ImgSize.y = rsAllocationGetDimY(gLabelIDs[iconNum]); vpConstants->Position.y = y - 64.f - 0.2f; - bindTexture(gPFTexMipAlpha, 0, gLabelIDs[iconNum]); - drawSimpleMesh(gSMCell); + rsgBindTexture(gPFTexMipAlpha, 0, gLabelIDs[iconNum]); + rsgDrawSimpleMesh(gSMCell); } iconNum++; } @@ -354,11 +340,8 @@ static void drawFrontGrid(float rowOffset, float p) int root() { - //debugAll(); - bindProgramStore(gPS); - // Compute dt in seconds. - int newTime = uptimeMillis(); + int64_t newTime = rsUptimeMillis(); g_DT = (newTime - g_LastTime) * 0.001f; g_LastTime = newTime; @@ -384,22 +367,22 @@ int root() } g_Animation = pow(1.f - g_Zoom, 3.f); - //debugPf(100, g_Zoom); // Set clear value to dim the background based on the zoom position. if ((g_Zoom < 0.001f) && (gZoomTarget < 0.001f)) { - pfClearColor(0.0f, 0.0f, 0.0f, 0.0f); + rsgClearColor(0.0f, 0.0f, 0.0f, 0.0f); // When we're zoomed out and not tracking motion events, reset the pos to 0. if (!g_LastTouchDown) { g_PosPage = 0; } return lastFrame(0); } else { - //debugPf(101, g_Zoom); - pfClearColor(0.0f, 0.0f, 0.0f, g_Zoom); + rsgClearColor(0.0f, 0.0f, 0.0f, g_Zoom); } + rsgBindProgramStore(gPS); + // icons & labels - if (getWidth() > getHeight()) { + if (rsgGetWidth() > rsgGetHeight()) { g_Cols = COLUMNS_PER_PAGE_LANDSCAPE; g_Rows = ROWS_PER_PAGE_LANDSCAPE; } else { @@ -413,14 +396,12 @@ int root() updatePos(); updateReadback(); - //debugF(" draw g_PosPage", g_PosPage); - // Draw the icons ======================================== drawFrontGrid(g_PosPage, g_Animation); - bindProgramFragment(gPFTexNearest); + rsgBindProgramFragment(gPFTexNearest); draw_home_button(); - return lastFrame((g_PosVelocity != 0) || frac(g_PosPage) || g_Zoom != gZoomTarget || (g_MoveToTime != 0)); + return lastFrame((g_PosVelocity != 0) || rsFrac(g_PosPage) || g_Zoom != gZoomTarget || (g_MoveToTime != 0)); } diff --git a/res/raw/allapps_bc.bc b/res/raw/allapps_bc.bc index 4cb3ecc..36e234c 100644 Binary files a/res/raw/allapps_bc.bc and b/res/raw/allapps_bc.bc differ -- cgit v1.1 From c8149656bca97af8da015d89933d808b0888a5de Mon Sep 17 00:00:00 2001 From: Shih-wei Liao Date: Mon, 14 Jun 2010 11:46:11 -0700 Subject: Add pragma on java package name, for reflection purpose. Change-Id: I30a3cc2177b320a76d093cd018216ae936e81150 --- res/raw/allapps.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'res') diff --git a/res/raw/allapps.rs b/res/raw/allapps.rs index 6fa28e2..e1a762d 100644 --- a/res/raw/allapps.rs +++ b/res/raw/allapps.rs @@ -1,5 +1,7 @@ #pragma version(1) +#pragma rs java_package_name(com.android.launcher2) + #include "../../../../../frameworks/base/libs/rs/scriptc/rs_types.rsh" #include "../../../../../frameworks/base/libs/rs/scriptc/rs_math.rsh" #include "../../../../../frameworks/base/libs/rs/scriptc/rs_graphics.rsh" -- cgit v1.1 From 1aa4ff083ce792d886faeae3cb4abfc9f36e97ce Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Tue, 15 Jun 2010 14:59:57 -0700 Subject: Update AppApps to use reflected files. Previous files were hand written placeholders. This also fixed the physics bug where movement was right. Change-Id: I98838084d60f0eaf22f7fbd148a80b2f73f9a14c --- res/raw/allapps.rs | 6 +++--- res/raw/allapps_bc.bc | Bin 10208 -> 11644 bytes 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'res') diff --git a/res/raw/allapps.rs b/res/raw/allapps.rs index e1a762d..d947613 100644 --- a/res/raw/allapps.rs +++ b/res/raw/allapps.rs @@ -18,7 +18,7 @@ float gNewPositionX; int gNewTouchDown; float gFlingVelocity; int gIconCount; -int gSelectedIconIndex; +int gSelectedIconIndex = -1; rs_allocation gSelectedIconTexture; float gZoomTarget; rs_allocation gHomeButton; @@ -34,7 +34,7 @@ rs_mesh gSMCell; rs_allocation *gIconIDs; rs_allocation *gLabelIDs; -typedef struct VpConsts_s { +typedef struct VpConsts { float4 Position; float4 ScaleOffset; float2 BendPos; @@ -310,7 +310,7 @@ static void drawFrontGrid(float rowOffset, float p) float x = colWidth * col + (colWidth / 2); vpConstants->Position.x = x + 0.2f; - if (gSelectedIconIndex == iconNum && !p && gSelectedIconTexture) { + if (gSelectedIconIndex == iconNum && !p && gSelectedIconTexture.p) { rsgBindProgramFragment(gPFTexNearest); rsgBindTexture(gPFTexNearest, 0, gSelectedIconTexture); vpConstants->ImgSize.x = rsAllocationGetDimX(gSelectedIconTexture); diff --git a/res/raw/allapps_bc.bc b/res/raw/allapps_bc.bc index 36e234c..3835d7d 100644 Binary files a/res/raw/allapps_bc.bc and b/res/raw/allapps_bc.bc differ -- cgit v1.1 From 60a55bbf54998afe9a0b766781c1dfada0d53518 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Fri, 18 Jun 2010 15:11:19 -0700 Subject: Code cleanup possible with new reflected classes. Change-Id: If9e79383722c0df997526717c52ded4921b6663e --- res/raw/allapps.rs | 71 +++++++++++++++++++------------------------------- res/raw/allapps_bc.bc | Bin 11644 -> 11612 bytes 2 files changed, 27 insertions(+), 44 deletions(-) (limited to 'res') diff --git a/res/raw/allapps.rs b/res/raw/allapps.rs index d947613..1465308 100644 --- a/res/raw/allapps.rs +++ b/res/raw/allapps.rs @@ -14,15 +14,10 @@ int ROWS_PER_PAGE_PORTRAIT; int COLUMNS_PER_PAGE_LANDSCAPE; int ROWS_PER_PAGE_LANDSCAPE; -float gNewPositionX; -int gNewTouchDown; -float gFlingVelocity; int gIconCount; int gSelectedIconIndex = -1; rs_allocation gSelectedIconTexture; -float gZoomTarget; rs_allocation gHomeButton; -float gTargetPos; rs_program_fragment gPFTexNearest; rs_program_fragment gPFTexMip; @@ -43,13 +38,8 @@ typedef struct VpConsts { VpConsts_t *vpConstants; -#pragma rs export_var(COLUMNS_PER_PAGE_PORTRAIT, ROWS_PER_PAGE_PORTRAIT, COLUMNS_PER_PAGE_LANDSCAPE, ROWS_PER_PAGE_LANDSCAPE, gNewPositionX, gNewTouchDown, gFlingVelocity, gIconCount, gSelectedIconIndex, gSelectedIconTexture, gZoomTarget, gHomeButton, gTargetPos, gPFTexNearest, gPFTexMip, gPFTexMipAlpha, gPVCurve, gPS, gSMCell, gIconIDs, gLabelIDs, vpConstants) -#pragma rs export_func(resetHWWar, move, moveTo, setZoom, fling) - - -void debugAll() -{ -} +#pragma rs export_var(COLUMNS_PER_PAGE_PORTRAIT, ROWS_PER_PAGE_PORTRAIT, COLUMNS_PER_PAGE_LANDSCAPE, ROWS_PER_PAGE_LANDSCAPE, gIconCount, gSelectedIconIndex, gSelectedIconTexture, gHomeButton, gTargetPos, gPFTexNearest, gPFTexMip, gPFTexMipAlpha, gPVCurve, gPS, gSMCell, gIconIDs, gLabelIDs, vpConstants) +#pragma rs export_func(move, moveTo, setZoom, fling) // Attraction to center values from page edge to page center. @@ -57,10 +47,12 @@ static float g_AttractionTable[9] = {20.f, 20.f, 20.f, 10.f, -10.f, -20.f, -20.f static float g_FrictionTable[9] = {10.f, 10.f, 11.f, 15.f, 15.f, 11.f, 10.f, 10.f, 10.f}; static float g_PhysicsTableSize = 7; +static float gZoomTarget; +static float gTargetPos; static float g_PosPage = 0.f; static float g_PosVelocity = 0.f; static float g_LastPositionX = 0.f; -static int g_LastTouchDown = 0; +static bool g_LastTouchDown = false; static float g_DT; static int64_t g_LastTime; static int g_PosMax; @@ -79,14 +71,6 @@ static int g_Rows; // Drawing constants, should be parameters ====== #define VIEW_ANGLE 1.28700222f -static int g_DrawLastFrame; -static int lastFrame(int draw) { - // We draw one extra frame to work around the last frame post bug. - // We also need to track if we drew the last frame to deal with large DT - // in the physics. - g_DrawLastFrame = draw; - return draw; -} static void updateReadback() { if ((g_OldPosPage != g_PosPage) || @@ -105,16 +89,12 @@ static void updateReadback() { } } -void setColor(float r, float g, float b, float a) { -} void init() { } -void resetHWWar() { -} -void move() { +void move(float newPos) { if (g_LastTouchDown) { - float dx = -(gNewPositionX - g_LastPositionX); + float dx = -(newPos - g_LastPositionX); g_PosVelocity = 0; g_PosPage += dx * 5.2f; @@ -122,26 +102,34 @@ void move() { float pmax = g_PosMax + 0.49f; g_PosPage = clamp(g_PosPage, pmin, pmax); } - g_LastTouchDown = gNewTouchDown; - g_LastPositionX = gNewPositionX; + g_LastTouchDown = true; + g_LastPositionX = newPos; g_MoveToTime = 0; } -void moveTo() { +void moveTo(float targetPos) { + gTargetPos = targetPos; g_MoveToTime = g_MoveToTotalTime; g_PosVelocity = 0; g_MoveToOldPos = g_PosPage; } -void setZoom() { - g_Zoom = gZoomTarget; - g_DrawLastFrame = 1; +void setZoom(float z, /*bool*/ int animate) { + gZoomTarget = z; + if (gZoomTarget < 0.001f) { + gZoomTarget = 0; + } + if (!animate) { + g_Zoom = gZoomTarget; + } updateReadback(); } -void fling() { - g_LastTouchDown = 0; - g_PosVelocity = -gFlingVelocity * 4; +void fling(float newPos, float vel) { + move(newPos); + + g_LastTouchDown = false; + g_PosVelocity = -vel * 4; float av = fabs(g_PosVelocity); float minVel = 3.5f; @@ -347,13 +335,8 @@ int root() g_DT = (newTime - g_LastTime) * 0.001f; g_LastTime = newTime; - if (!g_DrawLastFrame) { - // If we stopped rendering we cannot use DT. - // assume 30fps in this case. - g_DT = 0.033f; - } // physics may break if DT is large. - g_DT = min(g_DT, 0.2f); + g_DT = min(g_DT, 0.1f); if (g_Zoom != gZoomTarget) { float dz = g_DT * 1.7f; @@ -376,7 +359,7 @@ int root() if (!g_LastTouchDown) { g_PosPage = 0; } - return lastFrame(0); + return 0; } else { rsgClearColor(0.0f, 0.0f, 0.0f, g_Zoom); } @@ -403,7 +386,7 @@ int root() rsgBindProgramFragment(gPFTexNearest); draw_home_button(); - return lastFrame((g_PosVelocity != 0) || rsFrac(g_PosPage) || g_Zoom != gZoomTarget || (g_MoveToTime != 0)); + return (g_PosVelocity != 0) || rsFrac(g_PosPage) || g_Zoom != gZoomTarget || (g_MoveToTime != 0); } diff --git a/res/raw/allapps_bc.bc b/res/raw/allapps_bc.bc index 3835d7d..59b0afb 100644 Binary files a/res/raw/allapps_bc.bc and b/res/raw/allapps_bc.bc differ -- cgit v1.1 From af44209bfa60da3c7ab49b7f508f9effd316ee41 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Thu, 10 Jun 2010 17:01:57 -0700 Subject: First cut at new home screen customization for xlarge displays. - Add new layout for xlarge, removing hotseat, next/prev page, etc. - Add a "+" button in top right which switches to customization mode - Add a widget chooser which slides up from bottom of screen - Initial support for dragging widgets onto home screen Change-Id: I14e2e013ccceff4066fcb7c4492b4f6bef6595e7 --- res/anim/widget_chooser_slide_up.xml | 23 +++++++++ res/drawable/add_button.png | Bin 0 -> 2372 bytes res/layout-xlarge/launcher.xml | 92 +++++++++++++++++++++++++++++++++++ res/layout/widget_item.xml | 22 +++++++++ 4 files changed, 137 insertions(+) create mode 100644 res/anim/widget_chooser_slide_up.xml create mode 100644 res/drawable/add_button.png create mode 100644 res/layout-xlarge/launcher.xml create mode 100644 res/layout/widget_item.xml (limited to 'res') diff --git a/res/anim/widget_chooser_slide_up.xml b/res/anim/widget_chooser_slide_up.xml new file mode 100644 index 0000000..b43ec36 --- /dev/null +++ b/res/anim/widget_chooser_slide_up.xml @@ -0,0 +1,23 @@ + + + diff --git a/res/drawable/add_button.png b/res/drawable/add_button.png new file mode 100644 index 0000000..0edcfa3 Binary files /dev/null and b/res/drawable/add_button.png differ diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml new file mode 100644 index 0000000..092e018 --- /dev/null +++ b/res/layout-xlarge/launcher.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/widget_item.xml b/res/layout/widget_item.xml new file mode 100644 index 0000000..c79bd31 --- /dev/null +++ b/res/layout/widget_item.xml @@ -0,0 +1,22 @@ + + + + -- cgit v1.1 From aafa03cbb925c74be1c13f8bb99d928be429e62f Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Fri, 11 Jun 2010 17:34:16 -0700 Subject: Allow for NxM layout and in-place rotation of items on homescreen. Currently, rotation is disabled as designs are still in flux, but the NxM grid is enabled (8x4). Change-Id: I0026f88c674719e3d67de6d6d481d2d4cd606362 --- res/layout-xlarge/launcher.xml | 4 ++-- res/layout-xlarge/workspace_screen.xml | 32 ++++++++++++++++++++++++++++++++ res/values-xlarge/dimens.xml | 20 ++++++++++++++++++++ res/values-xlarge/styles.xml | 30 ++++++++++++++++++++++++++++++ res/values/attrs.xml | 4 ++++ 5 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 res/layout-xlarge/workspace_screen.xml create mode 100644 res/values-xlarge/dimens.xml create mode 100644 res/values-xlarge/styles.xml (limited to 'res') diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 092e018..17a5b84 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -29,14 +29,14 @@ android:id="@+id/workspace" android:layout_width="match_parent" android:layout_height="match_parent" - launcher:defaultScreen="2"> + launcher:canonicalDeviceWidth="8" + launcher:canonicalDeviceHeight="4"> - + + + diff --git a/res/values-xlarge/dimens.xml b/res/values-xlarge/dimens.xml new file mode 100644 index 0000000..8279492 --- /dev/null +++ b/res/values-xlarge/dimens.xml @@ -0,0 +1,20 @@ + + + + + 76dip + 76dip + diff --git a/res/values-xlarge/styles.xml b/res/values-xlarge/styles.xml new file mode 100644 index 0000000..e4c047f --- /dev/null +++ b/res/values-xlarge/styles.xml @@ -0,0 +1,30 @@ + + + + + + + + diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 7839120..c977f97 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -32,6 +32,10 @@ + + + + + diff --git a/res/anim/home_customization_drawer_slide_up.xml b/res/anim/home_customization_drawer_slide_up.xml new file mode 100644 index 0000000..3df2320 --- /dev/null +++ b/res/anim/home_customization_drawer_slide_up.xml @@ -0,0 +1,22 @@ + + + diff --git a/res/anim/widget_chooser_slide_up.xml b/res/anim/widget_chooser_slide_up.xml deleted file mode 100644 index b43ec36..0000000 --- a/res/anim/widget_chooser_slide_up.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 17a5b84..ce864c2 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -39,54 +39,83 @@ - - + + + android:layout_centerVertical="true" + android:scaleType="center" + android:src="@drawable/add_button" - - + android:onClick="onClickAddButton" + android:focusable="true" + android:clickable="true" /> + - + android:visibility="gone"> + + + + + + + + + + diff --git a/res/layout/home_customization_drawer_item.xml b/res/layout/home_customization_drawer_item.xml new file mode 100644 index 0000000..e3d20a1 --- /dev/null +++ b/res/layout/home_customization_drawer_item.xml @@ -0,0 +1,24 @@ + + + + \ No newline at end of file diff --git a/res/layout/widget_item.xml b/res/layout/widget_item.xml deleted file mode 100644 index c79bd31..0000000 --- a/res/layout/widget_item.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - diff --git a/res/values/strings.xml b/res/values/strings.xml index 86c1b3c..f61871d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -43,6 +43,11 @@ Application is not installed on your phone. Configure... + Widgets + Folders + Shortcuts + Wallpapers + This will be the wallpapers tab -- cgit v1.1 From 4ab2f860e704b48a721b30095ebbdd353e3c00c4 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Mon, 12 Jul 2010 16:36:06 -0700 Subject: Fixed height of all apps icon in some configurations (running N1 with DPI set to 120) --- res/layout-xlarge/launcher.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'res') diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index ce864c2..72cd796 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -49,6 +49,7 @@ Date: Mon, 12 Jul 2010 14:25:18 -0700 Subject: When dragging items on the home screen, visualize where they will drop. Draw a rectangle around the area where an item will land if it is dropped. If the area is vacant, the rectangle is green; otherwise, it is red. Change-Id: I859b52514566fa55f8c7a04493b8088d12baa476 --- res/drawable/rounded_rect_green.9.png | Bin 0 -> 361 bytes res/drawable/rounded_rect_red.9.png | Bin 0 -> 342 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 res/drawable/rounded_rect_green.9.png create mode 100644 res/drawable/rounded_rect_red.9.png (limited to 'res') diff --git a/res/drawable/rounded_rect_green.9.png b/res/drawable/rounded_rect_green.9.png new file mode 100644 index 0000000..5787c3d Binary files /dev/null and b/res/drawable/rounded_rect_green.9.png differ diff --git a/res/drawable/rounded_rect_red.9.png b/res/drawable/rounded_rect_red.9.png new file mode 100644 index 0000000..7a5fdee Binary files /dev/null and b/res/drawable/rounded_rect_red.9.png differ -- cgit v1.1 From 8f86ddcb90063a56c25c9c782316574bc4e5dd93 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Fri, 16 Jul 2010 13:55:32 -0700 Subject: Generate a default preview for widgets that don't have a previewImage. Change-Id: I3a3c24543c925a50ab34fd3cbf7947544a5ac5c0 --- res/drawable/default_widget_preview.9.png | Bin 0 -> 541 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 res/drawable/default_widget_preview.9.png (limited to 'res') diff --git a/res/drawable/default_widget_preview.9.png b/res/drawable/default_widget_preview.9.png new file mode 100644 index 0000000..e966b1b Binary files /dev/null and b/res/drawable/default_widget_preview.9.png differ -- cgit v1.1 From afb81d4ac5a09f1de753c1be72457b16cab6e02d Mon Sep 17 00:00:00 2001 From: Shih-wei Liao Date: Mon, 19 Jul 2010 16:20:03 -0700 Subject: Ported Launcher2 to use the new Build system. Change-Id: Ie24bb6520f9f6dfc24dde2b7810ec322bc7b3a1a --- res/raw/allapps.rs | 392 -------------------------------------------------- res/raw/allapps_bc.bc | Bin 11608 -> 0 bytes 2 files changed, 392 deletions(-) delete mode 100644 res/raw/allapps.rs delete mode 100644 res/raw/allapps_bc.bc (limited to 'res') diff --git a/res/raw/allapps.rs b/res/raw/allapps.rs deleted file mode 100644 index aaf7c10..0000000 --- a/res/raw/allapps.rs +++ /dev/null @@ -1,392 +0,0 @@ -#pragma version(1) - -#pragma rs java_package_name(com.android.launcher2) - -#include "../../../../../frameworks/base/libs/rs/scriptc/rs_types.rsh" -#include "../../../../../frameworks/base/libs/rs/scriptc/rs_math.rsh" -#include "../../../../../frameworks/base/libs/rs/scriptc/rs_graphics.rsh" - -#define PI 3.14159f - -// Constants from Java -int COLUMNS_PER_PAGE_PORTRAIT; -int ROWS_PER_PAGE_PORTRAIT; -int COLUMNS_PER_PAGE_LANDSCAPE; -int ROWS_PER_PAGE_LANDSCAPE; - -int gIconCount; -int gSelectedIconIndex = -1; -rs_allocation gSelectedIconTexture; -rs_allocation gHomeButton; - -rs_program_fragment gPFTexNearest; -rs_program_fragment gPFTexMip; -rs_program_fragment gPFTexMipAlpha; -rs_program_vertex gPVCurve; -rs_program_store gPS; -rs_mesh gSMCell; - -rs_allocation *gIconIDs; -rs_allocation *gLabelIDs; - -typedef struct VpConsts { - float4 Position; - float4 ScaleOffset; - float2 BendPos; - float2 ImgSize; -} VpConsts_t; -VpConsts_t *vpConstants; - - -#pragma rs export_var(COLUMNS_PER_PAGE_PORTRAIT, ROWS_PER_PAGE_PORTRAIT, COLUMNS_PER_PAGE_LANDSCAPE, ROWS_PER_PAGE_LANDSCAPE, gIconCount, gSelectedIconIndex, gSelectedIconTexture, gHomeButton, gTargetPos, gPFTexNearest, gPFTexMip, gPFTexMipAlpha, gPVCurve, gPS, gSMCell, gIconIDs, gLabelIDs, vpConstants) -#pragma rs export_func(move, moveTo, setZoom, fling) - - -// Attraction to center values from page edge to page center. -static float g_AttractionTable[9] = {20.f, 20.f, 20.f, 10.f, -10.f, -20.f, -20.f, -20.f, -20.f}; -static float g_FrictionTable[9] = {10.f, 10.f, 11.f, 15.f, 15.f, 11.f, 10.f, 10.f, 10.f}; -static float g_PhysicsTableSize = 7; - -static float gZoomTarget; -static float gTargetPos; -static float g_PosPage = 0.f; -static float g_PosVelocity = 0.f; -static float g_LastPositionX = 0.f; -static bool g_LastTouchDown = false; -static float g_DT; -static int64_t g_LastTime; -static int g_PosMax; -static float g_Zoom = 0.f; -static float g_Animation = 1.f; -static float g_OldPosPage; -static float g_OldPosVelocity; -static float g_OldZoom; -static float g_MoveToTotalTime = 0.2f; -static float g_MoveToTime = 0.f; -static float g_MoveToOldPos = 0.f; - -static int g_Cols; -static int g_Rows; - -// Drawing constants, should be parameters ====== -#define VIEW_ANGLE 1.28700222f - - -static void updateReadback() { - if ((g_OldPosPage != g_PosPage) || - (g_OldPosVelocity != g_PosVelocity) || - (g_OldZoom != g_Zoom)) { - - g_OldPosPage = g_PosPage; - g_OldPosVelocity = g_PosVelocity; - g_OldZoom = g_Zoom; - - int i[3]; - i[0] = g_PosPage * (1 << 16); - i[1] = g_PosVelocity * (1 << 16); - i[2] = g_OldZoom * (1 << 16); - rsSendToClient(&i[0], 1, 12, 1); - } -} - -void init() { -} - -void move(float newPos) { - if (g_LastTouchDown) { - float dx = -(newPos - g_LastPositionX); - g_PosVelocity = 0; - g_PosPage += dx * 5.2f; - - float pmin = -0.49f; - float pmax = g_PosMax + 0.49f; - g_PosPage = clamp(g_PosPage, pmin, pmax); - } - g_LastTouchDown = true; - g_LastPositionX = newPos; - g_MoveToTime = 0; -} - -void moveTo(float targetPos) { - gTargetPos = targetPos; - g_MoveToTime = g_MoveToTotalTime; - g_PosVelocity = 0; - g_MoveToOldPos = g_PosPage; -} - -void setZoom(float z, /*bool*/ int animate) { - gZoomTarget = z; - if (gZoomTarget < 0.001f) { - gZoomTarget = 0; - } - if (!animate) { - g_Zoom = gZoomTarget; - } - updateReadback(); -} - -void fling(float newPos, float vel) { - move(newPos); - - g_LastTouchDown = false; - g_PosVelocity = -vel * 4; - float av = fabs(g_PosVelocity); - float minVel = 3.5f; - - minVel *= 1.f - (fabs(rsFrac(g_PosPage + 0.5f) - 0.5f) * 0.45f); - - if (av < minVel && av > 0.2f) { - if (g_PosVelocity > 0) { - g_PosVelocity = minVel; - } else { - g_PosVelocity = -minVel; - } - } - - if (g_PosPage <= 0) { - g_PosVelocity = max(0.f, g_PosVelocity); - } - if (g_PosPage > g_PosMax) { - g_PosVelocity = min(0.f, g_PosVelocity); - } -} - -// Interpolates values in the range 0..1 to a curve that eases in -// and out. -static float getInterpolation(float input) { - return (cos((input + 1) * PI) * 0.5f) + 0.5f; -} - - -static void updatePos() { - if (g_LastTouchDown) { - return; - } - - float tablePosNorm = rsFrac(g_PosPage + 0.5f); - float tablePosF = tablePosNorm * g_PhysicsTableSize; - int tablePosI = tablePosF; - float tablePosFrac = tablePosF - tablePosI; - float accel = mix(g_AttractionTable[tablePosI], - g_AttractionTable[tablePosI + 1], - tablePosFrac) * g_DT; - float friction = mix(g_FrictionTable[tablePosI], - g_FrictionTable[tablePosI + 1], - tablePosFrac) * g_DT; - - if (g_MoveToTime) { - // New position is old posiition + (total distance) * (interpolated time) - g_PosPage = g_MoveToOldPos + (gTargetPos - g_MoveToOldPos) * getInterpolation((g_MoveToTotalTime - g_MoveToTime) / g_MoveToTotalTime); - g_MoveToTime -= g_DT; - if (g_MoveToTime <= 0) { - g_MoveToTime = 0; - g_PosPage = gTargetPos; - } - return; - } - - // If our velocity is low OR acceleration is opposing it, apply it. - if (fabs(g_PosVelocity) < 4.0f || (g_PosVelocity * accel) < 0) { - g_PosVelocity += accel; - } - //RS_DEBUG(g_PosPage); - //RS_DEBUG(g_PosVelocity); - //RS_DEBUG(friction); - //RS_DEBUG(accel); - - // Normal physics - if (g_PosVelocity > 0) { - g_PosVelocity -= friction; - g_PosVelocity = max(g_PosVelocity, 0.f); - } else { - g_PosVelocity += friction; - g_PosVelocity = min(g_PosVelocity, 0.f); - } - - if ((friction > fabs(g_PosVelocity)) && (friction > fabs(accel))) { - // Special get back to center and overcome friction physics. - float t = tablePosNorm - 0.5f; - if (fabs(t) < (friction * g_DT)) { - // really close, just snap - g_PosPage = round(g_PosPage); - g_PosVelocity = 0; - } else { - if (t > 0) { - g_PosVelocity = -friction; - } else { - g_PosVelocity = friction; - } - } - } - - // Check for out of boundry conditions. - if (g_PosPage < 0 && g_PosVelocity < 0) { - float damp = 1.0f + (g_PosPage * 4); - damp = clamp(damp, 0.f, 0.9f); - g_PosVelocity *= damp; - } - if (g_PosPage > g_PosMax && g_PosVelocity > 0) { - float damp = 1.0f - ((g_PosPage - g_PosMax) * 4); - damp = clamp(damp, 0.f, 0.9f); - g_PosVelocity *= damp; - } - - g_PosPage += g_PosVelocity * g_DT; - g_PosPage = clamp(g_PosPage, -0.49f, g_PosMax + 0.49f); -} - -static void -draw_home_button() -{ - color(1.0f, 1.0f, 1.0f, 1.0f); - rsgBindTexture(gPFTexNearest, 0, gHomeButton); - - float w = rsgGetWidth(); - float h = rsgGetHeight(); - float tw = rsAllocationGetDimX(gHomeButton); - float th = rsAllocationGetDimY(gHomeButton); - - float x; - float y; - if (w > h) { - x = w - (tw * (1 - g_Animation)) + 20; - y = (h - th) * 0.5f; - } else { - x = (w - tw) / 2; - y = -g_Animation * th; - y -= 30; // move the house to the edge of the screen as it doesn't fill the texture. - } - - rsgDrawSpriteScreenspace(x, y, 0, tw, th); -} - -static void drawFrontGrid(float rowOffset, float p) -{ - float h = rsgGetHeight(); - float w = rsgGetWidth(); - - int intRowOffset = rowOffset; - float rowFrac = rowOffset - intRowOffset; - float colWidth = 120.f;//w / 4; - float rowHeight = colWidth + 25.f; - float yoff = 0.5f * h + 1.5f * rowHeight; - - int row, col; - int colCount = 4; - if (w > h) { - colCount = 6; - rowHeight -= 12.f; - yoff = 0.47f * h + 1.0f * rowHeight; - } - - int iconNum = (intRowOffset - 5) * colCount; - - rsgBindProgramVertex(gPVCurve); - - vpConstants->Position.z = p; - - color(1.0f, 1.0f, 1.0f, 1.0f); - for (row = -5; row < 15; row++) { - float y = yoff - ((-rowFrac + row) * rowHeight); - - for (col=0; col < colCount; col++) { - if (iconNum >= gIconCount) { - return; - } - - if (iconNum >= 0) { - float x = colWidth * col + (colWidth / 2); - vpConstants->Position.x = x + 0.2f; - - if (gSelectedIconIndex == iconNum && !p && gSelectedIconTexture.p) { - rsgBindProgramFragment(gPFTexNearest); - rsgBindTexture(gPFTexNearest, 0, gSelectedIconTexture); - vpConstants->ImgSize.x = rsAllocationGetDimX(gSelectedIconTexture); - vpConstants->ImgSize.y = rsAllocationGetDimY(gSelectedIconTexture); - vpConstants->Position.y = y - (rsAllocationGetDimY(gSelectedIconTexture) - - rsAllocationGetDimY(gIconIDs[iconNum])) * 0.5f; - rsgDrawMesh(gSMCell); - } - - rsgBindProgramFragment(gPFTexMip); - vpConstants->ImgSize.x = rsAllocationGetDimX(gIconIDs[iconNum]); - vpConstants->ImgSize.y = rsAllocationGetDimY(gIconIDs[iconNum]); - vpConstants->Position.y = y - 0.2f; - rsgBindTexture(gPFTexMip, 0, gIconIDs[iconNum]); - rsgDrawMesh(gSMCell); - - rsgBindProgramFragment(gPFTexMipAlpha); - vpConstants->ImgSize.x = rsAllocationGetDimX(gLabelIDs[iconNum]); - vpConstants->ImgSize.y = rsAllocationGetDimY(gLabelIDs[iconNum]); - vpConstants->Position.y = y - 64.f - 0.2f; - rsgBindTexture(gPFTexMipAlpha, 0, gLabelIDs[iconNum]); - rsgDrawMesh(gSMCell); - } - iconNum++; - } - } -} - - -int root() -{ - // Compute dt in seconds. - int64_t newTime = rsUptimeMillis(); - g_DT = (newTime - g_LastTime) * 0.001f; - g_LastTime = newTime; - - // physics may break if DT is large. - g_DT = min(g_DT, 0.1f); - - if (g_Zoom != gZoomTarget) { - float dz = g_DT * 1.7f; - if (gZoomTarget < 0.5f) { - dz = -dz; - } - if (fabs(g_Zoom - gZoomTarget) < fabs(dz)) { - g_Zoom = gZoomTarget; - } else { - g_Zoom += dz; - } - updateReadback(); - } - g_Animation = pow(1.f - g_Zoom, 3.f); - - // Set clear value to dim the background based on the zoom position. - if ((g_Zoom < 0.001f) && (gZoomTarget < 0.001f)) { - rsgClearColor(0.0f, 0.0f, 0.0f, 0.0f); - // When we're zoomed out and not tracking motion events, reset the pos to 0. - if (!g_LastTouchDown) { - g_PosPage = 0; - } - return 0; - } else { - rsgClearColor(0.0f, 0.0f, 0.0f, g_Zoom); - } - - rsgBindProgramStore(gPS); - - // icons & labels - if (rsgGetWidth() > rsgGetHeight()) { - g_Cols = COLUMNS_PER_PAGE_LANDSCAPE; - g_Rows = ROWS_PER_PAGE_LANDSCAPE; - } else { - g_Cols = COLUMNS_PER_PAGE_PORTRAIT; - g_Rows = ROWS_PER_PAGE_PORTRAIT; - } - - g_PosMax = ((gIconCount + (g_Cols-1)) / g_Cols) - g_Rows; - if (g_PosMax < 0) g_PosMax = 0; - - updatePos(); - updateReadback(); - - // Draw the icons ======================================== - drawFrontGrid(g_PosPage, g_Animation); - - rsgBindProgramFragment(gPFTexNearest); - draw_home_button(); - return (g_PosVelocity != 0) || rsFrac(g_PosPage) || g_Zoom != gZoomTarget || (g_MoveToTime != 0); -} - - diff --git a/res/raw/allapps_bc.bc b/res/raw/allapps_bc.bc deleted file mode 100644 index e2341bd..0000000 Binary files a/res/raw/allapps_bc.bc and /dev/null differ -- cgit v1.1 From 558654c6ec6eefa260e5a1c1c44fc6e13ec20473 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Fri, 23 Jul 2010 16:48:11 -0700 Subject: Switched to tabbed version of AllApps2D on xlarge screens. - add a temporary new zoom animation for all apps - modify AllApps2D to allow it to be transparent - other changes to dismiss the customization drawer when appropriate Change-Id: I5660ab77f256ded299c1721c589983a1b30d56a4 --- res/anim/all_apps_zoom_in.xml | 33 ++++++++++++++++ res/anim/all_apps_zoom_out.xml | 33 ++++++++++++++++ res/layout-land/all_apps_2d.xml | 2 +- res/layout-port/all_apps_2d.xml | 2 +- res/layout-xlarge/all_apps_tabbed.xml | 56 +++++++++++++++++++++++++++ res/layout-xlarge/launcher.xml | 73 ++++++++++++++++++----------------- 6 files changed, 162 insertions(+), 37 deletions(-) create mode 100644 res/anim/all_apps_zoom_in.xml create mode 100644 res/anim/all_apps_zoom_out.xml create mode 100644 res/layout-xlarge/all_apps_tabbed.xml (limited to 'res') diff --git a/res/anim/all_apps_zoom_in.xml b/res/anim/all_apps_zoom_in.xml new file mode 100644 index 0000000..644d1cf --- /dev/null +++ b/res/anim/all_apps_zoom_in.xml @@ -0,0 +1,33 @@ + + + + + + diff --git a/res/anim/all_apps_zoom_out.xml b/res/anim/all_apps_zoom_out.xml new file mode 100644 index 0000000..23a8712 --- /dev/null +++ b/res/anim/all_apps_zoom_out.xml @@ -0,0 +1,33 @@ + + + + + + diff --git a/res/layout-land/all_apps_2d.xml b/res/layout-land/all_apps_2d.xml index a253b93..b7fcd45 100644 --- a/res/layout-land/all_apps_2d.xml +++ b/res/layout-land/all_apps_2d.xml @@ -22,7 +22,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:padding="2dip" - > + android:background="#FF000000"> + android:background="#FF000000"> + + + + + + + + + + + + diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 72cd796..61457bf 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -22,7 +22,12 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - + - - - - - - - - - - - + + + + + + + + + -- cgit v1.1 From dee0589388ba0f6373912e18bf86243282fb3b9b Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Tue, 27 Jul 2010 10:01:56 -0700 Subject: Home screen now shrinks while customizing - added a shrink/fade animation on home screen when going into customization mode - made items in the customization drawer larger Change-Id: Iddbaf14aa5b1504fe94966971a1ab95c00f24331 --- res/layout-xlarge/launcher.xml | 2 +- res/layout/home_customization_drawer_item.xml | 2 +- res/values/dimens.xml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'res') diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 61457bf..3f56b45 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -86,7 +86,7 @@ 14dip + + + 10dip -- cgit v1.1 From 213d96354e7407dba5c9715eb10d04bebd82c395 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Wed, 28 Jul 2010 11:29:25 -0700 Subject: Improved support for workspace screen thumbnails - Shrinking workspace view in All Apps - Added vertical margin for workspace screen thumnbnails - Fixed bugs in a few of the Launcher state transitions (e.g. customization to all apps) Change-Id: I9ad1c8861585d78fdb2e3bc986a614526b3cfe5f --- res/values/dimens.xml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'res') diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 9bf6cdf..38936ce 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -41,4 +41,7 @@ 10dip + + + 20dip -- cgit v1.1 From 3d605d5bbef35e3b8aded44c5ef7fe3948f8f7d5 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Thu, 29 Jul 2010 13:59:29 -0700 Subject: Make tabs in all apps actually filter the list of apps. --- res/values/strings.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'res') diff --git a/res/values/strings.xml b/res/values/strings.xml index f61871d..60cf9ca 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -43,11 +43,17 @@ Application is not installed on your phone. Configure... + Widgets Folders Shortcuts Wallpapers This will be the wallpapers tab + + All + Apps + Games + Downloaded -- cgit v1.1 From 54dd75463d0eb47c2f468e19063bdc4141dfdf74 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Fri, 30 Jul 2010 14:47:52 -0700 Subject: Tapping on mini-screen in All Apps view now goes back to home screen - had to disable touch event swallowing in workspace in X-Large mode to get this to work - also changed default screen in XLarge mode to 2 (the middle one) --- res/layout-xlarge/launcher.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'res') diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 3f56b45..f0564ca 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -34,6 +34,7 @@ android:id="@+id/workspace" android:layout_width="match_parent" android:layout_height="match_parent" + launcher:defaultScreen="2" launcher:canonicalDeviceWidth="8" launcher:canonicalDeviceHeight="4"> -- cgit v1.1 From 54f7ac30f2832120faa0c2dd45e5b216ac771efb Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Mon, 2 Aug 2010 13:56:46 -0700 Subject: Made some temporary aesthetic improvements - icons in the customization drawer are now much more tightly spaced, and no longer use the default gallery styling - wrapped some >100 char lines - removed "Applications" from the shortcuts customization drawer --- res/layout/home_customization_drawer_item.xml | 8 ++++---- res/layout/home_customization_drawer_widget.xml | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 res/layout/home_customization_drawer_widget.xml (limited to 'res') diff --git a/res/layout/home_customization_drawer_item.xml b/res/layout/home_customization_drawer_item.xml index 2ef527d..4d61dbf 100644 --- a/res/layout/home_customization_drawer_item.xml +++ b/res/layout/home_customization_drawer_item.xml @@ -15,10 +15,10 @@ --> \ No newline at end of file + android:textAppearance="?android:attr/textAppearanceMedium" + android:textColor="#ffffffff" /> \ No newline at end of file diff --git a/res/layout/home_customization_drawer_widget.xml b/res/layout/home_customization_drawer_widget.xml new file mode 100644 index 0000000..1581308 --- /dev/null +++ b/res/layout/home_customization_drawer_widget.xml @@ -0,0 +1,24 @@ + + + + \ No newline at end of file -- cgit v1.1 From 921efb310af08579d5a97de7f5e350b78677c6d0 Mon Sep 17 00:00:00 2001 From: Gilles Debunne Date: Mon, 2 Aug 2010 15:12:10 -0700 Subject: Move pngs from drawable to drawable-mdpi in project packages/apps/Launcher2/ Change-Id: I2eeac742b5279705938c91dee597bea9e983ba50 --- res/drawable-mdpi/add_button.png | Bin 0 -> 2372 bytes res/drawable-mdpi/default_widget_preview.9.png | Bin 0 -> 541 bytes res/drawable-mdpi/pressed_application_background.9.png | Bin 0 -> 1091 bytes res/drawable-mdpi/rounded_rect_green.9.png | Bin 0 -> 361 bytes res/drawable-mdpi/rounded_rect_red.9.png | Bin 0 -> 342 bytes res/drawable/add_button.png | Bin 2372 -> 0 bytes res/drawable/default_widget_preview.9.png | Bin 541 -> 0 bytes res/drawable/pressed_application_background.9.png | Bin 1091 -> 0 bytes res/drawable/rounded_rect_green.9.png | Bin 361 -> 0 bytes res/drawable/rounded_rect_red.9.png | Bin 342 -> 0 bytes 10 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 res/drawable-mdpi/add_button.png create mode 100644 res/drawable-mdpi/default_widget_preview.9.png create mode 100644 res/drawable-mdpi/pressed_application_background.9.png create mode 100644 res/drawable-mdpi/rounded_rect_green.9.png create mode 100644 res/drawable-mdpi/rounded_rect_red.9.png delete mode 100644 res/drawable/add_button.png delete mode 100644 res/drawable/default_widget_preview.9.png delete mode 100644 res/drawable/pressed_application_background.9.png delete mode 100644 res/drawable/rounded_rect_green.9.png delete mode 100644 res/drawable/rounded_rect_red.9.png (limited to 'res') diff --git a/res/drawable-mdpi/add_button.png b/res/drawable-mdpi/add_button.png new file mode 100644 index 0000000..0edcfa3 Binary files /dev/null and b/res/drawable-mdpi/add_button.png differ diff --git a/res/drawable-mdpi/default_widget_preview.9.png b/res/drawable-mdpi/default_widget_preview.9.png new file mode 100644 index 0000000..e966b1b Binary files /dev/null and b/res/drawable-mdpi/default_widget_preview.9.png differ diff --git a/res/drawable-mdpi/pressed_application_background.9.png b/res/drawable-mdpi/pressed_application_background.9.png new file mode 100644 index 0000000..b09f595 Binary files /dev/null and b/res/drawable-mdpi/pressed_application_background.9.png differ diff --git a/res/drawable-mdpi/rounded_rect_green.9.png b/res/drawable-mdpi/rounded_rect_green.9.png new file mode 100644 index 0000000..5787c3d Binary files /dev/null and b/res/drawable-mdpi/rounded_rect_green.9.png differ diff --git a/res/drawable-mdpi/rounded_rect_red.9.png b/res/drawable-mdpi/rounded_rect_red.9.png new file mode 100644 index 0000000..7a5fdee Binary files /dev/null and b/res/drawable-mdpi/rounded_rect_red.9.png differ diff --git a/res/drawable/add_button.png b/res/drawable/add_button.png deleted file mode 100644 index 0edcfa3..0000000 Binary files a/res/drawable/add_button.png and /dev/null differ diff --git a/res/drawable/default_widget_preview.9.png b/res/drawable/default_widget_preview.9.png deleted file mode 100644 index e966b1b..0000000 Binary files a/res/drawable/default_widget_preview.9.png and /dev/null differ diff --git a/res/drawable/pressed_application_background.9.png b/res/drawable/pressed_application_background.9.png deleted file mode 100644 index b09f595..0000000 Binary files a/res/drawable/pressed_application_background.9.png and /dev/null differ diff --git a/res/drawable/rounded_rect_green.9.png b/res/drawable/rounded_rect_green.9.png deleted file mode 100644 index 5787c3d..0000000 Binary files a/res/drawable/rounded_rect_green.9.png and /dev/null differ diff --git a/res/drawable/rounded_rect_red.9.png b/res/drawable/rounded_rect_red.9.png deleted file mode 100644 index 7a5fdee..0000000 Binary files a/res/drawable/rounded_rect_red.9.png and /dev/null differ -- cgit v1.1 From 48e4b2acef2d0a9d648ff709fa85020bab81caf6 Mon Sep 17 00:00:00 2001 From: Jim Shuma Date: Tue, 3 Aug 2010 09:05:44 -0700 Subject: Revert "Move pngs from drawable to drawable-mdpi in project packages/apps/Launcher2/" This reverts commit 921efb310af08579d5a97de7f5e350b78677c6d0. --- res/drawable-mdpi/add_button.png | Bin 2372 -> 0 bytes res/drawable-mdpi/default_widget_preview.9.png | Bin 541 -> 0 bytes res/drawable-mdpi/pressed_application_background.9.png | Bin 1091 -> 0 bytes res/drawable-mdpi/rounded_rect_green.9.png | Bin 361 -> 0 bytes res/drawable-mdpi/rounded_rect_red.9.png | Bin 342 -> 0 bytes res/drawable/add_button.png | Bin 0 -> 2372 bytes res/drawable/default_widget_preview.9.png | Bin 0 -> 541 bytes res/drawable/pressed_application_background.9.png | Bin 0 -> 1091 bytes res/drawable/rounded_rect_green.9.png | Bin 0 -> 361 bytes res/drawable/rounded_rect_red.9.png | Bin 0 -> 342 bytes 10 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 res/drawable-mdpi/add_button.png delete mode 100644 res/drawable-mdpi/default_widget_preview.9.png delete mode 100644 res/drawable-mdpi/pressed_application_background.9.png delete mode 100644 res/drawable-mdpi/rounded_rect_green.9.png delete mode 100644 res/drawable-mdpi/rounded_rect_red.9.png create mode 100644 res/drawable/add_button.png create mode 100644 res/drawable/default_widget_preview.9.png create mode 100644 res/drawable/pressed_application_background.9.png create mode 100644 res/drawable/rounded_rect_green.9.png create mode 100644 res/drawable/rounded_rect_red.9.png (limited to 'res') diff --git a/res/drawable-mdpi/add_button.png b/res/drawable-mdpi/add_button.png deleted file mode 100644 index 0edcfa3..0000000 Binary files a/res/drawable-mdpi/add_button.png and /dev/null differ diff --git a/res/drawable-mdpi/default_widget_preview.9.png b/res/drawable-mdpi/default_widget_preview.9.png deleted file mode 100644 index e966b1b..0000000 Binary files a/res/drawable-mdpi/default_widget_preview.9.png and /dev/null differ diff --git a/res/drawable-mdpi/pressed_application_background.9.png b/res/drawable-mdpi/pressed_application_background.9.png deleted file mode 100644 index b09f595..0000000 Binary files a/res/drawable-mdpi/pressed_application_background.9.png and /dev/null differ diff --git a/res/drawable-mdpi/rounded_rect_green.9.png b/res/drawable-mdpi/rounded_rect_green.9.png deleted file mode 100644 index 5787c3d..0000000 Binary files a/res/drawable-mdpi/rounded_rect_green.9.png and /dev/null differ diff --git a/res/drawable-mdpi/rounded_rect_red.9.png b/res/drawable-mdpi/rounded_rect_red.9.png deleted file mode 100644 index 7a5fdee..0000000 Binary files a/res/drawable-mdpi/rounded_rect_red.9.png and /dev/null differ diff --git a/res/drawable/add_button.png b/res/drawable/add_button.png new file mode 100644 index 0000000..0edcfa3 Binary files /dev/null and b/res/drawable/add_button.png differ diff --git a/res/drawable/default_widget_preview.9.png b/res/drawable/default_widget_preview.9.png new file mode 100644 index 0000000..e966b1b Binary files /dev/null and b/res/drawable/default_widget_preview.9.png differ diff --git a/res/drawable/pressed_application_background.9.png b/res/drawable/pressed_application_background.9.png new file mode 100644 index 0000000..b09f595 Binary files /dev/null and b/res/drawable/pressed_application_background.9.png differ diff --git a/res/drawable/rounded_rect_green.9.png b/res/drawable/rounded_rect_green.9.png new file mode 100644 index 0000000..5787c3d Binary files /dev/null and b/res/drawable/rounded_rect_green.9.png differ diff --git a/res/drawable/rounded_rect_red.9.png b/res/drawable/rounded_rect_red.9.png new file mode 100644 index 0000000..7a5fdee Binary files /dev/null and b/res/drawable/rounded_rect_red.9.png differ -- cgit v1.1 From d2b7193d4463da1c0fc23670a8896eb9a17efdba Mon Sep 17 00:00:00 2001 From: Gilles Debunne Date: Tue, 3 Aug 2010 10:46:02 -0700 Subject: packages/apps/Launcher2 : added scaled hdpi version of assets that were moved to drawable-mdpi Change-Id: I7225720c742dda03ce714d507f14ca4df8413990 --- res/drawable-hdpi/add_button.png | Bin 0 -> 20921 bytes res/drawable-hdpi/default_widget_preview.9.png | Bin 0 -> 12701 bytes res/drawable-hdpi/pressed_application_background.9.png | Bin 0 -> 46116 bytes res/drawable-hdpi/rounded_rect_green.9.png | Bin 0 -> 6854 bytes res/drawable-hdpi/rounded_rect_red.9.png | Bin 0 -> 6854 bytes 5 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 res/drawable-hdpi/add_button.png create mode 100644 res/drawable-hdpi/default_widget_preview.9.png create mode 100644 res/drawable-hdpi/pressed_application_background.9.png create mode 100644 res/drawable-hdpi/rounded_rect_green.9.png create mode 100644 res/drawable-hdpi/rounded_rect_red.9.png (limited to 'res') diff --git a/res/drawable-hdpi/add_button.png b/res/drawable-hdpi/add_button.png new file mode 100644 index 0000000..7e60d81 Binary files /dev/null and b/res/drawable-hdpi/add_button.png differ diff --git a/res/drawable-hdpi/default_widget_preview.9.png b/res/drawable-hdpi/default_widget_preview.9.png new file mode 100644 index 0000000..6596f07 Binary files /dev/null and b/res/drawable-hdpi/default_widget_preview.9.png differ diff --git a/res/drawable-hdpi/pressed_application_background.9.png b/res/drawable-hdpi/pressed_application_background.9.png new file mode 100644 index 0000000..a6cbe94 Binary files /dev/null and b/res/drawable-hdpi/pressed_application_background.9.png differ diff --git a/res/drawable-hdpi/rounded_rect_green.9.png b/res/drawable-hdpi/rounded_rect_green.9.png new file mode 100644 index 0000000..a846cbd Binary files /dev/null and b/res/drawable-hdpi/rounded_rect_green.9.png differ diff --git a/res/drawable-hdpi/rounded_rect_red.9.png b/res/drawable-hdpi/rounded_rect_red.9.png new file mode 100644 index 0000000..21fd62c Binary files /dev/null and b/res/drawable-hdpi/rounded_rect_red.9.png differ -- cgit v1.1 From 2c3af5ffb21039a73107ef70723d2353146ab94a Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Tue, 3 Aug 2010 13:53:20 -0700 Subject: refreshed apps/configure button, added search button - configure button now has a pressed state (as do the other two) - also added a cast to getX() from float->int because of changes in the view property code Change-Id: I57dc6e44838f4f4354f8977a3b542e93384b3d7d --- res/drawable-xlarge/all_apps_button.xml | 20 ++++++++++++ res/drawable-xlarge/all_apps_button_normal.png | Bin 0 -> 3713 bytes res/drawable-xlarge/all_apps_button_pressed.png | Bin 0 -> 3467 bytes res/drawable-xlarge/configure_button.xml | 20 ++++++++++++ res/drawable-xlarge/configure_button_normal.png | Bin 0 -> 4228 bytes res/drawable-xlarge/configure_button_pressed.png | Bin 0 -> 3718 bytes res/drawable-xlarge/search_button.xml | 20 ++++++++++++ res/drawable-xlarge/search_button_normal.png | Bin 0 -> 6234 bytes res/drawable-xlarge/search_button_pressed.png | Bin 0 -> 5798 bytes res/drawable/add_button.png | Bin 2372 -> 0 bytes res/layout-xlarge/launcher.xml | 38 ++++++++++++++--------- 11 files changed, 83 insertions(+), 15 deletions(-) create mode 100644 res/drawable-xlarge/all_apps_button.xml create mode 100644 res/drawable-xlarge/all_apps_button_normal.png create mode 100644 res/drawable-xlarge/all_apps_button_pressed.png create mode 100644 res/drawable-xlarge/configure_button.xml create mode 100644 res/drawable-xlarge/configure_button_normal.png create mode 100644 res/drawable-xlarge/configure_button_pressed.png create mode 100644 res/drawable-xlarge/search_button.xml create mode 100644 res/drawable-xlarge/search_button_normal.png create mode 100644 res/drawable-xlarge/search_button_pressed.png delete mode 100644 res/drawable/add_button.png (limited to 'res') diff --git a/res/drawable-xlarge/all_apps_button.xml b/res/drawable-xlarge/all_apps_button.xml new file mode 100644 index 0000000..1e654f0 --- /dev/null +++ b/res/drawable-xlarge/all_apps_button.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/res/drawable-xlarge/all_apps_button_normal.png b/res/drawable-xlarge/all_apps_button_normal.png new file mode 100644 index 0000000..095ce63 Binary files /dev/null and b/res/drawable-xlarge/all_apps_button_normal.png differ diff --git a/res/drawable-xlarge/all_apps_button_pressed.png b/res/drawable-xlarge/all_apps_button_pressed.png new file mode 100644 index 0000000..50e4735 Binary files /dev/null and b/res/drawable-xlarge/all_apps_button_pressed.png differ diff --git a/res/drawable-xlarge/configure_button.xml b/res/drawable-xlarge/configure_button.xml new file mode 100644 index 0000000..b292652 --- /dev/null +++ b/res/drawable-xlarge/configure_button.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/res/drawable-xlarge/configure_button_normal.png b/res/drawable-xlarge/configure_button_normal.png new file mode 100644 index 0000000..066f492 Binary files /dev/null and b/res/drawable-xlarge/configure_button_normal.png differ diff --git a/res/drawable-xlarge/configure_button_pressed.png b/res/drawable-xlarge/configure_button_pressed.png new file mode 100644 index 0000000..536ed7c Binary files /dev/null and b/res/drawable-xlarge/configure_button_pressed.png differ diff --git a/res/drawable-xlarge/search_button.xml b/res/drawable-xlarge/search_button.xml new file mode 100644 index 0000000..6d5d949 --- /dev/null +++ b/res/drawable-xlarge/search_button.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/res/drawable-xlarge/search_button_normal.png b/res/drawable-xlarge/search_button_normal.png new file mode 100644 index 0000000..3a3045a Binary files /dev/null and b/res/drawable-xlarge/search_button_normal.png differ diff --git a/res/drawable-xlarge/search_button_pressed.png b/res/drawable-xlarge/search_button_pressed.png new file mode 100644 index 0000000..8ae6b16 Binary files /dev/null and b/res/drawable-xlarge/search_button_pressed.png differ diff --git a/res/drawable/add_button.png b/res/drawable/add_button.png deleted file mode 100644 index 0edcfa3..0000000 Binary files a/res/drawable/add_button.png and /dev/null differ diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index f0564ca..fa323fd 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -45,30 +45,38 @@ + - + Date: Mon, 26 Jul 2010 22:02:18 -0700 Subject: Cleaning up grid size specification in Launcher This commit eliminates the notion of in-place rotations and a bunch of associated complexities (including the notion of canonical coordinates). Further, the number of x and y cells per workspace screen is now being stored in a single location in the XML definition of Workspace. This fixes a couple bugs where incorrect values were being used. Finally, eliminated the notion of "shortAxis" and "longAxis" in terms of padding and cell count. These have been translated to corresponding x and y axis values. Change-Id: I30cfed66f82d739355b3f01730b28b6c0437989c --- res/layout-land/launcher.xml | 6 ++++-- res/layout-land/workspace_screen.xml | 10 ++++------ res/layout-port/launcher.xml | 6 ++++-- res/layout-port/workspace_screen.xml | 10 ++++------ res/layout-xlarge/launcher.xml | 4 ++-- res/layout-xlarge/workspace_screen.xml | 10 ++++------ res/values/attrs.xml | 20 ++++++++------------ 7 files changed, 30 insertions(+), 36 deletions(-) (limited to 'res') diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index 1f13f1f..8d38a3d 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -24,14 +24,16 @@ - + + launcher:defaultScreen="2" + launcher:cellCountX="4" + launcher:cellCountY="4"> diff --git a/res/layout-land/workspace_screen.xml b/res/layout-land/workspace_screen.xml index 315e68b..9323f58 100644 --- a/res/layout-land/workspace_screen.xml +++ b/res/layout-land/workspace_screen.xml @@ -24,9 +24,7 @@ launcher:cellWidth="@dimen/workspace_cell_width" launcher:cellHeight="@dimen/workspace_cell_height" - launcher:longAxisStartPadding="65dip" - launcher:longAxisEndPadding="65dip" - launcher:shortAxisStartPadding="0dip" - launcher:shortAxisEndPadding="0dip" - launcher:shortAxisCells="4" - launcher:longAxisCells="4" /> + launcher:xAxisStartPadding="65dip" + launcher:xAxisEndPadding="65dip" + launcher:yAxisStartPadding="0dip" + launcher:yAxisEndPadding="0dip"/> diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml index 8dc5092..c50dbca 100644 --- a/res/layout-port/launcher.xml +++ b/res/layout-port/launcher.xml @@ -24,12 +24,14 @@ - + + launcher:defaultScreen="2" + launcher:cellCountX="4" + launcher:cellCountY="4"> diff --git a/res/layout-port/workspace_screen.xml b/res/layout-port/workspace_screen.xml index 96df91b..f400c40 100644 --- a/res/layout-port/workspace_screen.xml +++ b/res/layout-port/workspace_screen.xml @@ -24,9 +24,7 @@ launcher:cellWidth="@dimen/workspace_cell_width" launcher:cellHeight="@dimen/workspace_cell_height" - launcher:longAxisStartPadding="8dip" - launcher:longAxisEndPadding="@dimen/button_bar_height" - launcher:shortAxisStartPadding="0dip" - launcher:shortAxisEndPadding="0dip" - launcher:shortAxisCells="4" - launcher:longAxisCells="4" /> + launcher:yAxisStartPadding="8dip" + launcher:yAxisEndPadding="@dimen/button_bar_height" + launcher:xAxisStartPadding="0dip" + launcher:xAxisEndPadding="0dip" /> diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index fa323fd..0dd25d2 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -35,8 +35,8 @@ android:layout_width="match_parent" android:layout_height="match_parent" launcher:defaultScreen="2" - launcher:canonicalDeviceWidth="8" - launcher:canonicalDeviceHeight="4"> + launcher:cellCountX="8" + launcher:cellCountY="4"> diff --git a/res/layout-xlarge/workspace_screen.xml b/res/layout-xlarge/workspace_screen.xml index aa892b9..6a34975 100644 --- a/res/layout-xlarge/workspace_screen.xml +++ b/res/layout-xlarge/workspace_screen.xml @@ -24,9 +24,7 @@ launcher:cellWidth="@dimen/workspace_cell_width" launcher:cellHeight="@dimen/workspace_cell_height" - launcher:longAxisStartPadding="8dip" - launcher:longAxisEndPadding="8dip" - launcher:shortAxisStartPadding="8dip" - launcher:shortAxisEndPadding="8dip" - launcher:shortAxisCells="4" - launcher:longAxisCells="8" /> + launcher:yAxisStartPadding="8dip" + launcher:yAxisEndPadding="8dip" + launcher:xAxisStartPadding="8dip" + launcher:xAxisEndPadding="8dip"/> diff --git a/res/values/attrs.xml b/res/values/attrs.xml index c977f97..be27288 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -32,10 +32,10 @@ - - - - + + + + - + - + - + - - - - - + + + 350 + + + + 350 + + + 5 + + + 700 + + + 700 + \ No newline at end of file -- cgit v1.1 From d4ede5325bb7b0da58d8a03a6246d8daae31fb97 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Wed, 4 Aug 2010 18:14:08 -0700 Subject: improved comments in strings file - also added/updated some copyright notices --- res/drawable-xlarge/search_button.xml | 2 +- res/values/strings.xml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'res') diff --git a/res/drawable-xlarge/search_button.xml b/res/drawable-xlarge/search_button.xml index 6d5d949..8f18e67 100644 --- a/res/drawable-xlarge/search_button.xml +++ b/res/drawable-xlarge/search_button.xml @@ -1,5 +1,5 @@ - Widgets + Folders + Shortcuts + Wallpapers + This will be the wallpapers tab + All + Apps + Games + Downloaded -- cgit v1.1 From 976ebec9e31643d3513f9f0de2b433d9aa186ce9 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Wed, 4 Aug 2010 20:03:37 -0700 Subject: Fix incorrect offset in drag feedback, and other minor stuff. - moved some dimens to -xlarge - enlarge AllApps so that it's not clipped --- res/layout-xlarge/launcher.xml | 2 +- res/values-xlarge/dimens.xml | 7 +++++++ res/values/dimens.xml | 7 ------- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'res') diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 0dd25d2..fa9c881 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -26,7 +26,7 @@ layout="@layout/all_apps_tabbed" android:id="@+id/all_apps_view" android:layout_width="match_parent" - android:layout_height="500dip" + android:layout_height="550dip" android:layout_gravity="top"/> diff --git a/res/values-xlarge/dimens.xml b/res/values-xlarge/dimens.xml index 8279492..9e98e46 100644 --- a/res/values-xlarge/dimens.xml +++ b/res/values-xlarge/dimens.xml @@ -17,4 +17,11 @@ 76dip 76dip + + + 10dip + + + 20dip diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 38936ce..790f835 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -37,11 +37,4 @@ 14dip - - - 10dip - - - 20dip -- cgit v1.1 From ecf403f6de6ac232d148c869a7d7968fef615a6c Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Thu, 5 Aug 2010 16:06:27 -0700 Subject: Import revised translations. Change-Id: I518526c93b6b13be68b2ab7fc4e249f770ded7d8 --- res/values-cs/strings.xml | 13 +++++++++++++ res/values-da/strings.xml | 13 +++++++++++++ res/values-de/strings.xml | 13 +++++++++++++ res/values-el/strings.xml | 13 +++++++++++++ res/values-es-rUS/strings.xml | 13 +++++++++++++ res/values-es/strings.xml | 13 +++++++++++++ res/values-fr/strings.xml | 13 +++++++++++++ res/values-it/strings.xml | 13 +++++++++++++ res/values-ja/strings.xml | 13 +++++++++++++ res/values-ko/strings.xml | 13 +++++++++++++ res/values-nb/strings.xml | 13 +++++++++++++ res/values-nl/strings.xml | 13 +++++++++++++ res/values-pl/strings.xml | 13 +++++++++++++ res/values-pt-rPT/strings.xml | 13 +++++++++++++ res/values-pt/strings.xml | 13 +++++++++++++ res/values-ru/strings.xml | 13 +++++++++++++ res/values-sv/strings.xml | 13 +++++++++++++ res/values-tr/strings.xml | 13 +++++++++++++ res/values-zh-rCN/strings.xml | 13 +++++++++++++ res/values-zh-rTW/strings.xml | 13 +++++++++++++ 20 files changed, 260 insertions(+) (limited to 'res') diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml index bad2730..011ea1e 100644 --- a/res/values-cs/strings.xml +++ b/res/values-cs/strings.xml @@ -27,6 +27,19 @@ "Tapety" "Aplikace není v telefonu nainstalována." "Konfigurace..." + "Widgety" + "Složky" + "Zástupci" + "Tapety" + "Toto bude karta Tapety" + + + + + + + + "Název složky" "Přejmenovat složku" "OK" diff --git a/res/values-da/strings.xml b/res/values-da/strings.xml index 6ec1516..08ebc63 100644 --- a/res/values-da/strings.xml +++ b/res/values-da/strings.xml @@ -27,6 +27,19 @@ "Tapeter" "Programmet er ikke installeret på din telefon." "Konfigurer ..." + "Widgets" + "Mapper" + "Genveje" + "Tapeter" + "Dette er fanen for tapeter" + + + + + + + + "Mappenavn" "Omdøb mappe" "OK" diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index e4f705e..d1b5ae0 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -27,6 +27,19 @@ "Hintergrundbilder" "Anwendung ist nicht auf dem Telefon installiert." "Konfigurieren..." + "Widgets" + "Ordner" + "Verknüpfungen" + "Hintergrundbilder" + "Dies ist der Tab \"Hintergrundbilder\"" + + + + + + + + "Ordnername" "Ordner umbenennen" "OK" diff --git a/res/values-el/strings.xml b/res/values-el/strings.xml index 6514964..eb8097f 100644 --- a/res/values-el/strings.xml +++ b/res/values-el/strings.xml @@ -27,6 +27,19 @@ "Ταπετσαρίες" "Η εφαρμογή δεν έχει εγκατασταθεί στο τηλέφωνό σας." "Διαμόρφωση..." + "Γραφικά στοιχεία" + "Φάκελοι" + "Συντομεύσεις" + "Ταπετσαρίες" + "Αυτή θα είναι η καρτέλα ταπετσαριών" + + + + + + + + "Όνομα φακέλου" "Μετονομασία φακέλου" "OK" diff --git a/res/values-es-rUS/strings.xml b/res/values-es-rUS/strings.xml index 5f6b4e5..5a40e3a 100644 --- a/res/values-es-rUS/strings.xml +++ b/res/values-es-rUS/strings.xml @@ -27,6 +27,19 @@ "Papeles tapiz" "La aplicación no está instalada en tu computadora." "Configurar..." + "Widgets" + "Carpetas" + "Accesos directos" + "Papeles tapiz" + "Ésta será la pestaña para los papeles tapiz" + + + + + + + + "Nombre de carpeta" "Cambiar nombre de carpeta" "Aceptar" diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml index 5b46c59..9772526 100644 --- a/res/values-es/strings.xml +++ b/res/values-es/strings.xml @@ -27,6 +27,19 @@ "Fondos de pantalla" "La aplicación no está instalada en el teléfono." "Configurar..." + "Widgets" + "Carpetas" + "Accesos directos" + "Fondos de pantalla" + "Será la carpeta de fondos de pantalla." + + + + + + + + "Nombre de carpeta" "Cambiar nombre de carpeta" "Aceptar" diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml index f1fb440..6d2d638 100644 --- a/res/values-fr/strings.xml +++ b/res/values-fr/strings.xml @@ -27,6 +27,19 @@ "Fonds d\'écran" "L\'application n\'est pas installée sur votre téléphone." "Configurer..." + "Widgets" + "Dossiers" + "Raccourcis" + "Fonds d\'écran" + "Onglet des fonds d\'écran" + + + + + + + + "Nom du dossier" "Renommer le dossier" "OK" diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml index 950e15f..684226d 100644 --- a/res/values-it/strings.xml +++ b/res/values-it/strings.xml @@ -27,6 +27,19 @@ "Sfondi" "Applicazione non installata sul telefono." "Configura..." + "Widget" + "Cartelle" + "Collegamenti" + "Sfondi" + "Questa sarà la scheda degli sfondi" + + + + + + + + "Nome cartella" "Rinomina cartella" "OK" diff --git a/res/values-ja/strings.xml b/res/values-ja/strings.xml index 021b895..70e7852 100644 --- a/res/values-ja/strings.xml +++ b/res/values-ja/strings.xml @@ -27,6 +27,19 @@ "壁紙" "アプリケーションがインストールされていません。" "設定..." + "ウィジェット" + "フォルダ" + "ショートカット" + "壁紙" + "ここが壁紙タブになります" + + + + + + + + "フォルダ名" "フォルダ名を変更" "OK" diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml index 341c7ee..5c99a17 100644 --- a/res/values-ko/strings.xml +++ b/res/values-ko/strings.xml @@ -27,6 +27,19 @@ "배경화면" "휴대전화에 설치되어 있지 않은 애플리케이션입니다." "구성..." + "위젯" + "폴더" + "바로가기" + "배경화면" + "배경화면 탭이 됩니다." + + + + + + + + "폴더 이름" "폴더 이름 바꾸기" "확인" diff --git a/res/values-nb/strings.xml b/res/values-nb/strings.xml index 54418e1..aa24d7a 100644 --- a/res/values-nb/strings.xml +++ b/res/values-nb/strings.xml @@ -27,6 +27,19 @@ "Bakgrunner" "Applikasjonen er ikke installert." "Konfigurer" + "Moduler" + "Mapper" + "Snarveier" + "Bakgrunner" + "Dette er nå bakgrunnsfanen" + + + + + + + + "Mappenavn" "Gi nytt navn til mappe" "OK" diff --git a/res/values-nl/strings.xml b/res/values-nl/strings.xml index f5ac90e..0777dea 100644 --- a/res/values-nl/strings.xml +++ b/res/values-nl/strings.xml @@ -27,6 +27,19 @@ "Achtergronden" "Deze toepassing is niet geïnstalleerd op uw telefoon." "Configureren..." + "Widgets" + "Mappen" + "Sneltoetsen" + "Achtergronden" + "Dit wordt het tabblad \'Achtergronden\'" + + + + + + + + "Mapnaam" "Naam van map wijzigen" "OK" diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml index d50a59a..33a9da7 100644 --- a/res/values-pl/strings.xml +++ b/res/values-pl/strings.xml @@ -27,6 +27,19 @@ "Tapety" "Aplikacja nie jest zainstalowana w telefonie." "Konfiguruj..." + "Widżety" + "Foldery" + "Skróty" + "Tapety" + "To będzie karta tapet" + + + + + + + + "Nazwa folderu" "Zmień nazwę folderu" "OK" diff --git a/res/values-pt-rPT/strings.xml b/res/values-pt-rPT/strings.xml index df63f30..bdee633 100644 --- a/res/values-pt-rPT/strings.xml +++ b/res/values-pt-rPT/strings.xml @@ -27,6 +27,19 @@ "Imagens de fundo" "A aplicação não está instalada no telefone." "Configurar..." + "Widgets" + "Pastas" + "Atalhos" + "Imagens de fundo" + "Isto será o separador de imagens de fundo" + + + + + + + + "Nome da pasta" "Mudar o nome da pasta" "OK" diff --git a/res/values-pt/strings.xml b/res/values-pt/strings.xml index b72f7e0..1386d35 100644 --- a/res/values-pt/strings.xml +++ b/res/values-pt/strings.xml @@ -27,6 +27,19 @@ "Papéis de parede" "O aplicativo não está instalado no seu telefone." "Configurar..." + "Widgets" + "Pastas" + "Atalhos" + "Papéis de parede" + "Esta será a guia de papéis de parede" + + + + + + + + "Nome da pasta" "Renomear pasta" "OK" diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml index b151618..60e93de 100644 --- a/res/values-ru/strings.xml +++ b/res/values-ru/strings.xml @@ -27,6 +27,19 @@ "Обои" "Приложение не установлено на телефоне." "Настроить..." + "Виджеты" + "Папки" + "Ярлыки" + "Обои" + "Это будет вкладка обоев" + + + + + + + + "Название папки" "Переименовать папку" "ОК" diff --git a/res/values-sv/strings.xml b/res/values-sv/strings.xml index 9c29ef1..f27c401 100644 --- a/res/values-sv/strings.xml +++ b/res/values-sv/strings.xml @@ -27,6 +27,19 @@ "Bakgrundsbilder" "Programmet är inte installerat på din telefon." "Konfigurera..." + "Widgetar" + "Mappar" + "Genvägar" + "Bakgrundsbilder" + "Det här kommer att vara fliken för bakgrundsbilder" + + + + + + + + "Mappnamn" "Byt namn på mapp" "OK" diff --git a/res/values-tr/strings.xml b/res/values-tr/strings.xml index 43f7520..689c186 100644 --- a/res/values-tr/strings.xml +++ b/res/values-tr/strings.xml @@ -27,6 +27,19 @@ "Duvar Kağıtları" "Uygulama telefonunuza yüklenmemiş." "Yapılandır..." + "Widget\'lar" + "Klasörler" + "Kısayollar" + "Duvar Kağıtları" + "Bu duvar kağıdı sekmesi olacaktır" + + + + + + + + "Klasör adı" "Klasörü yeniden adlandır" "Tamam" diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index 0705787..15543bc 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -27,6 +27,19 @@ "壁纸" "您的手机上未安装应用程序。" "配置..." + "窗口小部件" + "文件夹" + "快捷方式" + "壁纸" + "这将会成为壁纸标签" + + + + + + + + "文件夹名称" "重命名文件夹" "确定" diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml index de37e19..4783c74 100644 --- a/res/values-zh-rTW/strings.xml +++ b/res/values-zh-rTW/strings.xml @@ -27,6 +27,19 @@ "桌布" "應用程式未安裝到手機。" "設定..." + "小工具" + "資料夾" + "快速鍵" + "桌布" + "暫時的桌布標籤" + + + + + + + + "資料夾名稱" "重新命名資料夾" "確定" -- cgit v1.1 From 4bb4f735c80ba6baca6678f6508b3862da61313a Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Wed, 4 Aug 2010 18:46:01 -0700 Subject: small fixes to Launcher - more robust unshrink animation - catching a resource not found exception when making widget preview - added more missing copyright headers - hiding customization drawer when long press on widget - long-pressing on widget is temporarily always springloaded to zoom in to workspace screen Change-Id: I6c92877357e907d89840fecc4662f0700b96255b --- res/drawable-xlarge/all_apps_button.xml | 2 +- res/drawable-xlarge/configure_button.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'res') diff --git a/res/drawable-xlarge/all_apps_button.xml b/res/drawable-xlarge/all_apps_button.xml index 1e654f0..46bc632 100644 --- a/res/drawable-xlarge/all_apps_button.xml +++ b/res/drawable-xlarge/all_apps_button.xml @@ -1,5 +1,5 @@ - @@ -96,8 +96,7 @@ android:id="@android:id/tabhost" android:layout_width="match_parent" android:layout_height="500dip" - android:layout_gravity="bottom" - android:visibility="gone"> + android:layout_gravity="bottom"> 5 + + 700 + 700 -- cgit v1.1 From cceb91c1e905f4898b36e8e6e7d933f4cf6a2f70 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Tue, 10 Aug 2010 12:12:27 -0700 Subject: Import revised translations. Change-Id: Id7dec46f0fe6f9178dbd8ea2c0c82b843bbfaa3e --- res/values-de/strings.xml | 4 ++-- res/values-it/strings.xml | 2 +- res/values-zh-rTW/strings.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'res') diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index d1b5ae0..e512dc5 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -30,8 +30,8 @@ "Widgets" "Ordner" "Verknüpfungen" - "Hintergrundbilder" - "Dies ist der Tab \"Hintergrundbilder\"" + "Hintergründe" + "Dies ist der Tab \"Hintergründe\"" diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml index 684226d..f3fffbe3 100644 --- a/res/values-it/strings.xml +++ b/res/values-it/strings.xml @@ -29,7 +29,7 @@ "Configura..." "Widget" "Cartelle" - "Collegamenti" + "Scorciatorie" "Sfondi" "Questa sarà la scheda degli sfondi" diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml index 4783c74..0467f3b 100644 --- a/res/values-zh-rTW/strings.xml +++ b/res/values-zh-rTW/strings.xml @@ -31,7 +31,7 @@ "資料夾" "快速鍵" "桌布" - "暫時的桌布標籤" + "桌布標籤保留位" -- cgit v1.1 From 4cb3724a2c1e5f278e1531d643accc40fcd8e219 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Mon, 9 Aug 2010 21:05:32 -0700 Subject: workspace bug fixes - fixed: pressing home sometimes left workspaces in shrunken state - fixed: position of delete zone (trash icon) - fixed: workspace unshrink sometimes looked weird when coming from all apps - fixed: clicking power button and returning left workspace in shrunken state Change-Id: Ie974202926e6880ccda26ac9fe967fb587a9b7a3 --- res/layout-xlarge/launcher.xml | 21 ++++++++++----------- res/values-xlarge/dimens.xml | 3 +++ 2 files changed, 13 insertions(+), 11 deletions(-) (limited to 'res') diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 395b048..6eb9318 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -69,27 +69,26 @@ android:onClick="onClickConfigureButton" android:focusable="true" android:clickable="true" /> - + 20dip + + + 6dip -- cgit v1.1 From da4dc5edd82a40c3950fc8221c6363b9826204aa Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Tue, 10 Aug 2010 22:11:35 -0700 Subject: -> Set grid to 8x7 with proper spacing for landscape/portrait -> Added a button to the top left of Launcher which switches between landscape and portrait. For testing purposes only. Change-Id: I01f8cfcf92c8ba7727eeba0e59a0b8ff055598fe --- res/drawable-xlarge/rotate_button.xml | 20 +++++++++++++++ res/drawable-xlarge/rotate_button_normal.png | Bin 0 -> 6252 bytes res/drawable-xlarge/rotate_button_pressed.png | Bin 0 -> 6388 bytes res/layout-xlarge-land/workspace_screen.xml | 30 +++++++++++++++++++++++ res/layout-xlarge-port/workspace_screen.xml | 30 +++++++++++++++++++++++ res/layout-xlarge/launcher.xml | 34 ++++++++++++++++++++------ res/layout-xlarge/workspace_screen.xml | 30 ----------------------- 7 files changed, 106 insertions(+), 38 deletions(-) create mode 100644 res/drawable-xlarge/rotate_button.xml create mode 100644 res/drawable-xlarge/rotate_button_normal.png create mode 100644 res/drawable-xlarge/rotate_button_pressed.png create mode 100644 res/layout-xlarge-land/workspace_screen.xml create mode 100644 res/layout-xlarge-port/workspace_screen.xml delete mode 100644 res/layout-xlarge/workspace_screen.xml (limited to 'res') diff --git a/res/drawable-xlarge/rotate_button.xml b/res/drawable-xlarge/rotate_button.xml new file mode 100644 index 0000000..c29efa4 --- /dev/null +++ b/res/drawable-xlarge/rotate_button.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/res/drawable-xlarge/rotate_button_normal.png b/res/drawable-xlarge/rotate_button_normal.png new file mode 100644 index 0000000..fd014aa Binary files /dev/null and b/res/drawable-xlarge/rotate_button_normal.png differ diff --git a/res/drawable-xlarge/rotate_button_pressed.png b/res/drawable-xlarge/rotate_button_pressed.png new file mode 100644 index 0000000..29fb8d9 Binary files /dev/null and b/res/drawable-xlarge/rotate_button_pressed.png differ diff --git a/res/layout-xlarge-land/workspace_screen.xml b/res/layout-xlarge-land/workspace_screen.xml new file mode 100644 index 0000000..15fc3b1 --- /dev/null +++ b/res/layout-xlarge-land/workspace_screen.xml @@ -0,0 +1,30 @@ + + + + diff --git a/res/layout-xlarge-port/workspace_screen.xml b/res/layout-xlarge-port/workspace_screen.xml new file mode 100644 index 0000000..eb7620c --- /dev/null +++ b/res/layout-xlarge-port/workspace_screen.xml @@ -0,0 +1,30 @@ + + + + diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 6eb9318..a1879ef 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -36,7 +36,7 @@ android:layout_height="match_parent" launcher:defaultScreen="2" launcher:cellCountX="8" - launcher:cellCountY="4"> + launcher:cellCountY="7"> @@ -45,21 +45,39 @@ - + + + + - android:onClick="onClickSearchButton" - android:focusable="true" - android:clickable="true" - android:layout_gravity="top|left"/> + - - - -- cgit v1.1 From 321e9ee68848d9e782fd557f69cc070308ffbc9c Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Mon, 9 Aug 2010 13:37:56 -0700 Subject: Creating generic Workspace/CellLayout for paged views in Launcher. Adding SimpleWorkspace, SimpleCellLayout and an AllApps implementation of the SimpleWorkspace. Making SimpleWorkspace support content with smaller dimensions than the workspace dimensions itself. Temporary change to AllApps tabs styling until we get new assets for tabs in general. Change-Id: Ibe3c56603223853d232816b6695e4ddd757857ba --- .../all_apps_paged_view_application.xml | 29 ++++++++++++++++ res/layout-xlarge/all_apps_tabbed.xml | 39 ++++++++-------------- res/values/attrs.xml | 9 +++++ 3 files changed, 51 insertions(+), 26 deletions(-) create mode 100644 res/layout-xlarge/all_apps_paged_view_application.xml (limited to 'res') diff --git a/res/layout-xlarge/all_apps_paged_view_application.xml b/res/layout-xlarge/all_apps_paged_view_application.xml new file mode 100644 index 0000000..98c2737 --- /dev/null +++ b/res/layout-xlarge/all_apps_paged_view_application.xml @@ -0,0 +1,29 @@ + + + + diff --git a/res/layout-xlarge/all_apps_tabbed.xml b/res/layout-xlarge/all_apps_tabbed.xml index 0842fd0..dbe192c 100644 --- a/res/layout-xlarge/all_apps_tabbed.xml +++ b/res/layout-xlarge/all_apps_tabbed.xml @@ -13,44 +13,31 @@ See the License for the specific language governing permissions and limitations under the License. --> - + + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:tabStripEnabled="false" + android:paddingBottom="10dp" /> - - - - + cellCountX="8" + cellCountY="4"> + diff --git a/res/values/attrs.xml b/res/values/attrs.xml index be27288..09fb0da 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -55,6 +55,15 @@ + + + + + + + + -- cgit v1.1 From 80baf5a6b3c62a62265f626d43d1167783c94131 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Mon, 9 Aug 2010 16:03:15 -0700 Subject: Adding paging for the widget/shortcut/folder customization area and fixing bugs. Adding pages for customization drawer with initial implementation of proposed flow layout for widgets. Fixes for keeping all apps, and widgets in sync with Launcher Model, optimizations for reloading all apps pages when invalidating. Adding some animations for tab transitions and feedback when long pressing to add certain items. Change-Id: I8d51749f3a91c964bed35681f3a9192200b0d93e --- res/anim/paged_view_click_feedback.xml | 23 +++++++++++++++ res/drawable/default_widget_preview.9.png | Bin 541 -> 3976 bytes .../all_apps_paged_view_application.xml | 3 +- res/layout-xlarge/customize_paged_view_item.xml | 30 +++++++++++++++++++ .../customize_paged_view_wallpaper_placeholder.xml | 32 +++++++++++++++++++++ res/layout-xlarge/customize_paged_view_widget.xml | 30 +++++++++++++++++++ res/layout-xlarge/launcher.xml | 30 ++++++------------- 7 files changed, 125 insertions(+), 23 deletions(-) create mode 100644 res/anim/paged_view_click_feedback.xml create mode 100644 res/layout-xlarge/customize_paged_view_item.xml create mode 100644 res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml create mode 100644 res/layout-xlarge/customize_paged_view_widget.xml (limited to 'res') diff --git a/res/anim/paged_view_click_feedback.xml b/res/anim/paged_view_click_feedback.xml new file mode 100644 index 0000000..786d974 --- /dev/null +++ b/res/anim/paged_view_click_feedback.xml @@ -0,0 +1,23 @@ + + + + diff --git a/res/drawable/default_widget_preview.9.png b/res/drawable/default_widget_preview.9.png index e966b1b..b3ddada 100644 Binary files a/res/drawable/default_widget_preview.9.png and b/res/drawable/default_widget_preview.9.png differ diff --git a/res/layout-xlarge/all_apps_paged_view_application.xml b/res/layout-xlarge/all_apps_paged_view_application.xml index 98c2737..7448765 100644 --- a/res/layout-xlarge/all_apps_paged_view_application.xml +++ b/res/layout-xlarge/all_apps_paged_view_application.xml @@ -18,12 +18,13 @@ android:id="@+id/name" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_gravity="center_horizontal" + android:gravity="center_horizontal" android:textColor="#FFFFFFFF" android:shadowColor="#FF000000" android:shadowDx="0.0" android:shadowDy="1.0" + android:shadowRadius="1.0" android:maxLines="2" android:fadingEdge="horizontal" /> diff --git a/res/layout-xlarge/customize_paged_view_item.xml b/res/layout-xlarge/customize_paged_view_item.xml new file mode 100644 index 0000000..7448765 --- /dev/null +++ b/res/layout-xlarge/customize_paged_view_item.xml @@ -0,0 +1,30 @@ + + + + diff --git a/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml b/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml new file mode 100644 index 0000000..df73bcd --- /dev/null +++ b/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml @@ -0,0 +1,32 @@ + + + + diff --git a/res/layout-xlarge/customize_paged_view_widget.xml b/res/layout-xlarge/customize_paged_view_widget.xml new file mode 100644 index 0000000..7448765 --- /dev/null +++ b/res/layout-xlarge/customize_paged_view_widget.xml @@ -0,0 +1,30 @@ + + + + diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index a1879ef..3e00381 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -26,7 +26,7 @@ layout="@layout/all_apps_tabbed" android:id="@+id/all_apps_view" android:layout_width="match_parent" - android:layout_height="500dip" + android:layout_height="550dip" android:layout_gravity="top"/> @@ -112,38 +112,24 @@ + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:tabStripEnabled="false" + android:paddingBottom="10dp" /> - - - - -- cgit v1.1 From b2c838c2ebe8c05a5c031e6b202cb192f238ac38 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Mon, 16 Aug 2010 20:48:05 -0700 Subject: removed the temp screen rotation button Change-Id: I26d5a840270065e43d4f66b3c53c7e9d52ce4200 --- res/layout-xlarge/launcher.xml | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) (limited to 'res') diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 3e00381..8133853 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -45,32 +45,16 @@ - - - - - + android:onClick="onClickSearchButton" + android:focusable="true" + android:clickable="true"/> Date: Wed, 18 Aug 2010 11:38:46 -0700 Subject: Add a default wallpaper for xlarge devices. Change-Id: Icaf3fc953ca6d469d17620c0aec789e7f60c924e --- res/drawable-xlarge/wallpaper_leaf.jpg | Bin 0 -> 938236 bytes res/drawable-xlarge/wallpaper_leaf_small.jpg | Bin 0 -> 21537 bytes res/values-xlarge/wallpapers.xml | 22 ++++++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 res/drawable-xlarge/wallpaper_leaf.jpg create mode 100644 res/drawable-xlarge/wallpaper_leaf_small.jpg create mode 100644 res/values-xlarge/wallpapers.xml (limited to 'res') diff --git a/res/drawable-xlarge/wallpaper_leaf.jpg b/res/drawable-xlarge/wallpaper_leaf.jpg new file mode 100644 index 0000000..afb0acc Binary files /dev/null and b/res/drawable-xlarge/wallpaper_leaf.jpg differ diff --git a/res/drawable-xlarge/wallpaper_leaf_small.jpg b/res/drawable-xlarge/wallpaper_leaf_small.jpg new file mode 100644 index 0000000..48e9f3e Binary files /dev/null and b/res/drawable-xlarge/wallpaper_leaf_small.jpg differ diff --git a/res/values-xlarge/wallpapers.xml b/res/values-xlarge/wallpapers.xml new file mode 100644 index 0000000..90a6af7 --- /dev/null +++ b/res/values-xlarge/wallpapers.xml @@ -0,0 +1,22 @@ + + + + + + wallpaper_leaf + + -- cgit v1.1 From fb5015dcccd2d43984e26f663bee82611ef27e0f Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Wed, 18 Aug 2010 16:26:33 -0700 Subject: Import Romansh translations. Change-Id: Ib819d3f3673a8e941df24780db808cf82b146ab6 --- res/values-rm/strings.xml | 85 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 res/values-rm/strings.xml (limited to 'res') diff --git a/res/values-rm/strings.xml b/res/values-rm/strings.xml new file mode 100644 index 0000000..505f7ca --- /dev/null +++ b/res/values-rm/strings.xml @@ -0,0 +1,85 @@ + + + + + "Lantschader" + "Applicaziuns da basa dad Android" + "Ordinatur" + "Tscherner in fund davos" + "Definir in fund davos" + "Maletgs da fund davos" + "L\'applicaziun n\'è betg installada sin quest telefonin." + "Configurar…" + + + + + + + + + + + + + + + + + + + "Num da l\'ordinatur" + "Renumnar l\'ordinatur" + "OK" + "Interrumper" + "Agiuntar al visur da partenza" + "Applicaziuns" + "Scursanidas" + "Nov ordinatur" + "Ordinatur" + "Widgets" + "Funds davos" + "Ordinatur" + "Ura" + "Rom da maletgs" + "Nagin spazi liber sin il visur da partenza." + "Creà ina scursanida \"%s\"." + "La scursanida \"%s\" è vegnida stizzada." + "La scursanida \"%s\" exista gia." + "Tscherner ina cumbinaziun da tastas" + "Tscherner l\'ordinatur" + "Tut las applicaziuns" + "Pagina da partenza" + "Agiuntar" + "Fund davos" + "Tschertgar" + "Avis" + "Moviments" + "Parameters" + "Installar scursanidas" + "Pussibilitescha ch\'ina applicaziun agiunta scursanidas senza l\'intervenziun da l\'utilisader." + "deinstallar scursanidas" + "Pussibilitescha ch\'ina applicaziun possia stizzar scursanidas senza ina intervenziun da l\'utilisader." + "Leger ils parameters e las scursanidas da la pagina da partenza" + "Pussibilitescha ch\'ina applicaziun possia leger ils parameters e las scursanidas da la pagina da partenza." + "Definir ils parameters e las scursanidas per la pagina da partenza" + "Pussibilitescha ch\'ina applicaziun possia midar ils parameters e las scursanidas sin la pagina da partenza." + "Problems cun chargiar il widget" + -- cgit v1.1 From 4ed6278e518cc6894cb150b606382e8e6a012599 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Tue, 17 Aug 2010 15:11:18 -0700 Subject: Implement button to get application info for an app shortcut. For now, it's just a drag target like the delete zone. Once all apps and the home screen support a selection mode, this (and delete) will be implemented as buttons in the Contextual Action Bar. Change-Id: I6bf43d03eefda672ea34c583a7021137da22b184 --- res/drawable-xlarge/info_button.png | Bin 0 -> 1651 bytes res/layout-xlarge/launcher.xml | 30 ++++++++++++++++++++++++------ res/values-xlarge/colors.xml | 21 +++++++++++++++++++++ 3 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 res/drawable-xlarge/info_button.png create mode 100644 res/values-xlarge/colors.xml (limited to 'res') diff --git a/res/drawable-xlarge/info_button.png b/res/drawable-xlarge/info_button.png new file mode 100644 index 0000000..5080f6a Binary files /dev/null and b/res/drawable-xlarge/info_button.png differ diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 8133853..4785b0c 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -63,34 +63,52 @@ android:layout_gravity="top|right"> + + + - + + + + #A50000FE + \ No newline at end of file -- cgit v1.1 From b3347bb9f4ccf41fb7043bca66c3a565bde1083b Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Thu, 19 Aug 2010 14:51:28 -0700 Subject: Adding holographic outline for paged items (sans widgets). Fixing possible null ptr exception in Launcher. Change-Id: Ie625a6503299cf122e5c22852846d59e66f77414 --- res/layout-xlarge/all_apps_paged_view_application.xml | 4 +++- res/layout-xlarge/customize_paged_view_item.xml | 4 +++- res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml | 2 ++ res/layout-xlarge/customize_paged_view_widget.xml | 2 ++ 4 files changed, 10 insertions(+), 2 deletions(-) (limited to 'res') diff --git a/res/layout-xlarge/all_apps_paged_view_application.xml b/res/layout-xlarge/all_apps_paged_view_application.xml index 7448765..55779e5 100644 --- a/res/layout-xlarge/all_apps_paged_view_application.xml +++ b/res/layout-xlarge/all_apps_paged_view_application.xml @@ -14,13 +14,15 @@ limitations under the License. --> - - Date: Thu, 19 Aug 2010 13:52:27 -0700 Subject: added support for dragging widgets and app icons to mini screens - gave mini screens a rounded rect background - mini screens change color when dragged over - added a way to specify the active region of dragged items, to allow for clipping of whitespace at borders - fixed: feedback while dragging was often one cell off - fixed: bug when adding to almost-full screen - removed unused classes Change-Id: I2fbd2aaaee6831b288cca8dec75e7b446068e8d1 --- res/drawable-xlarge/mini_home_screen_bg.9.png | Bin 0 -> 1851 bytes res/drawable-xlarge/mini_home_screen_bg_hover.9.png | Bin 0 -> 4940 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 res/drawable-xlarge/mini_home_screen_bg.9.png create mode 100644 res/drawable-xlarge/mini_home_screen_bg_hover.9.png (limited to 'res') diff --git a/res/drawable-xlarge/mini_home_screen_bg.9.png b/res/drawable-xlarge/mini_home_screen_bg.9.png new file mode 100644 index 0000000..fd989c1 Binary files /dev/null and b/res/drawable-xlarge/mini_home_screen_bg.9.png differ diff --git a/res/drawable-xlarge/mini_home_screen_bg_hover.9.png b/res/drawable-xlarge/mini_home_screen_bg_hover.9.png new file mode 100644 index 0000000..331ad54 Binary files /dev/null and b/res/drawable-xlarge/mini_home_screen_bg_hover.9.png differ -- cgit v1.1 From 6b509c1fd62a39916bb957eac07917161f549206 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Mon, 23 Aug 2010 15:08:16 -0700 Subject: Add a market button and add toolbar button animations. Also clean up a lot of the animation code to be more centralized. --- res/drawable-xlarge/info_button.png | Bin 1651 -> 2591 bytes res/drawable-xlarge/trashcan.png | Bin 0 -> 3087 bytes res/drawable-xlarge/trashcan_hover.png | Bin 0 -> 4892 bytes res/layout-xlarge/launcher.xml | 49 ++++++++++++++++++++------------- res/values-xlarge/config.xml | 20 ++++++++++---- res/values-xlarge/dimens.xml | 5 ++-- 6 files changed, 47 insertions(+), 27 deletions(-) create mode 100644 res/drawable-xlarge/trashcan.png create mode 100644 res/drawable-xlarge/trashcan_hover.png (limited to 'res') diff --git a/res/drawable-xlarge/info_button.png b/res/drawable-xlarge/info_button.png index 5080f6a..e3b27f4 100644 Binary files a/res/drawable-xlarge/info_button.png and b/res/drawable-xlarge/info_button.png differ diff --git a/res/drawable-xlarge/trashcan.png b/res/drawable-xlarge/trashcan.png new file mode 100644 index 0000000..284543c Binary files /dev/null and b/res/drawable-xlarge/trashcan.png differ diff --git a/res/drawable-xlarge/trashcan_hover.png b/res/drawable-xlarge/trashcan_hover.png new file mode 100644 index 0000000..38695cd Binary files /dev/null and b/res/drawable-xlarge/trashcan_hover.png differ diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 4785b0c..3add911 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -45,22 +45,23 @@ - - + android:layout_gravity="top" + android:padding="@dimen/toolbar_padding"> + + + + + @@ -103,9 +115,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@id/configure_button" - android:layout_centerVertical="true" - android:visibility="gone" + android:visibility="gone" android:focusable="true" android:clickable="true" /> diff --git a/res/values-xlarge/config.xml b/res/values-xlarge/config.xml index 1a9ecc6..9b1bc0d 100644 --- a/res/values-xlarge/config.xml +++ b/res/values-xlarge/config.xml @@ -1,4 +1,6 @@ + + 350 @@ -10,12 +12,18 @@ 5 - - 700 + + 200 - + + 700 700 - - 700 - \ No newline at end of file + + + 350 + 350 + diff --git a/res/values-xlarge/dimens.xml b/res/values-xlarge/dimens.xml index c9bd836..1010390 100644 --- a/res/values-xlarge/dimens.xml +++ b/res/values-xlarge/dimens.xml @@ -25,6 +25,7 @@ 20dip - - 6dip + 10dip + + 20dip -- cgit v1.1 From ceae05d573255a0143981888e5d257b5891e3925 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Mon, 30 Aug 2010 10:40:53 -0700 Subject: Add a market button to the toolbar. We determine the default app market activity by resolving an intent, and fetch the icon from the activity's meta-data. --- res/drawable-xlarge/app_market_generic.png | Bin 0 -> 2750 bytes res/layout-xlarge/launcher.xml | 1 + 2 files changed, 1 insertion(+) create mode 100644 res/drawable-xlarge/app_market_generic.png (limited to 'res') diff --git a/res/drawable-xlarge/app_market_generic.png b/res/drawable-xlarge/app_market_generic.png new file mode 100644 index 0000000..0ceaeef Binary files /dev/null and b/res/drawable-xlarge/app_market_generic.png differ diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 3add911..3b39fd1 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -83,6 +83,7 @@ android:layout_height="wrap_content" android:layout_alignLeft="@id/all_apps_button" + android:onClick="onClickAppMarketButton" android:focusable="false" android:clickable="false" android:visibility="gone"/> -- cgit v1.1 From 39670182be72e981cc7c26d9099f6e9636d27411 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Fri, 3 Sep 2010 16:25:12 -0700 Subject: For now, just show a toast when user tries to delete a system app. --- res/values/strings.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'res') diff --git a/res/values/strings.xml b/res/values/strings.xml index 0a704f8..392584c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -168,4 +168,6 @@ http://www.google.com/m?client=ms-{CID}&source=android-home-hotseat + + This is a system application and cannot be uninstalled. -- cgit v1.1 From 9f7aec8d4317d0407a41e12f236c962b225cb4c3 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Mon, 6 Sep 2010 11:03:37 -0700 Subject: Implement selection mode for All Apps with delete and info actions. --- res/drawable-xlarge/info_button.png | Bin 2591 -> 2315 bytes res/drawable-xlarge/trashcan.png | Bin 3087 -> 2516 bytes res/drawable-xlarge/trashcan_hover.png | Bin 4892 -> 3582 bytes res/layout-xlarge/all_apps_tabbed.xml | 3 ++- res/layout-xlarge/launcher.xml | 18 +++++++++--------- res/values-xlarge/styles.xml | 5 +++++ res/values/strings.xml | 11 +++++++++++ res/values/styles.xml | 5 ++++- 8 files changed, 31 insertions(+), 11 deletions(-) (limited to 'res') diff --git a/res/drawable-xlarge/info_button.png b/res/drawable-xlarge/info_button.png index e3b27f4..253cdf7 100644 Binary files a/res/drawable-xlarge/info_button.png and b/res/drawable-xlarge/info_button.png differ diff --git a/res/drawable-xlarge/trashcan.png b/res/drawable-xlarge/trashcan.png index 284543c..22134b4 100644 Binary files a/res/drawable-xlarge/trashcan.png and b/res/drawable-xlarge/trashcan.png differ diff --git a/res/drawable-xlarge/trashcan_hover.png b/res/drawable-xlarge/trashcan_hover.png index 38695cd..3ac6922 100644 Binary files a/res/drawable-xlarge/trashcan_hover.png and b/res/drawable-xlarge/trashcan_hover.png differ diff --git a/res/layout-xlarge/all_apps_tabbed.xml b/res/layout-xlarge/all_apps_tabbed.xml index dbe192c..5a43361 100644 --- a/res/layout-xlarge/all_apps_tabbed.xml +++ b/res/layout-xlarge/all_apps_tabbed.xml @@ -15,7 +15,8 @@ --> + android:background="#30000000" + android:paddingTop="?android:attr/windowActionBarSize"> @@ -48,15 +49,14 @@ + android:layout_height="?android:attr/windowActionBarSize" + android:layout_gravity="top"> + + + + -- cgit v1.1 From 031e10649ac2d511b8f9fbe1177f852c78f86289 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Wed, 8 Sep 2010 14:30:17 -0700 Subject: Add CHAR_LIMIT to strings. --- res/values/strings.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'res') diff --git a/res/values/strings.xml b/res/values/strings.xml index a009863..3c1b79c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -56,13 +56,13 @@ This will be the wallpapers tab - + All - + Apps - + Games - + Downloaded -- cgit v1.1 From 5aa323f3c9cc8580335f5594ea8900fe33c00fbc Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 8 Sep 2010 12:05:15 -0700 Subject: Updating assets for toolbar buttons, setting new default wallpaper. Fixing small namespace issue where PagedView attributes weren't actually being respected. Change-Id: Id260fae6278b616b446da1ce04ec18b11ed0bf45 --- res/drawable-xlarge/all_apps_button_normal.png | Bin 3713 -> 698 bytes res/drawable-xlarge/all_apps_button_pressed.png | Bin 3467 -> 3606 bytes res/drawable-xlarge/configure_button_normal.png | Bin 4228 -> 416 bytes res/drawable-xlarge/configure_button_pressed.png | Bin 3718 -> 2748 bytes res/drawable-xlarge/glow_wallpaper.png | Bin 0 -> 782067 bytes res/drawable-xlarge/glow_wallpaper_small.png | Bin 0 -> 11585 bytes res/drawable-xlarge/search_button_normal.png | Bin 6234 -> 1067 bytes res/drawable-xlarge/search_button_pressed.png | Bin 5798 -> 3706 bytes res/drawable-xlarge/trashcan.png | Bin 2516 -> 906 bytes res/drawable-xlarge/trashcan_hover.png | Bin 3582 -> 542 bytes res/layout-xlarge/all_apps_tabbed.xml | 5 +++-- res/layout-xlarge/launcher.xml | 2 ++ res/values-xlarge/wallpapers.xml | 2 +- 13 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 res/drawable-xlarge/glow_wallpaper.png create mode 100644 res/drawable-xlarge/glow_wallpaper_small.png (limited to 'res') diff --git a/res/drawable-xlarge/all_apps_button_normal.png b/res/drawable-xlarge/all_apps_button_normal.png index 095ce63..e1c8b7d 100644 Binary files a/res/drawable-xlarge/all_apps_button_normal.png and b/res/drawable-xlarge/all_apps_button_normal.png differ diff --git a/res/drawable-xlarge/all_apps_button_pressed.png b/res/drawable-xlarge/all_apps_button_pressed.png index 50e4735..9dcfaa5 100644 Binary files a/res/drawable-xlarge/all_apps_button_pressed.png and b/res/drawable-xlarge/all_apps_button_pressed.png differ diff --git a/res/drawable-xlarge/configure_button_normal.png b/res/drawable-xlarge/configure_button_normal.png index 066f492..b11c2a8 100644 Binary files a/res/drawable-xlarge/configure_button_normal.png and b/res/drawable-xlarge/configure_button_normal.png differ diff --git a/res/drawable-xlarge/configure_button_pressed.png b/res/drawable-xlarge/configure_button_pressed.png index 536ed7c..70db9b7 100644 Binary files a/res/drawable-xlarge/configure_button_pressed.png and b/res/drawable-xlarge/configure_button_pressed.png differ diff --git a/res/drawable-xlarge/glow_wallpaper.png b/res/drawable-xlarge/glow_wallpaper.png new file mode 100644 index 0000000..eb29449 Binary files /dev/null and b/res/drawable-xlarge/glow_wallpaper.png differ diff --git a/res/drawable-xlarge/glow_wallpaper_small.png b/res/drawable-xlarge/glow_wallpaper_small.png new file mode 100644 index 0000000..f83fc60 Binary files /dev/null and b/res/drawable-xlarge/glow_wallpaper_small.png differ diff --git a/res/drawable-xlarge/search_button_normal.png b/res/drawable-xlarge/search_button_normal.png index 3a3045a..b172074 100644 Binary files a/res/drawable-xlarge/search_button_normal.png and b/res/drawable-xlarge/search_button_normal.png differ diff --git a/res/drawable-xlarge/search_button_pressed.png b/res/drawable-xlarge/search_button_pressed.png index 8ae6b16..c2926c8 100644 Binary files a/res/drawable-xlarge/search_button_pressed.png and b/res/drawable-xlarge/search_button_pressed.png differ diff --git a/res/drawable-xlarge/trashcan.png b/res/drawable-xlarge/trashcan.png index 22134b4..839d4b8 100644 Binary files a/res/drawable-xlarge/trashcan.png and b/res/drawable-xlarge/trashcan.png differ diff --git a/res/drawable-xlarge/trashcan_hover.png b/res/drawable-xlarge/trashcan_hover.png index 3ac6922..cc2fde7 100644 Binary files a/res/drawable-xlarge/trashcan_hover.png and b/res/drawable-xlarge/trashcan_hover.png differ diff --git a/res/layout-xlarge/all_apps_tabbed.xml b/res/layout-xlarge/all_apps_tabbed.xml index 5a43361..10d99a0 100644 --- a/res/layout-xlarge/all_apps_tabbed.xml +++ b/res/layout-xlarge/all_apps_tabbed.xml @@ -15,6 +15,7 @@ --> + launcher:cellCountX="7" + launcher:cellCountY="4"> diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 7018b3e..3e13933 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -58,6 +58,7 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="left" + android:layout_marginLeft="@dimen/toolbar_button_spacing" android:onClick="onClickSearchButton" android:focusable="true" @@ -70,6 +71,7 @@ android:layout_height="match_parent" android:layout_alignParentRight="true" android:layout_marginLeft="@dimen/toolbar_button_spacing" + android:layout_marginRight="@dimen/toolbar_button_spacing" android:onClick="onClickAllAppsButton" android:focusable="true" diff --git a/res/values-xlarge/wallpapers.xml b/res/values-xlarge/wallpapers.xml index 90a6af7..f22654d 100644 --- a/res/values-xlarge/wallpapers.xml +++ b/res/values-xlarge/wallpapers.xml @@ -17,6 +17,6 @@ - wallpaper_leaf + glow_wallpaper -- cgit v1.1 From a985e598f6071f4caca15ba3cb6b2cd3e38b217d Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Thu, 9 Sep 2010 11:23:48 -0700 Subject: Applying fake perspective transform to the home screen previews Change-Id: I2092fd963804eceaf0117bcb6d118d83e0da3573 --- res/values-xlarge/dimens.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'res') diff --git a/res/values-xlarge/dimens.xml b/res/values-xlarge/dimens.xml index 1010390..9c65897 100644 --- a/res/values-xlarge/dimens.xml +++ b/res/values-xlarge/dimens.xml @@ -18,9 +18,9 @@ 76dip 76dip - - 10dip + 0dip 20dip -- cgit v1.1 From 4347705a09dc0de776073a2500cb3d695aee1b79 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Thu, 9 Sep 2010 12:09:25 -0700 Subject: making mini screen backgrounds dark, and temporarily disabling dimmed items on mini screens to work better with new dark wallpaper --- res/drawable-xlarge/mini_home_screen_bg.9.png | Bin 1851 -> 7288 bytes res/drawable-xlarge/mini_home_screen_bg_hover.9.png | Bin 4940 -> 7069 bytes 2 files changed, 0 insertions(+), 0 deletions(-) (limited to 'res') diff --git a/res/drawable-xlarge/mini_home_screen_bg.9.png b/res/drawable-xlarge/mini_home_screen_bg.9.png index fd989c1..ecbbcb4 100644 Binary files a/res/drawable-xlarge/mini_home_screen_bg.9.png and b/res/drawable-xlarge/mini_home_screen_bg.9.png differ diff --git a/res/drawable-xlarge/mini_home_screen_bg_hover.9.png b/res/drawable-xlarge/mini_home_screen_bg_hover.9.png index 331ad54..48af564 100644 Binary files a/res/drawable-xlarge/mini_home_screen_bg_hover.9.png and b/res/drawable-xlarge/mini_home_screen_bg_hover.9.png differ -- cgit v1.1 From 201058d9c9866f3328291e495bcdfbeebe76d632 Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Thu, 9 Sep 2010 17:57:26 -0700 Subject: Updated for framework changes in ActionBar style attributes Change-Id: I8e9050a784b4b20398309e6d279ab17652a29ade --- res/layout-xlarge/all_apps_tabbed.xml | 2 +- res/layout-xlarge/launcher.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'res') diff --git a/res/layout-xlarge/all_apps_tabbed.xml b/res/layout-xlarge/all_apps_tabbed.xml index 10d99a0..5aca954 100644 --- a/res/layout-xlarge/all_apps_tabbed.xml +++ b/res/layout-xlarge/all_apps_tabbed.xml @@ -17,7 +17,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" android:background="#30000000" - android:paddingTop="?android:attr/windowActionBarSize"> + android:paddingTop="?android:attr/actionBarSize"> @@ -49,7 +49,7 @@ Date: Fri, 10 Sep 2010 15:45:11 -0700 Subject: Import revised translations. Change-Id: I79529f0bed3e5318b9d9a49da801ed1e6072bbda --- res/values-cs/strings.xml | 8 ++++++++ res/values-da/strings.xml | 8 ++++++++ res/values-de/strings.xml | 8 ++++++++ res/values-el/strings.xml | 8 ++++++++ res/values-es-rUS/strings.xml | 8 ++++++++ res/values-es/strings.xml | 8 ++++++++ res/values-fr/strings.xml | 8 ++++++++ res/values-it/strings.xml | 8 ++++++++ res/values-ja/strings.xml | 8 ++++++++ res/values-ko/strings.xml | 8 ++++++++ res/values-nb/strings.xml | 8 ++++++++ res/values-nl/strings.xml | 8 ++++++++ res/values-pl/strings.xml | 8 ++++++++ res/values-pt-rPT/strings.xml | 8 ++++++++ res/values-pt/strings.xml | 8 ++++++++ res/values-rm/strings.xml | 8 ++++++++ res/values-ru/strings.xml | 8 ++++++++ res/values-sv/strings.xml | 8 ++++++++ res/values-tr/strings.xml | 8 ++++++++ res/values-zh-rCN/strings.xml | 8 ++++++++ res/values-zh-rTW/strings.xml | 8 ++++++++ 21 files changed, 168 insertions(+) (limited to 'res') diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml index 011ea1e..c091034 100644 --- a/res/values-cs/strings.xml +++ b/res/values-cs/strings.xml @@ -68,6 +68,12 @@ "Oznámení" "Gesta" "Nastavení" + + + + + + "instalovat zástupce" "Povoluje aplikaci přidat zástupce bez zásahu uživatele." "odinstalovat zástupce" @@ -77,4 +83,6 @@ "zápis nastavení a odkazů plochy" "Povoluje aplikaci změnit nastavení a odkazy plochy." "Problém s načtením widgetu" + + diff --git a/res/values-da/strings.xml b/res/values-da/strings.xml index 08ebc63..045b834 100644 --- a/res/values-da/strings.xml +++ b/res/values-da/strings.xml @@ -68,6 +68,12 @@ "Meddelelser" "Gestus" "Indstillinger" + + + + + + "installer genveje" "Tillader, at et program tilføjer genveje uden brugerindgriben." "afinstaller genveje" @@ -77,4 +83,6 @@ "skriv indstillinger og genveje for Start" "Tillader, at et program ændrer indstillingerne og genvejene i Start." "Der er problemer med indlæsning af widget" + + diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index e512dc5..a3367d2 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -68,6 +68,12 @@ "Benachrichtigungen" "Bewegungen" "Einstellungen" + + + + + + "Verknüpfungen installieren" "Ermöglicht einer Anwendung das Hinzufügen von Verknüpfungen ohne Eingriff des Nutzers." "Verknüpfungen deinstallieren" @@ -77,4 +83,6 @@ "Einstellungen und Shortcuts für Startseite schreiben" "Ermöglicht einer Anwendung, die Einstellungen und Shortcuts auf der Startseite zu ändern." "Problem beim Laden des Widgets" + + diff --git a/res/values-el/strings.xml b/res/values-el/strings.xml index eb8097f..609a193 100644 --- a/res/values-el/strings.xml +++ b/res/values-el/strings.xml @@ -68,6 +68,12 @@ "Ειδοποιήσεις" "Χειρονομίες" "Ρυθμίσεις" + + + + + + "εγκατάσταση συντομεύσεων" "Επιτρέπει σε μια εφαρμογή την προσθήκη συντομεύσεων χωρίς την παρέμβαση του χρήστη." "κατάργηση εγκατάστασης συντομεύσεων" @@ -77,4 +83,6 @@ "εγγραφή ρυθμίσεων και συντομεύσεων αρχικής οθόνης" "Επιτρέπει σε μια εφαρμογή την αλλαγή των ρυθμίσεων και των συντομεύσεων στην αρχική οθόνη." "Παρουσιάστηκε πρόβλημα στη φόρτωση του γραφικού στοιχείου" + + diff --git a/res/values-es-rUS/strings.xml b/res/values-es-rUS/strings.xml index 5a40e3a..4f8b890 100644 --- a/res/values-es-rUS/strings.xml +++ b/res/values-es-rUS/strings.xml @@ -68,6 +68,12 @@ "Notificaciones" "Gestos" "Configuración" + + + + + + "instalar accesos directos" "Permite a una aplicación agregar accesos directos sin intervención del usuario." "desinstalar papel tapiz" @@ -77,4 +83,6 @@ "escribir configuración y accesos directos de la página principal" "Permite a una aplicación cambiar la configuración y los accesos directos de la página principal." "Problema al cargar el widget" + + diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml index 9772526..f6c5cf7 100644 --- a/res/values-es/strings.xml +++ b/res/values-es/strings.xml @@ -68,6 +68,12 @@ "Notificaciones" "Gestos" "Ajustes" + + + + + + "instalar accesos directos" "Permite que una aplicación añada accesos directos sin intervención del usuario." "desinstalar accesos directos" @@ -77,4 +83,6 @@ "escribir información de accesos directos y de configuración del escritorio" "Permite que una aplicación modifique la configuración y los accesos directos de la página de inicio." "Problema al cargar el widget" + + diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml index 6d2d638..f1339fd 100644 --- a/res/values-fr/strings.xml +++ b/res/values-fr/strings.xml @@ -68,6 +68,12 @@ "Notifications" "Gestes" "Paramètres" + + + + + + "installer des raccourcis" "Permet à une application d\'ajouter des raccourcis sans l\'intervention de l\'utilisateur." "désinstaller les raccourcis" @@ -77,4 +83,6 @@ "Enregistrer les paramètres de la page d\'accueil et des raccourcis" "Permet à une application de modifier les paramètres et les raccourcis de la page d\'accueil." "Problème lors du chargement du widget" + + diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml index f3fffbe3..fa2624b 100644 --- a/res/values-it/strings.xml +++ b/res/values-it/strings.xml @@ -68,6 +68,12 @@ "Notifiche" "Gesti" "Impostazioni" + + + + + + "aggiungere scorciatorie" "Consente a un\'applicazione di aggiungere scorciatoie automaticamente." "eliminare scorciatoie" @@ -77,4 +83,6 @@ "creare impostazioni e scorciatoie in Home" "Consente a un\'applicazione di modificare le impostazioni e le scorciatoie in Home." "Errore durante il caricamento del widget" + + diff --git a/res/values-ja/strings.xml b/res/values-ja/strings.xml index 70e7852..09b23b7 100644 --- a/res/values-ja/strings.xml +++ b/res/values-ja/strings.xml @@ -68,6 +68,12 @@ "通知" "ジェスチャー" "設定" + + + + + + "ショートカットのインストール" "ユーザー操作なしでショートカットの追加をアプリケーションに許可します。" "ショートカットのアンインストール" @@ -77,4 +83,6 @@ "ホームの設定とショートカットの書き込み" "ホームの設定とショートカットの変更をアプリケーションに許可します。" "ウィジェットを表示できません" + + diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml index 5c99a17..b943f1c 100644 --- a/res/values-ko/strings.xml +++ b/res/values-ko/strings.xml @@ -68,6 +68,12 @@ "알림" "동작" "설정" + + + + + + "바로가기 설치" "애플리케이션이 사용자의 작업 없이 바로가기를 추가할 수 있도록 합니다." "바로가기 제거" @@ -77,4 +83,6 @@ "홈 설정 및 바로가기 쓰기" "애플리케이션이 홈에 있는 설정 및 바로가기를 변경할 수 있도록 합니다." "위젯을 로드하는 중 문제가 발생했습니다." + + diff --git a/res/values-nb/strings.xml b/res/values-nb/strings.xml index aa24d7a..74ace88 100644 --- a/res/values-nb/strings.xml +++ b/res/values-nb/strings.xml @@ -68,6 +68,12 @@ "Varslinger" "Bevegelser" "Innstillinger" + + + + + + "installere snarveier" "Lar applikasjonen legge til snarveier uten å involvere brukeren." "avinstallere snarveier" @@ -77,4 +83,6 @@ "skrive skrivebordsinnstillinger og -snarveier" "Lar applikasjonen endre innstillinger og snarveier på skrivebordet." "Problem under lasting av gadget" + + diff --git a/res/values-nl/strings.xml b/res/values-nl/strings.xml index 0777dea..42608e0 100644 --- a/res/values-nl/strings.xml +++ b/res/values-nl/strings.xml @@ -68,6 +68,12 @@ "Meldingen" "Gebaren" "Instellingen" + + + + + + "snelkoppelingen installeren" "Een toepassing toestaan om snelkoppelingen toe te voegen zonder tussenkomst van de gebruiker." "snelkoppelingen verwijderen" @@ -77,4 +83,6 @@ "instellingen en snelkoppelingen voor de startpagina schrijven" "Hiermee kan een toepassing de instellingen en snelkoppelingen op de startpagina wijzigen." "Probleem bij het laden van widget" + + diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml index 33a9da7..ea51842 100644 --- a/res/values-pl/strings.xml +++ b/res/values-pl/strings.xml @@ -68,6 +68,12 @@ "Powiadomienia" "Gesty" "Ustawienia" + + + + + + "zainstaluj skróty" "Umożliwia aplikacji dodawanie skrótów bez interwencji użytkownika." "odinstaluj skróty" @@ -77,4 +83,6 @@ "zapisywanie ustawień i skrótów strony głównej" "Umożliwia aplikacji zmianę ustawień i skrótów strony głównej." "Problem podczas ładowania widżetu" + + diff --git a/res/values-pt-rPT/strings.xml b/res/values-pt-rPT/strings.xml index bdee633..b2d6c65 100644 --- a/res/values-pt-rPT/strings.xml +++ b/res/values-pt-rPT/strings.xml @@ -68,6 +68,12 @@ "Notificações" "Gestos" "Definições" + + + + + + "instalar atalhos" "Permite que uma aplicação adicione atalhos sem a intervenção do utilizador." "desinstalar atalhos" @@ -77,4 +83,6 @@ "escrever definições e atalhos do ecrã principal" "Permite que uma aplicação altere as definições e os atalhos do ecrã principal." "Erro ao carregar o widget" + + diff --git a/res/values-pt/strings.xml b/res/values-pt/strings.xml index 1386d35..f3a7757 100644 --- a/res/values-pt/strings.xml +++ b/res/values-pt/strings.xml @@ -68,6 +68,12 @@ "Notificações" "Gestos" "Configurações" + + + + + + "instalar atalhos" "Permite que um aplicativo adicione os atalhos sem a intervenção do usuário." "desinstalar atalhos" @@ -77,4 +83,6 @@ "gravar configurações e atalhos da Página inicial" "Permite que um aplicativo altere as configurações e atalhos na Página inicial." "Problema ao carregar o widget" + + diff --git a/res/values-rm/strings.xml b/res/values-rm/strings.xml index 505f7ca..90a156b 100644 --- a/res/values-rm/strings.xml +++ b/res/values-rm/strings.xml @@ -73,6 +73,12 @@ "Avis" "Moviments" "Parameters" + + + + + + "Installar scursanidas" "Pussibilitescha ch\'ina applicaziun agiunta scursanidas senza l\'intervenziun da l\'utilisader." "deinstallar scursanidas" @@ -82,4 +88,6 @@ "Definir ils parameters e las scursanidas per la pagina da partenza" "Pussibilitescha ch\'ina applicaziun possia midar ils parameters e las scursanidas sin la pagina da partenza." "Problems cun chargiar il widget" + + diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml index 60e93de..486c6d4 100644 --- a/res/values-ru/strings.xml +++ b/res/values-ru/strings.xml @@ -68,6 +68,12 @@ "Уведомления" "Жесты" "Настройки" + + + + + + "устанавливать ярлыки" "Позволяет приложению добавлять ярлыки без вмешательства пользователя" "удалять ярлыки" @@ -77,4 +83,6 @@ "изменять настройки и ярлыки главного экрана" "Позволяет приложению изменять настройки и ярлыки на главном экране." "Не удалось загрузить виджет" + + diff --git a/res/values-sv/strings.xml b/res/values-sv/strings.xml index f27c401..09258a9 100644 --- a/res/values-sv/strings.xml +++ b/res/values-sv/strings.xml @@ -68,6 +68,12 @@ "Aviseringar" "Gester" "Inställningar" + + + + + + "installera genvägar" "Tillåter att ett program lägger till genvägar utan åtgärd från användaren." "avinstallera genvägar" @@ -77,4 +83,6 @@ "skriva inställningar och genvägar för startsidan" "Tillåter att ett program ändrar inställningar och genvägar på startsidan." "Det gick inte att läsa in widgeten" + + diff --git a/res/values-tr/strings.xml b/res/values-tr/strings.xml index 689c186..e6922a5 100644 --- a/res/values-tr/strings.xml +++ b/res/values-tr/strings.xml @@ -68,6 +68,12 @@ "Bildirimler" "Hareketler" "Ayarlar" + + + + + + "kısayolları yükle" "Bir uygulamaya, kısayolları kullanıcı müdahale etmeden ekleme izni verir." "kısayolları kaldır" @@ -77,4 +83,6 @@ "Ana Sayfa ayarlarını ve kısayollarını yaz" "Bir uygulamaya Ana Sayfadaki ayarları ve kısayolları değiştirme izni verir." "Widget yüklenirken sorun oluştu" + + diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index 15543bc..b1508dd 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -68,6 +68,12 @@ "通知" "手势" "设置" + + + + + + "安装快捷方式" "允许应用程序在没有用户介入的情况下添加快捷方式。" "卸载快捷方式" @@ -77,4 +83,6 @@ "写入主屏幕的设置和快捷方式" "允许应用程序更改主屏幕的设置和快捷方式。" "载入窗口小部件时出现问题" + + diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml index 0467f3b..18cbfcb 100644 --- a/res/values-zh-rTW/strings.xml +++ b/res/values-zh-rTW/strings.xml @@ -68,6 +68,12 @@ "通知" "觸控動作" "設定" + + + + + + "安裝捷徑" "允許應用程式自動新增快速鍵。" "解除安裝捷徑" @@ -77,4 +83,6 @@ "寫入首頁設定和捷徑" "允許應用程式變更首頁中的設定和捷徑。" "載入小工具時發生問題" + + -- cgit v1.1 From 7f3f956bbb6c5c1775c72220d993248f66cbbfd5 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Sun, 12 Sep 2010 12:15:10 -0700 Subject: Remove unnecessary files. Change-Id: I155aa203d5834569a99eaef439096178f9fb86bd --- res/drawable-xlarge/wallpaper_leaf.jpg | Bin 938236 -> 0 bytes res/drawable-xlarge/wallpaper_leaf_small.jpg | Bin 21537 -> 0 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 res/drawable-xlarge/wallpaper_leaf.jpg delete mode 100644 res/drawable-xlarge/wallpaper_leaf_small.jpg (limited to 'res') diff --git a/res/drawable-xlarge/wallpaper_leaf.jpg b/res/drawable-xlarge/wallpaper_leaf.jpg deleted file mode 100644 index afb0acc..0000000 Binary files a/res/drawable-xlarge/wallpaper_leaf.jpg and /dev/null differ diff --git a/res/drawable-xlarge/wallpaper_leaf_small.jpg b/res/drawable-xlarge/wallpaper_leaf_small.jpg deleted file mode 100644 index 48e9f3e..0000000 Binary files a/res/drawable-xlarge/wallpaper_leaf_small.jpg and /dev/null differ -- cgit v1.1 From 5f1c509d5ad1954a7e38e77db4d5f27c7345fd39 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Fri, 3 Sep 2010 14:15:02 -0700 Subject: supporting swipable home screens on xlarge devices - icons and widgets on home screens can be "dimmed" - celllayout no longer renders a dimmed version of itself, but instead its children make dimmed versions of themselves - celllayout no longer always takes up full size of workspace, in landscape mode neighboring screens (celllayouts) are visible - on xlarge devices, in landscape mode side screens are "dimmed" - moved holographic outline helper to its own file - fixed bug where mini-screens were still able to scroll left/right Change-Id: I9e85ab4147edfae1e7525c3d11d42be3fabf4f6d --- res/layout-land/application.xml | 4 ++-- res/layout-port/application.xml | 2 +- res/layout-xlarge-land/workspace_screen.xml | 8 ++++---- res/layout-xlarge-port/workspace_screen.xml | 8 ++++---- res/values-xlarge/colors.xml | 1 + 5 files changed, 12 insertions(+), 11 deletions(-) (limited to 'res') diff --git a/res/layout-land/application.xml b/res/layout-land/application.xml index 6de5658..846c81c 100644 --- a/res/layout-land/application.xml +++ b/res/layout-land/application.xml @@ -14,5 +14,5 @@ limitations under the License. --> - + diff --git a/res/layout-port/application.xml b/res/layout-port/application.xml index f904a66..ec66976 100644 --- a/res/layout-port/application.xml +++ b/res/layout-port/application.xml @@ -14,5 +14,5 @@ limitations under the License. --> - diff --git a/res/layout-xlarge-land/workspace_screen.xml b/res/layout-xlarge-land/workspace_screen.xml index 15fc3b1..f358443 100644 --- a/res/layout-xlarge-land/workspace_screen.xml +++ b/res/layout-xlarge-land/workspace_screen.xml @@ -18,13 +18,13 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" - android:layout_width="match_parent" - android:layout_height="match_parent" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:hapticFeedbackEnabled="false" launcher:cellWidth="@dimen/workspace_cell_width" launcher:cellHeight="@dimen/workspace_cell_height" launcher:yAxisStartPadding="40dip" launcher:yAxisEndPadding="40dip" - launcher:xAxisStartPadding="256dip" - launcher:xAxisEndPadding="256dip" /> + launcher:xAxisStartPadding="40dip" + launcher:xAxisEndPadding="40dip" /> diff --git a/res/layout-xlarge-port/workspace_screen.xml b/res/layout-xlarge-port/workspace_screen.xml index eb7620c..7314e60 100644 --- a/res/layout-xlarge-port/workspace_screen.xml +++ b/res/layout-xlarge-port/workspace_screen.xml @@ -18,13 +18,13 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" - android:layout_width="match_parent" - android:layout_height="match_parent" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:hapticFeedbackEnabled="false" launcher:cellWidth="@dimen/workspace_cell_width" launcher:cellHeight="@dimen/workspace_cell_height" - launcher:yAxisStartPadding="172dip" - launcher:yAxisEndPadding="172dip" + launcher:yAxisStartPadding="40dip" + launcher:yAxisEndPadding="40dip" launcher:xAxisStartPadding="40dip" launcher:xAxisEndPadding="40dip"/> diff --git a/res/values-xlarge/colors.xml b/res/values-xlarge/colors.xml index a6cdd06..d4c6fad 100644 --- a/res/values-xlarge/colors.xml +++ b/res/values-xlarge/colors.xml @@ -18,4 +18,5 @@ --> #A50000FE + #FF7F7F7F \ No newline at end of file -- cgit v1.1 From 1ff706b8c03063740ca74868fea46fa47d71bb27 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Tue, 14 Sep 2010 17:35:20 -0700 Subject: fix two crashes * fix crash where Workspace gets an ACTION_MOVE but didn't get the ACTION_DOWN before it * fix crash in DimmableBubbleTextView on non-xlarge devices (buganizer bug#3001211) Change-Id: I419b4a9fd3c95df9949f1d46746845ad2dc4b831 --- res/layout-land/application.xml | 2 +- res/layout-port/application.xml | 8 ++++---- res/layout-xlarge-land/application.xml | 18 ++++++++++++++++++ res/layout-xlarge-port/application.xml | 18 ++++++++++++++++++ 4 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 res/layout-xlarge-land/application.xml create mode 100644 res/layout-xlarge-port/application.xml (limited to 'res') diff --git a/res/layout-land/application.xml b/res/layout-land/application.xml index 846c81c..6e8c31e 100644 --- a/res/layout-land/application.xml +++ b/res/layout-land/application.xml @@ -14,5 +14,5 @@ limitations under the License. --> - diff --git a/res/layout-port/application.xml b/res/layout-port/application.xml index ec66976..32c1510 100644 --- a/res/layout-port/application.xml +++ b/res/layout-port/application.xml @@ -4,9 +4,9 @@ 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. @@ -14,5 +14,5 @@ limitations under the License. --> - + diff --git a/res/layout-xlarge-land/application.xml b/res/layout-xlarge-land/application.xml new file mode 100644 index 0000000..d0c8d9b --- /dev/null +++ b/res/layout-xlarge-land/application.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/res/layout-xlarge-port/application.xml b/res/layout-xlarge-port/application.xml new file mode 100644 index 0000000..ec66976 --- /dev/null +++ b/res/layout-xlarge-port/application.xml @@ -0,0 +1,18 @@ + + + + -- cgit v1.1 From e3193b93ad7bf33e2e45319084a99b9fc986622b Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Fri, 10 Sep 2010 11:44:42 -0700 Subject: Initital changes for new customization drawer/widget tab design. Change-Id: I160c8777fe2657ab303acfa20934f2e90f9e953e --- res/drawable/default_widget_preview.9.png | Bin 3976 -> 634 bytes res/drawable/widget_divider.png | Bin 0 -> 115 bytes res/layout-xlarge-land/customization_drawer.xml | 22 +++++++ res/layout-xlarge-port/customization_drawer.xml | 22 +++++++ res/layout-xlarge/customize_paged_view_widget.xml | 74 +++++++++++++++++----- res/layout-xlarge/launcher.xml | 2 +- res/values-xlarge/dimens.xml | 2 +- res/values/attrs.xml | 7 ++ 8 files changed, 111 insertions(+), 18 deletions(-) create mode 100644 res/drawable/widget_divider.png create mode 100644 res/layout-xlarge-land/customization_drawer.xml create mode 100644 res/layout-xlarge-port/customization_drawer.xml (limited to 'res') diff --git a/res/drawable/default_widget_preview.9.png b/res/drawable/default_widget_preview.9.png index b3ddada..5fedcc8 100644 Binary files a/res/drawable/default_widget_preview.9.png and b/res/drawable/default_widget_preview.9.png differ diff --git a/res/drawable/widget_divider.png b/res/drawable/widget_divider.png new file mode 100644 index 0000000..1b453c5 Binary files /dev/null and b/res/drawable/widget_divider.png differ diff --git a/res/layout-xlarge-land/customization_drawer.xml b/res/layout-xlarge-land/customization_drawer.xml new file mode 100644 index 0000000..4fcf761 --- /dev/null +++ b/res/layout-xlarge-land/customization_drawer.xml @@ -0,0 +1,22 @@ + + + \ No newline at end of file diff --git a/res/layout-xlarge-port/customization_drawer.xml b/res/layout-xlarge-port/customization_drawer.xml new file mode 100644 index 0000000..6e4bc4c --- /dev/null +++ b/res/layout-xlarge-port/customization_drawer.xml @@ -0,0 +1,22 @@ + + + \ No newline at end of file diff --git a/res/layout-xlarge/customize_paged_view_widget.xml b/res/layout-xlarge/customize_paged_view_widget.xml index da5342b..4d70a12 100644 --- a/res/layout-xlarge/customize_paged_view_widget.xml +++ b/res/layout-xlarge/customize_paged_view_widget.xml @@ -13,20 +13,62 @@ See the License for the specific language governing permissions and limitations under the License. --> - - + android:paddingLeft="12.5dp" + android:paddingRight="12.5dp" + android:paddingTop="40dp" + android:paddingBottom="50dp" + android:gravity="top" + android:orientation="vertical"> + + + + + + + + + + + + + diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index a3c7558..c6acec3 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -128,7 +128,7 @@ 0dip - 20dip + 60dip 10dip diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 09fb0da..8aa6efb 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -64,6 +64,13 @@ + + + + + + -- cgit v1.1 From 3a476786986278ee81de41c0b548bf0c1af6f8b6 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 15 Sep 2010 15:21:55 -0700 Subject: Extracting format string properly into xml strings. Change-Id: I4766ee48bef6a08c6a9809f8df29d4d2343014c4 --- res/values/strings.xml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'res') diff --git a/res/values/strings.xml b/res/values/strings.xml index 3c1b79c..00febfe 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -65,6 +65,10 @@ Downloaded + + + %1$d x %2$d + -- cgit v1.1 From 64a3cd4f204dd5f3676249d50aa0881b2e279b1f Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Fri, 17 Sep 2010 16:47:33 -0700 Subject: Changing the holographic outline algorithm to match designs. Change-Id: Ibb9668514c7c3ce56473cf041051245b9c19c793 --- res/layout-xlarge/all_apps_paged_view_application.xml | 10 +++++++++- res/values/attrs.xml | 13 +++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) (limited to 'res') diff --git a/res/layout-xlarge/all_apps_paged_view_application.xml b/res/layout-xlarge/all_apps_paged_view_application.xml index 55779e5..bee13d6 100644 --- a/res/layout-xlarge/all_apps_paged_view_application.xml +++ b/res/layout-xlarge/all_apps_paged_view_application.xml @@ -14,7 +14,15 @@ limitations under the License. --> - + + + + + + + + + + + + -- cgit v1.1 From dea9e93e4a7b78ae48f27ac0d5d117f6b393bba0 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Wed, 22 Sep 2010 15:04:29 -0700 Subject: Fix misaligned drop targets in the all apps CAB --- res/layout-xlarge/launcher.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res') diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index c6acec3..9ed2dc5 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -1,5 +1,5 @@ - + + + + + + + + + diff --git a/res/layout-xlarge-land/customization_drawer.xml b/res/layout-xlarge-land/customization_drawer.xml index 4fcf761..7ad9132 100644 --- a/res/layout-xlarge-land/customization_drawer.xml +++ b/res/layout-xlarge-land/customization_drawer.xml @@ -19,4 +19,10 @@ android:layout_width="match_parent" android:layout_height="match_parent" - launcher:widgetCellCountX="16" /> \ No newline at end of file + launcher:widgetCellCountX="16" + launcher:cellCountX="7" + launcher:cellCountY="4" + launcher:pageLayoutPaddingTop="10dp" + launcher:pageLayoutPaddingBottom="15dp" + launcher:pageLayoutPaddingLeft="20dp" + launcher:pageLayoutPaddingRight="20dp" /> \ No newline at end of file diff --git a/res/layout-xlarge-port/all_apps_tabbed.xml b/res/layout-xlarge-port/all_apps_tabbed.xml new file mode 100644 index 0000000..2ff0447 --- /dev/null +++ b/res/layout-xlarge-port/all_apps_tabbed.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + diff --git a/res/layout-xlarge-port/customization_drawer.xml b/res/layout-xlarge-port/customization_drawer.xml index 6e4bc4c..db264b2 100644 --- a/res/layout-xlarge-port/customization_drawer.xml +++ b/res/layout-xlarge-port/customization_drawer.xml @@ -19,4 +19,10 @@ android:layout_width="match_parent" android:layout_height="match_parent" - launcher:widgetCellCountX="12" /> \ No newline at end of file + launcher:widgetCellCountX="12" + launcher:cellCountX="7" + launcher:cellCountY="4" + launcher:pageLayoutPaddingTop="10dp" + launcher:pageLayoutPaddingBottom="15dp" + launcher:pageLayoutPaddingLeft="0dp" + launcher:pageLayoutPaddingRight="0dp" /> \ No newline at end of file diff --git a/res/layout-xlarge/all_apps_tabbed.xml b/res/layout-xlarge/all_apps_tabbed.xml deleted file mode 100644 index 5aca954..0000000 --- a/res/layout-xlarge/all_apps_tabbed.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 3ef26fb..bb1b85f 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -75,6 +75,11 @@ + + + + + - Shortcuts + More Wallpapers + + App Shortcuts This will be the wallpapers tab -- cgit v1.1 From 04e37ed86c9fc90bbf16cffd9f95d9079e7eb92d Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Fri, 24 Sep 2010 12:27:12 -0700 Subject: Import revised translations. Change-Id: Iaf9b3853897f35638910edf4275245a868725cf7 --- res/values-cs/strings.xml | 20 ++++++++++---------- res/values-da/strings.xml | 20 ++++++++++---------- res/values-de/strings.xml | 20 ++++++++++---------- res/values-el/strings.xml | 20 ++++++++++---------- res/values-es-rUS/strings.xml | 20 ++++++++++---------- res/values-es/strings.xml | 20 ++++++++++---------- res/values-fr/strings.xml | 20 ++++++++++---------- res/values-it/strings.xml | 22 +++++++++++----------- res/values-ja/strings.xml | 20 ++++++++++---------- res/values-ko/strings.xml | 20 ++++++++++---------- res/values-nb/strings.xml | 20 ++++++++++---------- res/values-nl/strings.xml | 20 ++++++++++---------- res/values-pl/strings.xml | 20 ++++++++++---------- res/values-pt-rPT/strings.xml | 20 ++++++++++---------- res/values-pt/strings.xml | 20 ++++++++++---------- res/values-rm/strings.xml | 12 ++++++++---- res/values-ru/strings.xml | 20 ++++++++++---------- res/values-sv/strings.xml | 20 ++++++++++---------- res/values-tr/strings.xml | 20 ++++++++++---------- res/values-zh-rCN/strings.xml | 20 ++++++++++---------- res/values-zh-rTW/strings.xml | 20 ++++++++++---------- 21 files changed, 209 insertions(+), 205 deletions(-) (limited to 'res') diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml index c091034..b127e1e 100644 --- a/res/values-cs/strings.xml +++ b/res/values-cs/strings.xml @@ -29,16 +29,17 @@ "Konfigurace..." "Widgety" "Složky" - "Zástupci" - "Tapety" - "Toto bude karta Tapety" - - - + - + "Tapety" + - + "Toto bude karta Tapety" + "Vše" + "Aplikace" + "Hry" + "Stažené" + "Název složky" "Přejmenovat složku" @@ -83,6 +84,5 @@ "zápis nastavení a odkazů plochy" "Povoluje aplikaci změnit nastavení a odkazy plochy." "Problém s načtením widgetu" - - + "Toto je systémová aplikace a nelze ji odinstalovat." diff --git a/res/values-da/strings.xml b/res/values-da/strings.xml index 045b834..c3b069e 100644 --- a/res/values-da/strings.xml +++ b/res/values-da/strings.xml @@ -29,16 +29,17 @@ "Konfigurer ..." "Widgets" "Mapper" - "Genveje" - "Tapeter" - "Dette er fanen for tapeter" - - - + - + "Tapeter" + - + "Dette er fanen for tapeter" + "Alle" + "Programmer" + "Spil" + "Downloadet" + "Mappenavn" "Omdøb mappe" @@ -83,6 +84,5 @@ "skriv indstillinger og genveje for Start" "Tillader, at et program ændrer indstillingerne og genvejene i Start." "Der er problemer med indlæsning af widget" - - + "Dette er et systemprogram, som ikke kan afinstalleres." diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index a3367d2..6b5401f 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -29,16 +29,17 @@ "Konfigurieren..." "Widgets" "Ordner" - "Verknüpfungen" - "Hintergründe" - "Dies ist der Tab \"Hintergründe\"" - - - + - + "Hintergründe" + - + "Dies ist der Tab \"Hintergründe\"" + "Alle" + "Anwendungen" + "Spiele" + "Heruntergeladen" + "Ordnername" "Ordner umbenennen" @@ -83,6 +84,5 @@ "Einstellungen und Shortcuts für Startseite schreiben" "Ermöglicht einer Anwendung, die Einstellungen und Shortcuts auf der Startseite zu ändern." "Problem beim Laden des Widgets" - - + "Dies ist eine Systemanwendung, die nicht deinstalliert werden kann." diff --git a/res/values-el/strings.xml b/res/values-el/strings.xml index 609a193..9326a93 100644 --- a/res/values-el/strings.xml +++ b/res/values-el/strings.xml @@ -29,16 +29,17 @@ "Διαμόρφωση..." "Γραφικά στοιχεία" "Φάκελοι" - "Συντομεύσεις" - "Ταπετσαρίες" - "Αυτή θα είναι η καρτέλα ταπετσαριών" - - - + - + "Ταπετσαρίες" + - + "Αυτή θα είναι η καρτέλα ταπετσαριών" + "Κάθε ηλικία" + "Εφαρμογές" + "Παιχνίδια" + "Η λήψη ολοκληρώθηκε" + "Όνομα φακέλου" "Μετονομασία φακέλου" @@ -83,6 +84,5 @@ "εγγραφή ρυθμίσεων και συντομεύσεων αρχικής οθόνης" "Επιτρέπει σε μια εφαρμογή την αλλαγή των ρυθμίσεων και των συντομεύσεων στην αρχική οθόνη." "Παρουσιάστηκε πρόβλημα στη φόρτωση του γραφικού στοιχείου" - - + "Αυτή είναι εφαρμογή του συστήματος και δεν είναι δυνατή η κατάργηση της εγκατάστασής της." diff --git a/res/values-es-rUS/strings.xml b/res/values-es-rUS/strings.xml index 4f8b890..b4e65d0 100644 --- a/res/values-es-rUS/strings.xml +++ b/res/values-es-rUS/strings.xml @@ -29,16 +29,17 @@ "Configurar..." "Widgets" "Carpetas" - "Accesos directos" - "Papeles tapiz" - "Ésta será la pestaña para los papeles tapiz" - - - + - + "Papeles tapiz" + - + "Ésta será la pestaña para los papeles tapiz" + "Todos" + "Google Apps" + "Juegos" + "Descargado" + "Nombre de carpeta" "Cambiar nombre de carpeta" @@ -83,6 +84,5 @@ "escribir configuración y accesos directos de la página principal" "Permite a una aplicación cambiar la configuración y los accesos directos de la página principal." "Problema al cargar el widget" - - + "Esta es una aplicación de sistema y no puede desinstalarse." diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml index f6c5cf7..ecbe8af 100644 --- a/res/values-es/strings.xml +++ b/res/values-es/strings.xml @@ -29,16 +29,17 @@ "Configurar..." "Widgets" "Carpetas" - "Accesos directos" - "Fondos de pantalla" - "Será la carpeta de fondos de pantalla." - - - + - + "Fondos de pantalla" + - + "Será la carpeta de fondos de pantalla." + "Todas las aplicaciones" + "Aplicaciones" + "Juegos" + "Descargadas" + "Nombre de carpeta" "Cambiar nombre de carpeta" @@ -83,6 +84,5 @@ "escribir información de accesos directos y de configuración del escritorio" "Permite que una aplicación modifique la configuración y los accesos directos de la página de inicio." "Problema al cargar el widget" - - + "Se trata de una aplicación del sistema y no se puede desinstalar." diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml index f1339fd..c6d530d 100644 --- a/res/values-fr/strings.xml +++ b/res/values-fr/strings.xml @@ -29,16 +29,17 @@ "Configurer..." "Widgets" "Dossiers" - "Raccourcis" - "Fonds d\'écran" - "Onglet des fonds d\'écran" - - - + - + "Fonds d\'écran" + - + "Onglet des fonds d\'écran" + "Toutes" + "Applications" + "Jeux" + "Téléchargées" + "Nom du dossier" "Renommer le dossier" @@ -83,6 +84,5 @@ "Enregistrer les paramètres de la page d\'accueil et des raccourcis" "Permet à une application de modifier les paramètres et les raccourcis de la page d\'accueil." "Problème lors du chargement du widget" - - + "Il s\'agit d\'une application système que vous ne pouvez pas désinstaller." diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml index fa2624b..f25156a 100644 --- a/res/values-it/strings.xml +++ b/res/values-it/strings.xml @@ -29,16 +29,17 @@ "Configura..." "Widget" "Cartelle" - "Scorciatorie" - "Sfondi" - "Questa sarà la scheda degli sfondi" - - - + - + "Sfondi" + - + "Questa sarà la scheda degli sfondi" + "Tutte" + "Applicazioni" + "Giochi" + "Scaricate" + "Nome cartella" "Rinomina cartella" @@ -74,7 +75,7 @@ - "aggiungere scorciatorie" + "aggiungere scorciatoie" "Consente a un\'applicazione di aggiungere scorciatoie automaticamente." "eliminare scorciatoie" "Consente a un\'applicazione di rimuovere scorciatoie automaticamente." @@ -83,6 +84,5 @@ "creare impostazioni e scorciatoie in Home" "Consente a un\'applicazione di modificare le impostazioni e le scorciatoie in Home." "Errore durante il caricamento del widget" - - + "Questa è un\'applicazione di sistema e non può essere disinstallata." diff --git a/res/values-ja/strings.xml b/res/values-ja/strings.xml index 09b23b7..98f042b 100644 --- a/res/values-ja/strings.xml +++ b/res/values-ja/strings.xml @@ -29,16 +29,17 @@ "設定..." "ウィジェット" "フォルダ" - "ショートカット" - "壁紙" - "ここが壁紙タブになります" - - - + - + "壁紙" + - + "ここが壁紙タブになります" + "すべて" + "アプリ" + "ゲーム" + "ダウンロード済み" + "フォルダ名" "フォルダ名を変更" @@ -83,6 +84,5 @@ "ホームの設定とショートカットの書き込み" "ホームの設定とショートカットの変更をアプリケーションに許可します。" "ウィジェットを表示できません" - - + "このシステムアプリケーションはアンインストールできません。" diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml index b943f1c..5213326 100644 --- a/res/values-ko/strings.xml +++ b/res/values-ko/strings.xml @@ -29,16 +29,17 @@ "구성..." "위젯" "폴더" - "바로가기" - "배경화면" - "배경화면 탭이 됩니다." - - - + - + "배경화면" + - + "배경화면 탭이 됩니다." + "모두" + "애플리케이션" + "게임" + "다운로드앱" + "폴더 이름" "폴더 이름 바꾸기" @@ -83,6 +84,5 @@ "홈 설정 및 바로가기 쓰기" "애플리케이션이 홈에 있는 설정 및 바로가기를 변경할 수 있도록 합니다." "위젯을 로드하는 중 문제가 발생했습니다." - - + "시스템 애플리케이션은 제거할 수 없습니다." diff --git a/res/values-nb/strings.xml b/res/values-nb/strings.xml index 74ace88..0d24eb9 100644 --- a/res/values-nb/strings.xml +++ b/res/values-nb/strings.xml @@ -29,16 +29,17 @@ "Konfigurer" "Moduler" "Mapper" - "Snarveier" - "Bakgrunner" - "Dette er nå bakgrunnsfanen" - - - + - + "Bakgrunner" + - + "Dette er nå bakgrunnsfanen" + "Alle" + "Programmer" + "Spill" + "Nedlastet" + "Mappenavn" "Gi nytt navn til mappe" @@ -83,6 +84,5 @@ "skrive skrivebordsinnstillinger og -snarveier" "Lar applikasjonen endre innstillinger og snarveier på skrivebordet." "Problem under lasting av gadget" - - + "Dette er et systemprogram og kan ikke avinstalleres." diff --git a/res/values-nl/strings.xml b/res/values-nl/strings.xml index 42608e0..5a2a269 100644 --- a/res/values-nl/strings.xml +++ b/res/values-nl/strings.xml @@ -29,16 +29,17 @@ "Configureren..." "Widgets" "Mappen" - "Sneltoetsen" - "Achtergronden" - "Dit wordt het tabblad \'Achtergronden\'" - - - + - + "Achtergronden" + - + "Dit wordt het tabblad \'Achtergronden\'" + "Alle" + "Toepassingen" + "Games" + "Gedownload" + "Mapnaam" "Naam van map wijzigen" @@ -83,6 +84,5 @@ "instellingen en snelkoppelingen voor de startpagina schrijven" "Hiermee kan een toepassing de instellingen en snelkoppelingen op de startpagina wijzigen." "Probleem bij het laden van widget" - - + "Dit is een systeemtoepassing die niet kan worden verwijderd." diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml index ea51842..0c8e91b 100644 --- a/res/values-pl/strings.xml +++ b/res/values-pl/strings.xml @@ -29,16 +29,17 @@ "Konfiguruj..." "Widżety" "Foldery" - "Skróty" - "Tapety" - "To będzie karta tapet" - - - + - + "Tapety" + - + "To będzie karta tapet" + "Wszystkie" + "Aplikacje" + "Gry" + "Pobrane" + "Nazwa folderu" "Zmień nazwę folderu" @@ -83,6 +84,5 @@ "zapisywanie ustawień i skrótów strony głównej" "Umożliwia aplikacji zmianę ustawień i skrótów strony głównej." "Problem podczas ładowania widżetu" - - + "To jest aplikacja systemowa i nie można jej odinstalować." diff --git a/res/values-pt-rPT/strings.xml b/res/values-pt-rPT/strings.xml index b2d6c65..cdff3bf 100644 --- a/res/values-pt-rPT/strings.xml +++ b/res/values-pt-rPT/strings.xml @@ -29,16 +29,17 @@ "Configurar..." "Widgets" "Pastas" - "Atalhos" - "Imagens de fundo" - "Isto será o separador de imagens de fundo" - - - + - + "Imagens de fundo" + - + "Isto será o separador de imagens de fundo" + "Todas" + "Aplicações" + "Jogos" + "Transferidas" + "Nome da pasta" "Mudar o nome da pasta" @@ -83,6 +84,5 @@ "escrever definições e atalhos do ecrã principal" "Permite que uma aplicação altere as definições e os atalhos do ecrã principal." "Erro ao carregar o widget" - - + "É uma aplicação de sistema e não pode ser desinstalada." diff --git a/res/values-pt/strings.xml b/res/values-pt/strings.xml index f3a7757..bdebb87 100644 --- a/res/values-pt/strings.xml +++ b/res/values-pt/strings.xml @@ -29,16 +29,17 @@ "Configurar..." "Widgets" "Pastas" - "Atalhos" - "Papéis de parede" - "Esta será a guia de papéis de parede" - - - + - + "Papéis de parede" + - + "Esta será a guia de papéis de parede" + "Todos" + "Aplicativos" + "Jogos" + "Download concluído" + "Nome da pasta" "Renomear pasta" @@ -83,6 +84,5 @@ "gravar configurações e atalhos da Página inicial" "Permite que um aplicativo altere as configurações e atalhos na Página inicial." "Problema ao carregar o widget" - - + "Este é um aplicativo do sistema e não pode ser desinstalado." diff --git a/res/values-rm/strings.xml b/res/values-rm/strings.xml index 90a156b..0e4e4da 100644 --- a/res/values-rm/strings.xml +++ b/res/values-rm/strings.xml @@ -31,10 +31,12 @@ - + + + @@ -45,6 +47,8 @@ + + "Num da l\'ordinatur" "Renumnar l\'ordinatur" "OK" @@ -60,9 +64,9 @@ "Ura" "Rom da maletgs" "Nagin spazi liber sin il visur da partenza." - "Creà ina scursanida \"%s\"." - "La scursanida \"%s\" è vegnida stizzada." - "La scursanida \"%s\" exista gia." + "\"Creà ina scursanida \"\"%s\"\".\"" + "\"La scursanida \"\"%s\"\" è vegnida stizzada.\"" + "\"La scursanida \"\"%s\"\" exista gia.\"" "Tscherner ina cumbinaziun da tastas" "Tscherner l\'ordinatur" "Tut las applicaziuns" diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml index 486c6d4..bb87445 100644 --- a/res/values-ru/strings.xml +++ b/res/values-ru/strings.xml @@ -29,16 +29,17 @@ "Настроить..." "Виджеты" "Папки" - "Ярлыки" - "Обои" - "Это будет вкладка обоев" - - - + - + "Обои" + - + "Это будет вкладка обоев" + "Все" + "Приложения" + "Игры" + "Загруженные" + "Название папки" "Переименовать папку" @@ -83,6 +84,5 @@ "изменять настройки и ярлыки главного экрана" "Позволяет приложению изменять настройки и ярлыки на главном экране." "Не удалось загрузить виджет" - - + "Это системное приложение. Удалить его невозможно." diff --git a/res/values-sv/strings.xml b/res/values-sv/strings.xml index 09258a9..be6ee7f 100644 --- a/res/values-sv/strings.xml +++ b/res/values-sv/strings.xml @@ -29,16 +29,17 @@ "Konfigurera..." "Widgetar" "Mappar" - "Genvägar" - "Bakgrundsbilder" - "Det här kommer att vara fliken för bakgrundsbilder" - - - + - + "Bakgrundsbilder" + - + "Det här kommer att vara fliken för bakgrundsbilder" + "Alla" + "Program" + "Spel" + "Hämtade" + "Mappnamn" "Byt namn på mapp" @@ -83,6 +84,5 @@ "skriva inställningar och genvägar för startsidan" "Tillåter att ett program ändrar inställningar och genvägar på startsidan." "Det gick inte att läsa in widgeten" - - + "Det här är ett systemprogram och kan inte avinstalleras." diff --git a/res/values-tr/strings.xml b/res/values-tr/strings.xml index e6922a5..59c816d 100644 --- a/res/values-tr/strings.xml +++ b/res/values-tr/strings.xml @@ -29,16 +29,17 @@ "Yapılandır..." "Widget\'lar" "Klasörler" - "Kısayollar" - "Duvar Kağıtları" - "Bu duvar kağıdı sekmesi olacaktır" - - - + - + "Duvar Kağıtları" + - + "Bu duvar kağıdı sekmesi olacaktır" + "Tümü" + "Uygulamalar" + "Oyunlar" + "İndirilenler" + "Klasör adı" "Klasörü yeniden adlandır" @@ -83,6 +84,5 @@ "Ana Sayfa ayarlarını ve kısayollarını yaz" "Bir uygulamaya Ana Sayfadaki ayarları ve kısayolları değiştirme izni verir." "Widget yüklenirken sorun oluştu" - - + "Bu bir sistem uygulamasıdır ve kaldırılamaz." diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index b1508dd..58f6178 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -29,16 +29,17 @@ "配置..." "窗口小部件" "文件夹" - "快捷方式" - "壁纸" - "这将会成为壁纸标签" - - - + - + "壁纸" + - + "这将会成为壁纸标签" + "全部" + "应用程序" + "游戏" + "已下载" + "文件夹名称" "重命名文件夹" @@ -83,6 +84,5 @@ "写入主屏幕的设置和快捷方式" "允许应用程序更改主屏幕的设置和快捷方式。" "载入窗口小部件时出现问题" - - + "这是系统应用程序,无法卸载。" diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml index 18cbfcb..a7cd098 100644 --- a/res/values-zh-rTW/strings.xml +++ b/res/values-zh-rTW/strings.xml @@ -29,16 +29,17 @@ "設定..." "小工具" "資料夾" - "快速鍵" - "桌布" - "桌布標籤保留位" - - - + - + "桌布" + - + "桌布標籤保留位" + "全部" + "應用程式" + "遊戲" + "下載內容" + "資料夾名稱" "重新命名資料夾" @@ -83,6 +84,5 @@ "寫入首頁設定和捷徑" "允許應用程式變更首頁中的設定和捷徑。" "載入小工具時發生問題" - - + "這是系統應用程式,無法將其解除安裝。" -- cgit v1.1 From d0d43010c7a091b6ade407d30e490527a8d16120 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Sun, 26 Sep 2010 17:26:45 -0700 Subject: Adding tap-to-add behaviour to the customization drawer. Change-Id: I5a0863a8df2a0b4855112eb29b40b6e7dd550db9 --- res/layout-xlarge/all_apps_paged_view_application.xml | 2 +- res/layout-xlarge/customize_paged_view_item.xml | 12 ++++++++++-- .../customize_paged_view_wallpaper_placeholder.xml | 6 ++++-- res/layout-xlarge/customize_paged_view_widget.xml | 18 ++++++++++++------ res/values/attrs.xml | 9 +++++++++ 5 files changed, 36 insertions(+), 11 deletions(-) (limited to 'res') diff --git a/res/layout-xlarge/all_apps_paged_view_application.xml b/res/layout-xlarge/all_apps_paged_view_application.xml index bee13d6..8e53e06 100644 --- a/res/layout-xlarge/all_apps_paged_view_application.xml +++ b/res/layout-xlarge/all_apps_paged_view_application.xml @@ -23,7 +23,7 @@ launcher:checkedBlurColor="#FFBBE83C" launcher:checkedOutlineColor="#FF8CD2FF" - android:id="@+id/name" + android:id="@+id/application_icon" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" diff --git a/res/layout-xlarge/customize_paged_view_item.xml b/res/layout-xlarge/customize_paged_view_item.xml index 55779e5..e427345 100644 --- a/res/layout-xlarge/customize_paged_view_item.xml +++ b/res/layout-xlarge/customize_paged_view_item.xml @@ -14,8 +14,16 @@ limitations under the License. --> - - - + android:orientation="vertical" + + launcher:checkedBlurColor="#FFDAFF71" + launcher:checkedOutlineColor="#FFCFFF9C"> - + diff --git a/res/values/attrs.xml b/res/values/attrs.xml index bb1b85f..3e2a8e9 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -68,6 +68,15 @@ + + + + + + + + -- cgit v1.1 From 3125d9dec8709a6c95039c7b35d27494da46eaab Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Mon, 27 Sep 2010 11:30:20 -0700 Subject: Making the CAB text match the type of item selected in customization mode. --- res/values/strings.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'res') diff --git a/res/values/strings.xml b/res/values/strings.xml index 4d88a33..04aea87 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -147,8 +147,14 @@ Application details - - 1 application selected + + 1 application selected + + 1 widget selected + + 1 folder selected + + 1 shortcut selected -- cgit v1.1 From 821856b67e1045038686bf10d009e802c941b2c9 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Mon, 27 Sep 2010 16:39:26 -0700 Subject: adding hardware acceleration flag to config.xml (later, this will let us turn on HW acceleration via a device-specific overlay) Change-Id: I33c957911db7ac730770b71d6644568fbfa86adf --- res/values/config.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'res') diff --git a/res/values/config.xml b/res/values/config.xml index 15ec05b..f532fd6 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -3,4 +3,5 @@ 700 0 0 + 0 -- cgit v1.1 From 163c9c0236b7824673d4ead9dbf664bf38ec047e Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Tue, 28 Sep 2010 15:24:13 -0700 Subject: cleaning up hardware acceleration XML value a bit (switch from integer -> bool) --- res/values/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res') diff --git a/res/values/config.xml b/res/values/config.xml index f532fd6..7811882 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -3,5 +3,5 @@ 700 0 0 - 0 + false -- cgit v1.1 From 9415d87eda0cf28b8df1eccde39b0ca1646be3b9 Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Mon, 13 Sep 2010 14:49:43 -0700 Subject: -Added 3D effect to home screen scrolling -Added background outline fade in / out -Modified the feel of scrolling: now using quintic interpolator and modified the influence of scroll velocity Change-Id: Ifddcab5223ac20be7d9f800ccf09442d9b4db781 --- res/drawable-xlarge/home_screen_bg.9.png | Bin 0 -> 557 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 res/drawable-xlarge/home_screen_bg.9.png (limited to 'res') diff --git a/res/drawable-xlarge/home_screen_bg.9.png b/res/drawable-xlarge/home_screen_bg.9.png new file mode 100644 index 0000000..d939d5c Binary files /dev/null and b/res/drawable-xlarge/home_screen_bg.9.png differ -- cgit v1.1 From de7658b5e02ae10010e44fcf8d9c5814f54d9eb0 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Mon, 27 Sep 2010 11:15:43 -0700 Subject: Show crosshairs when dragging items around the workspace. --- res/drawable/gardening_crosshairs.png | Bin 0 -> 3300 bytes res/values-xlarge/config.xml | 12 ++++++++++++ res/values/config.xml | 11 +++++++++++ 3 files changed, 23 insertions(+) create mode 100644 res/drawable/gardening_crosshairs.png (limited to 'res') diff --git a/res/drawable/gardening_crosshairs.png b/res/drawable/gardening_crosshairs.png new file mode 100644 index 0000000..cbaee78 Binary files /dev/null and b/res/drawable/gardening_crosshairs.png differ diff --git a/res/values-xlarge/config.xml b/res/values-xlarge/config.xml index 9b1bc0d..f6f6646 100644 --- a/res/values-xlarge/config.xml +++ b/res/values-xlarge/config.xml @@ -26,4 +26,16 @@ animations between all apps, customize, & the workspace. --> 350 350 + + 600 + + + 0 + + + 0 + 12 diff --git a/res/values/config.xml b/res/values/config.xml index 7811882..db967ea 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -4,4 +4,15 @@ 0 0 false + + + 40 + + + 20 + 20 -- cgit v1.1 From 0fb7db5a3771223bc86fdf0e01665e69c1309cc1 Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Wed, 29 Sep 2010 13:02:43 -0700 Subject: Fixing boot stall. Revert "-Added 3D effect to home screen scrolling" This reverts commit 9415d87eda0cf28b8df1eccde39b0ca1646be3b9. Change-Id: Ib8d6602f5d82884eb1f6cc44c0cc71cc563a3a59 --- res/drawable-xlarge/home_screen_bg.9.png | Bin 557 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 res/drawable-xlarge/home_screen_bg.9.png (limited to 'res') diff --git a/res/drawable-xlarge/home_screen_bg.9.png b/res/drawable-xlarge/home_screen_bg.9.png deleted file mode 100644 index d939d5c..0000000 Binary files a/res/drawable-xlarge/home_screen_bg.9.png and /dev/null differ -- cgit v1.1 From f34bab59fc0260f926aec44d044883dce1b4191f Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Thu, 30 Sep 2010 14:11:56 -0700 Subject: -Added 3D effect to home screen scrolling -Added background outline fade in / out -Modified the feel of scrolling: now using quintic interpolator and modified the influence of scroll velocity Change-Id: Ifddcab5223ac20be7d9f800ccf09442d9b4db781 Conflicts: src/com/android/launcher2/CellLayout.java --- res/drawable-xlarge/home_screen_bg.9.png | Bin 0 -> 557 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 res/drawable-xlarge/home_screen_bg.9.png (limited to 'res') diff --git a/res/drawable-xlarge/home_screen_bg.9.png b/res/drawable-xlarge/home_screen_bg.9.png new file mode 100644 index 0000000..d939d5c Binary files /dev/null and b/res/drawable-xlarge/home_screen_bg.9.png differ -- cgit v1.1 From 150fbab7de7df45ce0e2d08fb0f0be87ff091c2f Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 29 Sep 2010 17:14:26 -0700 Subject: 3029324 wip: Drop target crossfades as it moves from position to position --- res/values-xlarge/config.xml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'res') diff --git a/res/values-xlarge/config.xml b/res/values-xlarge/config.xml index f6f6646..c7c68e2 100644 --- a/res/values-xlarge/config.xml +++ b/res/values-xlarge/config.xml @@ -38,4 +38,11 @@ the drag view should be offset from the position of the original view. --> 0 12 + + + 900 + + + 180 -- cgit v1.1 From 658db74c24817892f1a379b16620744f38f60e40 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Wed, 29 Sep 2010 11:40:39 -0700 Subject: the scroll drag area was too small, and should have come from a resource anyway. Change-Id: I11111aff767e21a2582c5c368b5d9ff1ac8f9cd7 --- res/values/dimens.xml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'res') diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 790f835..c83986b 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -37,4 +37,8 @@ 14dip + + + 20dp -- cgit v1.1 From 16fed41e5e680c547b23e108788eb85f1b04d36d Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Fri, 1 Oct 2010 16:12:03 -0700 Subject: - getting rid of "dimmed" effect for icons and widgets - re-enabling drawing cache for icons and widgets --- res/layout-xlarge-land/application.xml | 2 +- res/layout-xlarge-port/application.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'res') diff --git a/res/layout-xlarge-land/application.xml b/res/layout-xlarge-land/application.xml index d0c8d9b..ed8fa8c 100644 --- a/res/layout-xlarge-land/application.xml +++ b/res/layout-xlarge-land/application.xml @@ -14,5 +14,5 @@ limitations under the License. --> - \ No newline at end of file diff --git a/res/layout-xlarge-port/application.xml b/res/layout-xlarge-port/application.xml index ec66976..af7a8a4 100644 --- a/res/layout-xlarge-port/application.xml +++ b/res/layout-xlarge-port/application.xml @@ -14,5 +14,5 @@ limitations under the License. --> - + -- cgit v1.1 From 6ae0fcfc80b55322824f87b2cc3c1f51ed83e5ab Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Fri, 1 Oct 2010 12:23:12 -0700 Subject: Pulling search button from metadata in search provider, or falling back on our default icon. Change-Id: I59fc59b76a0915a04275e08c88f5d46c3484cc6c --- res/drawable-xlarge/search_button.xml | 20 -------------------- res/drawable-xlarge/search_button_generic.xml | 20 ++++++++++++++++++++ res/layout-xlarge/launcher.xml | 1 - 3 files changed, 20 insertions(+), 21 deletions(-) delete mode 100644 res/drawable-xlarge/search_button.xml create mode 100644 res/drawable-xlarge/search_button_generic.xml (limited to 'res') diff --git a/res/drawable-xlarge/search_button.xml b/res/drawable-xlarge/search_button.xml deleted file mode 100644 index 8f18e67..0000000 --- a/res/drawable-xlarge/search_button.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - diff --git a/res/drawable-xlarge/search_button_generic.xml b/res/drawable-xlarge/search_button_generic.xml new file mode 100644 index 0000000..8f18e67 --- /dev/null +++ b/res/drawable-xlarge/search_button_generic.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 9ed2dc5..9b41af0 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -54,7 +54,6 @@ Date: Mon, 4 Oct 2010 17:45:43 -0700 Subject: fix 3053561: Update homescreen icons for all apps, customize --- res/drawable-xlarge/all_apps_button_normal.9.png | Bin 0 -> 901 bytes res/drawable-xlarge/all_apps_button_normal.png | Bin 698 -> 0 bytes res/drawable-xlarge/all_apps_button_pressed.9.png | Bin 0 -> 2100 bytes res/drawable-xlarge/all_apps_button_pressed.png | Bin 3606 -> 0 bytes res/drawable-xlarge/configure_button_normal.png | Bin 416 -> 1256 bytes res/drawable-xlarge/configure_button_pressed.png | Bin 2748 -> 3162 bytes res/layout-xlarge/launcher.xml | 31 ++++++++++++---------- res/values-xlarge/styles.xml | 6 ++++- res/values/strings.xml | 4 +-- 9 files changed, 24 insertions(+), 17 deletions(-) create mode 100644 res/drawable-xlarge/all_apps_button_normal.9.png delete mode 100644 res/drawable-xlarge/all_apps_button_normal.png create mode 100644 res/drawable-xlarge/all_apps_button_pressed.9.png delete mode 100644 res/drawable-xlarge/all_apps_button_pressed.png (limited to 'res') diff --git a/res/drawable-xlarge/all_apps_button_normal.9.png b/res/drawable-xlarge/all_apps_button_normal.9.png new file mode 100644 index 0000000..a423145 Binary files /dev/null and b/res/drawable-xlarge/all_apps_button_normal.9.png differ diff --git a/res/drawable-xlarge/all_apps_button_normal.png b/res/drawable-xlarge/all_apps_button_normal.png deleted file mode 100644 index e1c8b7d..0000000 Binary files a/res/drawable-xlarge/all_apps_button_normal.png and /dev/null differ diff --git a/res/drawable-xlarge/all_apps_button_pressed.9.png b/res/drawable-xlarge/all_apps_button_pressed.9.png new file mode 100644 index 0000000..5dbe77c Binary files /dev/null and b/res/drawable-xlarge/all_apps_button_pressed.9.png differ diff --git a/res/drawable-xlarge/all_apps_button_pressed.png b/res/drawable-xlarge/all_apps_button_pressed.png deleted file mode 100644 index 9dcfaa5..0000000 Binary files a/res/drawable-xlarge/all_apps_button_pressed.png and /dev/null differ diff --git a/res/drawable-xlarge/configure_button_normal.png b/res/drawable-xlarge/configure_button_normal.png index b11c2a8..9b37eff 100644 Binary files a/res/drawable-xlarge/configure_button_normal.png and b/res/drawable-xlarge/configure_button_normal.png differ diff --git a/res/drawable-xlarge/configure_button_pressed.png b/res/drawable-xlarge/configure_button_pressed.png index 70db9b7..5f38db6 100644 Binary files a/res/drawable-xlarge/configure_button_pressed.png and b/res/drawable-xlarge/configure_button_pressed.png differ diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 9b41af0..2b43442 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -64,14 +64,29 @@ android:clickable="true"/> + + @@ -89,18 +104,6 @@ android:clickable="false" android:visibility="gone"/> - - - diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 6189f1c..5d6773c 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -72,8 +72,6 @@ - - @@ -38,7 +38,7 @@ launcher:defaultScreen="2" launcher:cellCountX="8" launcher:cellCountY="7" - launcher:pageSpacing="32dip"> + launcher:pageSpacing="32dp"> @@ -86,7 +86,7 @@ android:layout_toLeftOf="@id/configure_button" android:layout_marginLeft="@dimen/toolbar_button_spacing" android:layout_marginRight="@dimen/toolbar_button_spacing" - android:textSize="18dip" + android:textSize="18dp" android:onClick="onClickAllAppsButton" android:focusable="true" @@ -131,20 +131,19 @@ + android:background="@drawable/tab_unselected_holo" + android:tabStripEnabled="false" /> + xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"> diff --git a/res/layout-xlarge-port/customization_drawer.xml b/res/layout-xlarge-port/customization_drawer.xml index d3ca457..28127ea 100644 --- a/res/layout-xlarge-port/customization_drawer.xml +++ b/res/layout-xlarge-port/customization_drawer.xml @@ -21,10 +21,10 @@ android:layout_height="match_parent" launcher:widgetCellCountX="10" launcher:cellCountX="5" - launcher:cellCountY="5" + launcher:cellCountY="3" launcher:pageLayoutWidthGap="36dp" - launcher:pageLayoutHeightGap="36dp" - launcher:pageLayoutPaddingTop="25dp" + launcher:pageLayoutHeightGap="12dp" + launcher:pageLayoutPaddingTop="40dp" launcher:pageLayoutPaddingBottom="25dp" launcher:pageLayoutPaddingLeft="20dp" launcher:pageLayoutPaddingRight="20dp" /> diff --git a/res/layout-xlarge-port/launcher.xml b/res/layout-xlarge-port/launcher.xml index 20debca..13b69fe 100644 --- a/res/layout-xlarge-port/launcher.xml +++ b/res/layout-xlarge-port/launcher.xml @@ -26,7 +26,7 @@ layout="@layout/all_apps_tabbed" android:id="@+id/all_apps_view" android:layout_width="match_parent" - android:layout_height="1040dip" + android:layout_height="1040dp" android:layout_gravity="top"/> @@ -38,7 +38,7 @@ launcher:defaultScreen="2" launcher:cellCountX="8" launcher:cellCountY="7" - launcher:pageSpacing="64dip"> + launcher:pageSpacing="64dp"> @@ -86,7 +86,7 @@ android:layout_toLeftOf="@id/configure_button" android:layout_marginLeft="@dimen/toolbar_button_spacing" android:layout_marginRight="@dimen/toolbar_button_spacing" - android:textSize="18dip" + android:textSize="18dp" android:onClick="onClickAllAppsButton" android:focusable="true" @@ -131,20 +131,19 @@ + android:background="@drawable/tab_unselected_holo" + android:tabStripEnabled="false" /> diff --git a/res/layout-xlarge/customize_paged_view_item.xml b/res/layout-xlarge/customize_paged_view_item.xml index e427345..bbc04d7 100644 --- a/res/layout-xlarge/customize_paged_view_item.xml +++ b/res/layout-xlarge/customize_paged_view_item.xml @@ -26,15 +26,7 @@ android:id="@+id/customize_icon" android:layout_width="match_parent" android:layout_height="match_parent" - android:gravity="center_horizontal" - android:paddingTop="2dip" + android:singleLine="false" + android:maxLines="1" - android:textColor="#FFFFFFFF" - android:textSize="14sp" - android:shadowColor="#FF000000" - android:shadowDx="0.0" - android:shadowDy="1.0" - android:shadowRadius="1.0" - - android:maxLines="2" - android:fadingEdge="horizontal" /> + style="@style/WorkspaceIcon.Landscape" /> diff --git a/res/layout-xlarge/customize_paged_view_widget.xml b/res/layout-xlarge/customize_paged_view_widget.xml index cfc0ca0..fab2a9b 100644 --- a/res/layout-xlarge/customize_paged_view_widget.xml +++ b/res/layout-xlarge/customize_paged_view_widget.xml @@ -18,7 +18,7 @@ xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" android:layout_width="wrap_content" - android:layout_height="425dp" + android:layout_height="365dp" android:paddingLeft="12.5dp" android:paddingRight="12.5dp" android:paddingBottom="50dp" diff --git a/res/values-xlarge/dimens.xml b/res/values-xlarge/dimens.xml index aa602be..742b59a 100644 --- a/res/values-xlarge/dimens.xml +++ b/res/values-xlarge/dimens.xml @@ -39,7 +39,7 @@ - 70dip + 90dip 180dip 10dip diff --git a/res/values-xlarge/styles.xml b/res/values-xlarge/styles.xml index bf79b4d..83cdbcc 100644 --- a/res/values-xlarge/styles.xml +++ b/res/values-xlarge/styles.xml @@ -29,11 +29,11 @@ -- cgit v1.1 From c9a961952d1a057029874f8426b90181f6876034 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Mon, 1 Nov 2010 11:52:08 -0700 Subject: Using hdpi icons in Launcher Known issue: Default activity icon is still showing up as small --- res/values-xlarge/dimens.xml | 4 ++-- res/values/dimens.xml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'res') diff --git a/res/values-xlarge/dimens.xml b/res/values-xlarge/dimens.xml index 742b59a..667f0e3 100644 --- a/res/values-xlarge/dimens.xml +++ b/res/values-xlarge/dimens.xml @@ -25,8 +25,8 @@ 10dp - - 72dp + + 72dp diff --git a/res/values/dimens.xml b/res/values/dimens.xml index c83986b..d6cd3ee 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -32,6 +32,9 @@ button cluster in landscape) --> 12dip + + 50dp + 70dip -- cgit v1.1 From 68846fdce6c01bbe474bd0c8307e1ccaac161cbc Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Fri, 29 Oct 2010 11:00:27 -0700 Subject: Initial changes to allow resolution of arbitrary clip data to widgets that support them. Change-Id: Id5dfa8436a5bf6eb7bd300ec603911a9d3698de3 --- .../external_widget_drop_list_item.xml | 39 ++++++++++++++++++++++ res/values/strings.xml | 7 ++++ 2 files changed, 46 insertions(+) create mode 100644 res/layout-xlarge/external_widget_drop_list_item.xml (limited to 'res') diff --git a/res/layout-xlarge/external_widget_drop_list_item.xml b/res/layout-xlarge/external_widget_drop_list_item.xml new file mode 100644 index 0000000..84f40ed --- /dev/null +++ b/res/layout-xlarge/external_widget_drop_list_item.xml @@ -0,0 +1,39 @@ + + + + + + + diff --git a/res/values/strings.xml b/res/values/strings.xml index 5c8f362..f26dfc8 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -77,6 +77,13 @@ %1$d x %2$d + + %1$s (%2$d x %3$d) + + Could not install clipboard item + + Select widget to create + -- cgit v1.1 From 0207c522472d7252f146f4d39efa456ca5248c6b Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Wed, 3 Nov 2010 22:12:02 -0700 Subject: Draw glow along screen edge when dragging in portrait. --- res/drawable/page_hover_left.9.png | Bin 0 -> 413 bytes res/drawable/page_hover_right.9.png | Bin 0 -> 415 bytes res/values-xlarge-port/dimens.xml | 4 ++++ 3 files changed, 4 insertions(+) create mode 100644 res/drawable/page_hover_left.9.png create mode 100644 res/drawable/page_hover_right.9.png (limited to 'res') diff --git a/res/drawable/page_hover_left.9.png b/res/drawable/page_hover_left.9.png new file mode 100644 index 0000000..5d5e0c8 Binary files /dev/null and b/res/drawable/page_hover_left.9.png differ diff --git a/res/drawable/page_hover_right.9.png b/res/drawable/page_hover_right.9.png new file mode 100644 index 0000000..1545bfe Binary files /dev/null and b/res/drawable/page_hover_right.9.png differ diff --git a/res/values-xlarge-port/dimens.xml b/res/values-xlarge-port/dimens.xml index b60635b..baa31aa 100644 --- a/res/values-xlarge-port/dimens.xml +++ b/res/values-xlarge-port/dimens.xml @@ -15,6 +15,10 @@ --> + + 40dp + 0dp 32dp -- cgit v1.1