diff options
author | Chih-Chung Chang <chihchung@google.com> | 2011-09-19 11:09:39 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2011-09-20 12:18:21 +0800 |
commit | bc2154199aee16762e3758ad0cfed685323d9a9f (patch) | |
tree | 918ecdee41cbc146e3f4585953b9e9292ede9d1c /src/com/android/gallery3d/data/MediaItem.java | |
parent | 6c8d0fd879242f78a0c1a7daf4c037043663a49f (diff) | |
download | android_packages_apps_Gallery2-bc2154199aee16762e3758ad0cfed685323d9a9f.tar.gz android_packages_apps_Gallery2-bc2154199aee16762e3758ad0cfed685323d9a9f.tar.bz2 android_packages_apps_Gallery2-bc2154199aee16762e3758ad0cfed685323d9a9f.zip |
Fix 5299746: New UI layout, part 2.
- Replace various icons and add xhdpi/sw600dp-mdpi versions of them.
- When user press on the thumbnails, show a color overlay on it.
- For a wide (w/h > 2) picture, add panorama overlay on it.
- Align photo count label position when there is no icon for it.
- Adjust offline page layout.
Change-Id: I327d25806e99843bfa05d3ca0e9be5a8f9375595
Diffstat (limited to 'src/com/android/gallery3d/data/MediaItem.java')
-rw-r--r-- | src/com/android/gallery3d/data/MediaItem.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/data/MediaItem.java b/src/com/android/gallery3d/data/MediaItem.java index 090625192..a0c6d8c9e 100644 --- a/src/com/android/gallery3d/data/MediaItem.java +++ b/src/com/android/gallery3d/data/MediaItem.java @@ -78,4 +78,9 @@ public abstract class MediaItem extends MediaObject { } public abstract String getMimeType(); + + // Returns width and height of the media item. + // Returns 0, 0 if the information is not available. + public abstract int getWidth(); + public abstract int getHeight(); } |