From 928cc599c2ab9cd94bb90de91f082277307528af Mon Sep 17 00:00:00 2001 From: Chris Banes Date: Wed, 30 Nov 2016 01:31:50 +0000 Subject: [PATCH] am b27dc24f: am ec2310cd: Merge "Add ability to snap AppBarLayout children to edges" into mnc-ub-dev * commit 'b27dc24f1e66228c02e96ce9014f6b1ef7e024c8': Add ability to snap AppBarLayout children to edges GitOrigin-RevId=ab7326eb4c724c7ab61cb71f890a5fe6a1d18fc6 PiperOrigin-RevId: 140550061 --- api/current.txt | 1 + res/values/attrs.xml | 4 + .../support/design/widget/AppBarLayout.java | 92 +++++++++++++------ 3 files changed, 71 insertions(+), 26 deletions(-) diff --git a/api/current.txt b/api/current.txt index 30da82ab5..2506089c1 100644 --- a/api/current.txt +++ b/api/current.txt @@ -49,6 +49,7 @@ package android.support.design.widget { field public static final int SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED = 8; // 0x8 field public static final int SCROLL_FLAG_EXIT_UNTIL_COLLAPSED = 2; // 0x2 field public static final int SCROLL_FLAG_SCROLL = 1; // 0x1 + field public static final int SCROLL_FLAG_SNAP = 16; // 0x10 } public static abstract interface AppBarLayout.OnOffsetChangedListener { diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 478c07b09..a89d9a23b 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -207,6 +207,10 @@ reached the end of it's scroll range, the remainder of this view will be scrolled into view. --> + + +