summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorPaul Soulos <psoulos@google.com>2014-05-27 16:21:23 -0700
committerBrian Attwell <brianattwell@google.com>2014-06-11 14:17:34 -0700
commit2b9563d4c3aa7d3f57ab16ea4cb98cd9e588c50d (patch)
tree2157c7ae84b10ee196b086b4854500ec0c0c4b3b /res/layout
parent39a7dee5afe13de8e84afa3177ba60949b865a5e (diff)
downloadpackages_apps_Contacts-2b9563d4c3aa7d3f57ab16ea4cb98cd9e588c50d.tar.gz
packages_apps_Contacts-2b9563d4c3aa7d3f57ab16ea4cb98cd9e588c50d.tar.bz2
packages_apps_Contacts-2b9563d4c3aa7d3f57ab16ea4cb98cd9e588c50d.zip
Uses a floating action button for adding new contact
Change-Id: I47cc26e857f7b3da8537bc52c8cb08b969af44b7
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/people_activity.xml22
1 files changed, 20 insertions, 2 deletions
diff --git a/res/layout/people_activity.xml b/res/layout/people_activity.xml
index 589e4a950..bcdf08f25 100644
--- a/res/layout/people_activity.xml
+++ b/res/layout/people_activity.xml
@@ -14,7 +14,7 @@
limitations under the License.
-->
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/list_container"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -42,4 +42,22 @@
android:layout_height="match_parent"
android:layout_width="match_parent" />
</FrameLayout>
-</FrameLayout>
+
+ <FrameLayout
+ android:id="@+id/floating_action_button_container"
+ android:layout_width="@dimen/floating_action_button_width"
+ android:layout_height="@dimen/floating_action_button_height"
+ android:layout_marginRight="@dimen/floating_action_button_margin_right"
+ android:layout_marginBottom="@dimen/floating_action_button_margin_bottom"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentBottom="true">
+
+ <ImageButton
+ android:id="@+id/floating_action_button"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/floating_action_button"
+ android:contentDescription="@string/action_menu_add_new_contact_button"
+ android:src="@drawable/ic_person_add_24dp"/>
+ </FrameLayout>
+</RelativeLayout>