summaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2015-09-15 00:09:13 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-15 00:09:13 +0000
commit50e9686637d5eba8ce4b7cbc513ec469b2cd4e77 (patch)
tree06be2b2d3d207cc8365710bf4c624c24a60108f5 /res/layout
parent9eca34ff60a7928eee8727277f9cf16a087d1f46 (diff)
parentf3d9f829cef463eb328285ed478a9323e2c085e6 (diff)
Merge "Translate FAB up and down when Snackbar appears and disappears." into ub-contactsdialer-a-dev
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/dialtacts_activity.xml8
1 files changed, 5 insertions, 3 deletions
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.
-->
-<FrameLayout
+<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/dialtacts_mainlayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -43,7 +44,8 @@
android:layout_width="@dimen/floating_action_button_width"
android:layout_height="@dimen/floating_action_button_height"
android:layout_marginBottom="@dimen/floating_action_button_margin_bottom"
- android:layout_gravity="center_horizontal|bottom">
+ android:layout_gravity="center_horizontal|bottom"
+ app:layout_behavior="com.android.dialer.FloatingActionButtonBehavior">
<ImageButton
android:id="@+id/floating_action_button"
@@ -68,4 +70,4 @@
android:importantForAccessibility="no" />
</FrameLayout>
-</FrameLayout>
+</android.support.design.widget.CoordinatorLayout>