basbeu/theSofties

View on GitHub
app/src/main/res/layout/my_favors.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools">

    <data>
        <variable
            name="elements"
            type="ch.epfl.sweng.favors.favors.MyFavorsFragment"
            />
    </data>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="60sp"
            android:gravity="center"
            android:orientation="horizontal"
            android:layout_marginEnd="10dp"
            android:layout_marginStart="10dp">


            <TextView
                android:id="@+id/textView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:text="Your favors"
                android:textSize="24sp" />

            <android.support.design.widget.FloatingActionButton
                android:id="@+id/addNewFavor"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="4dp"
                android:layout_marginLeft="4dp"
                android:clickable="true"
                android:focusable="true"
                app:backgroundTint="@color/browser_actions_bg_grey"
                app:srcCompat="@android:drawable/ic_input_add" />


        </LinearLayout>

        <android.support.v7.widget.RecyclerView
            android:id="@+id/favorsList"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
        </android.support.v7.widget.RecyclerView>

    </LinearLayout>
</layout>