blob: 95c76ae8ee64fcb435334922765b874c3b9b611f [file] [log] [blame]
Brian Attwell89ee3952014-07-09 16:40:39 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
17<!-- This expects to be included inside a RelativeLayout -->
18<FrameLayout
19 xmlns:android="http://schemas.android.com/apk/res/android"
20 android:id="@+id/floating_action_button_container"
21 android:layout_width="@dimen/floating_action_button_width"
22 android:layout_height="@dimen/floating_action_button_height"
23 android:layout_marginEnd="@dimen/floating_action_button_margin_right"
24 android:layout_marginBottom="@dimen/floating_action_button_margin_bottom"
Brian Attwell865847b2015-04-20 14:40:17 -070025 android:background="@drawable/fab_blue"
Brian Attwell89ee3952014-07-09 16:40:39 -070026 android:layout_alignParentEnd="true"
27 android:layout_alignParentBottom="true">
28
29 <ImageButton
30 android:id="@+id/floating_action_button"
31 android:layout_width="match_parent"
32 android:layout_height="match_parent"
33 android:background="@drawable/floating_action_button"
Brian Attwell96107e62014-08-06 22:29:19 -070034 android:tint="@color/floating_action_button_icon_color"
Brian Attwell89ee3952014-07-09 16:40:39 -070035 android:contentDescription="@string/action_menu_add_new_contact_button"
Wenyi Wang8cd7c5c2016-06-16 14:03:42 -070036 android:src="@drawable/ic_add"/>
Brian Attwell89ee3952014-07-09 16:40:39 -070037</FrameLayout>