2018-SWENG/2018-SWENG-Radius

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

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".browseProfiles.BrowseProfilesUnblockedActivity">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center_horizontal"
        android:gravity="center_horizontal"
        android:orientation="vertical">
        <include
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            layout="@layout/toolbar"
            />

        <RelativeLayout
            android:id="@+id/profileLayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="#fff"
            android:paddingBottom="10sp">

            <de.hdodenhof.circleimageview.CircleImageView
                xmlns:app="http://schemas.android.com/apk/res-auto"
                android:id="@+id/userPhoto"
                android:layout_width="150dp"
                android:layout_height="150dp"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="15dp"
                android:src="@drawable/user_photo_default"
                android:elevation="5dp"
                android:padding="5dp"
                android:scaleType="centerCrop"
                app:srcCompat="@drawable/ic_man"
                app:civ_border_width="3dp"
                app:civ_border_color="#ecf0f1"/>

            <TextView
                android:id="@+id/userNickname"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/userPhoto"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="5dp"
                android:text="Default"
                android:textColor="#636e72"
                android:textSize="24sp"
                android:textStyle="bold" />

            <TextView
                android:id="@+id/userStatus"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/userNickname"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="8dp"
                android:textColor="#636e72"
                android:textSize="14sp" />

            <TextView
            android:id="@+id/userInterests"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/userStatus"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="9dp"/>

            <TextView
                android:id="@+id/userLanguages"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/userInterests"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="9dp"/>

        </RelativeLayout>


        <Button
            android:id="@+id/add_user"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="8dp"
            android:layout_marginBottom="8dp"
            android:text="ADD USER"
            android:textAppearance="@style/TextAppearance.AppCompat.Button" />

    </LinearLayout>
</android.support.constraint.ConstraintLayout>