Change NavBar to transparent black

b/30615471

Change-Id: I7885e8a7fd63ee10c9b0107087046730e8acfde9
This commit is contained in:
Hyunyoung Song
2016-08-05 10:59:17 -07:00
parent 598e184352
commit 4ebc3d070f
7 changed files with 21 additions and 10 deletions

View File

@@ -136,11 +136,11 @@ public class BaseRecyclerViewFastScrollBar {
// Setter/getter for the track bar width for animations
public void setTrackWidth(int width) {
mInvalidateRect.set(mThumbOffset.x - mThumbCurvature, 0, mThumbOffset.x + mThumbWidth,
mRv.getHeight());
mRv.getVisibleHeight());
mTrackWidth = width;
updateThumbPath();
mInvalidateRect.union(mThumbOffset.x - mThumbCurvature, 0, mThumbOffset.x + mThumbWidth,
mRv.getHeight());
mRv.getVisibleHeight());
mRv.invalidate(mInvalidateRect);
}
@@ -198,7 +198,7 @@ public class BaseRecyclerViewFastScrollBar {
if (mIsDragging) {
// Update the fastscroller section name at this touch position
int top = mRv.getBackgroundPadding().top;
int bottom = mRv.getHeight() - mRv.getBackgroundPadding().bottom - mThumbHeight;
int bottom = top + mRv.getVisibleHeight() - mThumbHeight;
float boundedY = (float) Math.max(top, Math.min(bottom, y - mTouchOffset));
String sectionName = mRv.scrollToPositionAtProgress((boundedY - top) /
(bottom - top));
@@ -230,7 +230,8 @@ public class BaseRecyclerViewFastScrollBar {
// Draw the scroll bar track and thumb
if (mTrackPaint.getAlpha() > 0) {
canvas.drawRect(mThumbOffset.x, 0, mThumbOffset.x + mThumbWidth, mRv.getHeight(), mTrackPaint);
canvas.drawRect(mThumbOffset.x, 0, mThumbOffset.x + mThumbWidth,
mRv.getVisibleHeight(), mTrackPaint);
}
canvas.drawPath(mThumbPath, mThumbPaint);