summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/Folder.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2011-07-22 14:36:03 -0700
committerAdam Cohen <adamcohen@google.com>2011-07-22 14:37:20 -0700
commitf4bb1cdecd3cf866a1d87b7b8560234fa7dd4cc5 (patch)
treebe58b63b45d721b38fd76ae88161c92a70159c35 /src/com/android/launcher2/Folder.java
parent1228b3bc8e523ad07bcac602d89890690c9f06ef (diff)
downloadpackages_apps_trebuchet-f4bb1cdecd3cf866a1d87b7b8560234fa7dd4cc5.zip
packages_apps_trebuchet-f4bb1cdecd3cf866a1d87b7b8560234fa7dd4cc5.tar.gz
packages_apps_trebuchet-f4bb1cdecd3cf866a1d87b7b8560234fa7dd4cc5.tar.bz2
Cleaning up folder layout, still pending final assets / cell size
-> see bug 5044356 Change-Id: I80a3cd90145de2a774565aae04809d8c1d04ccd5
Diffstat (limited to 'src/com/android/launcher2/Folder.java')
-rw-r--r--src/com/android/launcher2/Folder.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/com/android/launcher2/Folder.java b/src/com/android/launcher2/Folder.java
index d3b5d41..428d7b3 100644
--- a/src/com/android/launcher2/Folder.java
+++ b/src/com/android/launcher2/Folder.java
@@ -35,12 +35,10 @@ import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
-import android.view.View.MeasureSpec;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.DecelerateInterpolator;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethodManager;
-import android.widget.AdapterView;
import android.widget.LinearLayout;
import android.widget.TextView;
@@ -717,9 +715,8 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams();
int width = getPaddingLeft() + getPaddingRight() + mContent.getDesiredWidth();
- // Technically there is no padding at the bottom, but we add space equal to the padding
- // and have to account for that here.
- int height = getPaddingTop() + mContent.getDesiredHeight() + mFolderNameHeight;
+ int height = getPaddingTop() + getPaddingBottom() + mContent.getDesiredHeight()
+ + mFolderNameHeight;
DragLayer parent = (DragLayer) mLauncher.findViewById(R.id.drag_layer);
parent.getDescendantRectRelativeToSelf(mFolderIcon, mTempRect);
@@ -783,9 +780,8 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int width = getPaddingLeft() + getPaddingRight() + mContent.getDesiredWidth();
- // Technically there is no padding at the bottom, but we add space equal to the padding
- // and have to account for that here.
- int height = getPaddingTop() + mContent.getDesiredHeight() + mFolderNameHeight;
+ int height = getPaddingTop() + getPaddingBottom() + mContent.getDesiredHeight()
+ + mFolderNameHeight;
int contentWidthSpec = MeasureSpec.makeMeasureSpec(mContent.getDesiredWidth(),
MeasureSpec.EXACTLY);