Merge change 22154 into eclair
* changes: Fix fastscroll overlay size on WVGA by using dip.
This commit is contained in:
@@ -55,7 +55,7 @@ class FastScroller {
|
|||||||
private int mThumbY;
|
private int mThumbY;
|
||||||
|
|
||||||
private RectF mOverlayPos;
|
private RectF mOverlayPos;
|
||||||
private int mOverlaySize = 104;
|
private int mOverlaySize;
|
||||||
|
|
||||||
private AbsListView mList;
|
private AbsListView mList;
|
||||||
private boolean mScrollCompleted;
|
private boolean mScrollCompleted;
|
||||||
@@ -119,10 +119,10 @@ class FastScroller {
|
|||||||
|
|
||||||
private void useThumbDrawable(Context context, Drawable drawable) {
|
private void useThumbDrawable(Context context, Drawable drawable) {
|
||||||
mThumbDrawable = drawable;
|
mThumbDrawable = drawable;
|
||||||
mThumbW = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
|
mThumbW = context.getResources().getDimensionPixelSize(
|
||||||
64, context.getResources().getDisplayMetrics());
|
com.android.internal.R.dimen.fastscroll_thumb_width);
|
||||||
mThumbH = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
|
mThumbH = context.getResources().getDimensionPixelSize(
|
||||||
52, context.getResources().getDisplayMetrics());
|
com.android.internal.R.dimen.fastscroll_thumb_height);
|
||||||
mChangedBounds = true;
|
mChangedBounds = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,7 +138,9 @@ class FastScroller {
|
|||||||
mScrollCompleted = true;
|
mScrollCompleted = true;
|
||||||
|
|
||||||
getSectionsFromIndexer();
|
getSectionsFromIndexer();
|
||||||
|
|
||||||
|
mOverlaySize = context.getResources().getDimensionPixelSize(
|
||||||
|
com.android.internal.R.dimen.fastscroll_overlay_size);
|
||||||
mOverlayPos = new RectF();
|
mOverlayPos = new RectF();
|
||||||
mScrollFade = new ScrollFade();
|
mScrollFade = new ScrollFade();
|
||||||
mPaint = new Paint();
|
mPaint = new Paint();
|
||||||
|
|||||||
@@ -28,4 +28,10 @@
|
|||||||
<dimen name="toast_y_offset">64dip</dimen>
|
<dimen name="toast_y_offset">64dip</dimen>
|
||||||
<!-- Height of the status bar -->
|
<!-- Height of the status bar -->
|
||||||
<dimen name="status_bar_height">25dip</dimen>
|
<dimen name="status_bar_height">25dip</dimen>
|
||||||
|
<!-- Size of the fastscroll hint letter -->
|
||||||
|
<dimen name="fastscroll_overlay_size">104dp</dimen>
|
||||||
|
<!-- Width of the fastscroll thumb -->
|
||||||
|
<dimen name="fastscroll_thumb_width">64dp</dimen>
|
||||||
|
<!-- Height of the fastscroll thumb -->
|
||||||
|
<dimen name="fastscroll_thumb_height">52dp</dimen>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user