summaryrefslogtreecommitdiffstats
path: root/res/layout/profile_tabs.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout/profile_tabs.xml')
-rw-r--r--res/layout/profile_tabs.xml32
1 files changed, 21 insertions, 11 deletions
diff --git a/res/layout/profile_tabs.xml b/res/layout/profile_tabs.xml
index 7c8f6cb..b29c1ae 100644
--- a/res/layout/profile_tabs.xml
+++ b/res/layout/profile_tabs.xml
@@ -14,7 +14,7 @@
limitations under the License.
-->
-<LinearLayout
+<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -24,22 +24,32 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
- <android.support.v4.view.PagerTabStrip
- android:id="@+id/tabs"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="top"
- android:textAppearance="@style/TextAppearance.PagerTabs"
- android:paddingStart="@dimen/pager_tabs_padding"
- android:paddingEnd="@dimen/pager_tabs_padding">
- </android.support.v4.view.PagerTabStrip>
+
</android.support.v4.view.ViewPager>
+ <FrameLayout
+ android:id="@+id/floating_action_button_container"
+ android:background="@drawable/fab_accent"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentBottom="true"
+ android:layout_margin="16dp"
+ android:elevation="4dp"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content">
+ <ImageButton
+ android:id="@+id/floating_action_button"
+ android:layout_width="56dp"
+ android:layout_height="56dp"
+ android:background="@drawable/floating_action_button"
+ android:src="@drawable/ic_menu_add"/>
+ </FrameLayout>
+
<TextView
android:id="@+id/empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/profile_empty_list_profiles_off"
+ android:layout_centerInParent="true"
android:gravity="center" />
-</LinearLayout>
+</RelativeLayout>