aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorMatthew Wong <wongma@protonmail.ch>2015-07-17 22:18:41 -0400
committerMatthew Wong <wongma@protonmail.ch>2015-07-17 22:18:41 -0400
commit395309e39e591c7ae76c27027b696456efd5b21a (patch)
tree09bfbcc587bf32f78f3629a6113f41d728e49977 /app/src/main/res/layout
parent61ae170f6cef761407216dcf545ebb80410ca023 (diff)
Use android support library (for fab)
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/password_recycler_view.xml29
1 files changed, 15 insertions, 14 deletions
diff --git a/app/src/main/res/layout/password_recycler_view.xml b/app/src/main/res/layout/password_recycler_view.xml
index b9a4231f..1b922a17 100644
--- a/app/src/main/res/layout/password_recycler_view.xml
+++ b/app/src/main/res/layout/password_recycler_view.xml
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- xmlns:fab="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- tools:context="com.zeapo.pwdstore.PasswordFragment">
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ tools:context="com.zeapo.pwdstore.PasswordFragment">
<android.support.v7.widget.RecyclerView
android:id="@+id/pass_recycler"
@@ -17,17 +17,18 @@
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"/>
- <com.melnykov.fab.FloatingActionButton
+ <android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:src="@drawable/ic_action_new"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_alignParentRight="true"
+ android:layout_gravity="bottom|end"
+ app:elevation="6dp"
+ app:pressedTranslationZ="12dp"
+ app:backgroundTint="@color/blue_grey_500"
+ app:rippleColor="@color/blue_grey_50"
+ app:borderWidth="0dp"
+ android:layout_margin="@dimen/fab_compat_margin"
android:layout_alignParentBottom="true"
- android:layout_margin="@dimen/activity_vertical_margin"
- android:onClick="createPassword"
- fab:fab_colorNormal="@color/blue_grey_500"
- fab:fab_colorPressed="@color/blue_grey_800"
- fab:fab_colorRipple="@color/blue_grey_50"/>
+ android:layout_alignParentRight="true"/>
</RelativeLayout>