Add caret shaped all app pull up handle to page indicator.

b/28917826

> PageIndicator is also added in landscape
> Touch delegate allows the active touch area to be 36dp

Change-Id: If00f45fc88a13cd5a6759d771313439eb58561e3
This commit is contained in:
Hyunyoung Song committed 2016-06-15 12:51:30 -07:00
1 parent b25b2c41c2
commit 7d2fc8120e
11 files changed
+198 -36

No files matched your search

+3 -6
View File
@@ -457,17 +457,14 @@ public class DeviceProfile {
// Layout the page indicators
View pageIndicator = launcher.findViewById(R.id.page_indicator);
if (pageIndicator != null) {
if (hasVerticalBarLayout) {
// Hide the page indicators when we have vertical search/hotseat
pageIndicator.setVisibility(View.GONE);
} else {
lp = (FrameLayout.LayoutParams) pageIndicator.getLayoutParams();
if (!hasVerticalBarLayout) {
// Put the page indicators above the hotseat
lp = (FrameLayout.LayoutParams) pageIndicator.getLayoutParams();
lp.gravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM;
lp.width = LayoutParams.WRAP_CONTENT;
lp.bottomMargin = hotseatBarHeightPx;
pageIndicator.setLayoutParams(lp);
}
pageIndicator.setLayoutParams(lp);
}
// Layout the Overview Mode