<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  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"
  android:orientation="vertical"
  android:id="@+id/project_scroll_view"
  android:layout_width="match_parent"
  android:background="@color/white"
  android:layout_height="wrap_content">

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

  <LinearLayout
    android:id="@+id/project_info"
    android:orientation="vertical"
    android:background="@color/white"
    android:layout_marginTop="@dimen/grid_3"
    android:layout_marginStart="@dimen/project_padding_x"
    android:layout_marginEnd="@dimen/project_padding_x"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <TextView
      android:id="@+id/project_name"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      style="@style/Title2"
      android:paddingBottom="@dimen/grid_1_half"
      tools:ignore="InconsistentLayout"
      tools:text="Project name" />

    <LinearLayout
      android:weightSum="3"
      android:orientation="horizontal"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content">

      <TextView
        android:id="@+id/creator_name"
        android:focusable="true"
        android:layout_weight="3"
        android:maxLines="1"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:background="@drawable/click_indicator_light_masked"
        style="@style/BodySecondary"
        tools:ignore="InconsistentLayout"
        tools:text="Creator name" />

      <LinearLayout
        android:id="@+id/backer_label"
        android:visibility="gone"
        android:orientation="horizontal"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        tools:ignore="InconsistentLayout">

        <TextView
          android:text="@string/project_creator_youre_a_backer"
          android:maxLines="1"
          style="@style/BodySecondary"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" />

        <com.kickstarter.ui.views.IconTextView
          app:iconType="ss_kickstarter"
          android:id="@+id/backer_badge"
          android:layout_gravity="center_vertical"
          android:textSize="@dimen/caption_1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="1dp"
          android:layout_marginStart="@dimen/grid_1_half"
          android:text="@string/backer_icon"
          android:textColor="@color/green"/>
      </LinearLayout>

    </LinearLayout>

    <TextView
      android:id="@+id/blurb"
      style="@style/BodyPrimary"
      android:focusable="true"
      android:background="@drawable/click_indicator_light_masked"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="@dimen/grid_2"
      android:layout_marginBottom="@dimen/grid_2"
      android:paddingBottom="@dimen/grid_1"
      tools:ignore="InconsistentLayout"
      tools:text="Description about this project." />

    <LinearLayout
      android:orientation="horizontal"
      android:gravity="center_vertical"
      android:layout_width="match_parent"
      android:layout_height="wrap_content">

      <com.kickstarter.ui.views.IconTextView
        android:id="@+id/category_icon"
        android:contentDescription="@string/discovery_baseball_card_accessibility_category_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/local_offer_icon"
        style="@style/BodyPrimary"/>

      <TextView
        android:id="@+id/category"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingStart="@dimen/grid_1_half"
        android:paddingEnd="@dimen/grid_2"
        style="@style/BodyPrimary"
        tools:ignore="InconsistentLayout"
        tools:text="Category name" />

      <com.kickstarter.ui.views.IconTextView
        android:id="@+id/location_icon"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/location_on_icon"
        android:contentDescription="@string/discovery_baseball_card_accessibility_location_label"
        style="@style/BodyPrimary" />

      <TextView
        android:id="@+id/location"
        android:ellipsize="end"
        android:maxLines="1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingStart="@dimen/grid_1_half"
        android:paddingEnd="@dimen/grid_1_half"
        style="@style/BodyPrimary"
        tools:text="Location"
        tools:ignore="InconsistentLayout" />

    </LinearLayout>

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

    <LinearLayout
      android:id="@+id/project_state_view_group"
      android:visibility="gone"
      android:gravity="center_vertical"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      android:layout_marginTop="@dimen/grid_4"
      android:layout_marginBottom="@dimen/grid_2"
      android:paddingTop="@dimen/grid_2"
      android:paddingStart="@dimen/grid_4"
      android:paddingEnd="@dimen/grid_4"
      android:paddingBottom="@dimen/grid_2">

      <TextView
        android:id="@+id/project_state_header_text_view"
        style="@style/BodyPrimaryMedium"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        tools:text="Funded!" />

      <TextView
        android:id="@+id/project_state_subhead_text_view"
        style="@style/Caption1Primary"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        tools:text="This project was funded on" />

    </LinearLayout>

    <LinearLayout
      android:id="@+id/project_stats_view"
      android:orientation="vertical"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginBottom="@dimen/grid_5">

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

      <TextView
        android:id="@+id/usd_conversion_text_view"
        android:visibility="gone"
        style="@style/Caption1Secondary"
        android:layout_marginTop="@dimen/grid_3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        tools:text="Converted from" />

    </LinearLayout>

    <LinearLayout
      android:id="@+id/project_social_view"
      android:orientation="horizontal"
      android:gravity="center_vertical"
      android:visibility="gone"
      android:paddingTop="@dimen/grid_1"
      android:paddingBottom="@dimen/grid_1"
      android:layout_marginBottom="@dimen/grid_4"
      android:layout_width="match_parent"
      android:layout_height="wrap_content">

      <ImageView
        android:id="@+id/project_social_image"
        android:visibility="gone"
        android:layout_width="@dimen/project_social_photo_height"
        android:layout_height="@dimen/project_social_photo_height"
        tools:ignore="ContentDescription" />

      <TextView
        android:id="@+id/project_social_text"
        style="@style/Caption1PrimaryMedium"
        android:layout_marginStart="@dimen/grid_2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        tools:text="Gina Binetti, Christopher Wright, and 5 more are backers" />

    </LinearLayout>

  </LinearLayout>

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

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

</LinearLayout>
