From f3d9f829cef463eb328285ed478a9323e2c085e6 Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Fri, 11 Sep 2015 00:47:31 -0400 Subject: Translate FAB up and down when Snackbar appears and disappears. This is implements custom behavior according the Material Design spec that the Snackbar cannot obscure the FAB. Converts the dialtacts activity layout to a CoordinatorLayout and attaches the FloatingActionButtonBehavior to the FAB. Bug: 23687913 Change-Id: Ic4d0493db415bb97cf7e21de4f23a02df9f753b1 --- res/layout/dialtacts_activity.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'res') diff --git a/res/layout/dialtacts_activity.xml b/res/layout/dialtacts_activity.xml index 0f1f2bbdb..782d4f310 100644 --- a/res/layout/dialtacts_activity.xml +++ b/res/layout/dialtacts_activity.xml @@ -13,8 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - + android:layout_gravity="center_horizontal|bottom" + app:layout_behavior="com.android.dialer.FloatingActionButtonBehavior"> - + -- cgit v1.2.3