Center scroll bar for the reference design.
Scroll bar thumb is always centered withing the width of the scroll bar view. View.layout() always takes the integer value and before this change the width of thumb was even and the width of scroll bar view was odd. Hence we were seeing that scroll bar was 1 pixel off. Now making both the values odd so it can be properly centered.
Bug: 134156303
Test: Manual
Change-Id: Ie781dd9349200067cafe83ba884a57a689ac64c7
diff --git a/car-ui-lib/res/values/dimens.xml b/car-ui-lib/res/values/dimens.xml
index e90c7d5..eb4b9e1 100644
--- a/car-ui-lib/res/values/dimens.xml
+++ b/car-ui-lib/res/values/dimens.xml
@@ -60,7 +60,7 @@
<!-- Default Scroll Bar for PagedRecyclerView -->
<dimen name="car_ui_scrollbar_button_size">@dimen/car_ui_touch_target_width</dimen>
- <dimen name="car_ui_scrollbar_thumb_width">6dp</dimen>
+ <dimen name="car_ui_scrollbar_thumb_width">7dp</dimen>
<dimen name="car_ui_scrollbar_separator_margin">16dp</dimen>
<dimen name="car_ui_scrollbar_margin">@dimen/car_ui_margin</dimen>
<dimen name="car_ui_scrollbar_thumb_radius">100dp</dimen>