Show correct number of columns for tab grid as orientation changes
Add ComponentCallbacks in TabListMediator to listen to orientation changes and change span count of GridLayoutManager accordingly. TODO: * Fix the problem of landscape Thumbnail showing incorrectly in portrait mode. * Dynamically set span count base on screen width, min width of cards and paddings. Bug: 945740 Change-Id: I961274492e35c097e6440caeaff78ae7cd7d83db Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1559238Reviewed-by:Yusuf Ozuysal <yusufo@chromium.org> Reviewed-by:
Wei-Yin Chen (陳威尹) <wychen@chromium.org> Commit-Queue: Yue Zhang <yuezhanggg@google.com> Cr-Commit-Position: refs/heads/master@{#649319}
Showing
Please register or sign in to comment