<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:card_view="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/project_card_view_group"
  android:layout_height="wrap_content"
  android:layout_width="match_parent">

  <android.support.v7.widget.CardView
    android:id="@+id/project_card_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    card_view:cardCornerRadius="0dp"
    card_view:cardBackgroundColor="@color/transparent"
    card_view:cardElevation="@dimen/card_elevation"
    android:foreground="@drawable/click_indicator_light"
    android:focusable="true"
    android:layout_marginBottom="@dimen/project_card_margin_bottom"
    android:layout_marginTop="@dimen/project_card_margin_top"
    android:layout_marginStart="@dimen/card_margin_x"
    android:layout_marginEnd="@dimen/card_margin_x">

    <LinearLayout
      android:orientation="vertical"
      android:background="@color/white"
      android:layout_width="match_parent"
      android:layout_height="wrap_content">

      <include layout="@layout/project_card_photo_view" />

      <LinearLayout
        android:id="@+id/project_card_info"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingTop="@dimen/grid_4"
        android:paddingStart="@dimen/grid_4"
        android:paddingEnd="@dimen/grid_4"
        android:orientation="vertical">

        <TextView
          android:id="@+id/name_and_blurb_text_view"
          style="@style/TextPrimary"
          android:textSize="@dimen/headline"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:ellipsize="end"
          android:maxLines="3"
          tools:text="Project name here: somebody once told me the world world is gonna"/>

        <ProgressBar
          style="@style/ProgressBar"
          android:visibility="visible"
          android:layout_marginTop="@dimen/grid_5"
          android:id="@+id/percentage_funded"
          android:layout_width="match_parent"
          android:layout_height="@dimen/progress_bar_height"
          android:max="100"
          android:minHeight="@dimen/progress_bar_min_height"
          android:progress="50"/>

      </LinearLayout>

      <include layout="@layout/project_state_view"
        android:layout_marginTop="@dimen/grid_3"
        android:layout_marginStart="@dimen/grid_4"
        android:layout_marginEnd="@dimen/grid_4"
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        android:id="@+id/project_state_view_group"/>

      <include layout="@layout/project_card_stats_view"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_marginTop="@dimen/grid_3"
        android:layout_marginBottom="@dimen/grid_4"
        android:layout_marginStart="@dimen/grid_4"
        android:layout_marginEnd="@dimen/grid_4"/>

    </LinearLayout>

  </android.support.v7.widget.CardView>

  <include layout="@layout/project_metadata_view"/>

  <LinearLayout
    android:id="@+id/friend_backing_group"
    android:layout_below="@id/project_card_view"
    android:visibility="visible"
    android:layout_marginTop="@dimen/grid_1"
    android:layout_marginBottom="@dimen/grid_2"
    android:layout_marginStart="@dimen/grid_7_half"
    android:layout_marginEnd="@dimen/grid_7_half"
    android:orientation="horizontal"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">

    <ImageView
      android:id="@+id/friend_backing_avatar"
      android:layout_gravity="center_vertical"
      android:layout_marginEnd="@dimen/grid_1"
      android:layout_width="@dimen/grid_4"
      android:layout_height="@dimen/grid_4"
      tools:ignore="ContentDescription"
      tools:background="@color/blue"/>

    <TextView
      android:id="@+id/friend_backing_message"
      style="@style/Caption1PrimaryMedium"
      android:layout_gravity="center_vertical"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      tools:text="Dancing Hot Dog, Frank, and 1 more are backers."/>

  </LinearLayout>

</RelativeLayout>
