diff options
author | Andrew Sapperstein <asapperstein@google.com> | 2012-06-05 15:08:33 -0700 |
---|---|---|
committer | Andrew Sapperstein <asapperstein@google.com> | 2012-06-06 18:32:05 -0700 |
commit | e4798f5d8bd07eb39bf9dac57fd2a304b53916a0 (patch) | |
tree | 2413892285b37d07a6829ab4988e668d70b72563 /res/values-land | |
parent | ae15d3a343c0e0e42e15e16b4a3cbad0799e0823 (diff) | |
download | android_packages_apps_UnifiedEmail-e4798f5d8bd07eb39bf9dac57fd2a304b53916a0.tar.gz android_packages_apps_UnifiedEmail-e4798f5d8bd07eb39bf9dac57fd2a304b53916a0.tar.bz2 android_packages_apps_UnifiedEmail-e4798f5d8bd07eb39bf9dac57fd2a304b53916a0.zip |
Reworked attachment grid to use a dp-based layout.
Instead of having a resource selection for the
number of columns (which requires
a different value for portrait and landscape as well
as every screen size), utilize a minimum dip tile size
that figures out, while measuring, the appropriate number
of columns to use and expands the tile size to fit the
entire width with that number of columns.
As a result we have only two different values
for the minimum tile size. 120dip is the default and
180dip for sw600dp. Verified that the appropriate
number of columns occurs on all Google experience
devices.
Additionally, added a header and bar for the attachments
so that the user can clearly see where attachments
begin.
Change-Id: I48b1645e1004596747c1585e44a387b1231bd661
Diffstat (limited to 'res/values-land')
-rw-r--r-- | res/values-land/constants.xml | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/res/values-land/constants.xml b/res/values-land/constants.xml deleted file mode 100644 index fc5925fd2..000000000 --- a/res/values-land/constants.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2012 Google Inc. - Licensed to The Android Open Source Project. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<resources> - <!-- Determines the number of columns in an AttachmentTileRow --> - <integer name="attachment_tile_column_count">3</integer> -</resources> |