<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/project_search_result_view"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:background="@color/transparent"
  android:focusable="true"
  android:foreground="@drawable/click_indicator_light"
  android:orientation="vertical"
  android:paddingTop="@dimen/search_padding_y"
  android:paddingStart="@dimen/search_padding_x"
  android:paddingEnd="@dimen/search_padding_x">

  <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_marginEnd="@dimen/grid_1"
    android:layout_marginStart="@dimen/grid_1"
    android:orientation="horizontal">

    <ImageView
      android:id="@+id/project_image_view"
      android:layout_width="@dimen/search_result_photo_width"
      android:layout_height="@dimen/search_result_photo_height"
      android:layout_marginEnd="@dimen/grid_2"
      android:adjustViewBounds="true"
      android:background="@drawable/gray_gradient"
      android:scaleType="centerCrop"
      android:elevation="3dp"
      tools:ignore="ContentDescription,UnusedAttribute" />

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

      <TextView
        android:id="@+id/project_name_text_view"
        style="@style/BodyPrimaryMedium"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:maxLines="2"
        android:ellipsize="end"
        android:layout_marginBottom="@dimen/grid_2"
        tools:text="Somebody Once Told Me"/>

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

        <TextView
          android:id="@+id/search_result_percent_funded_text_view"
          style="@style/Caption1PrimaryMedium"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textColor="@color/ksr_text_green_700"
          android:textStyle="bold"
          android:layout_marginEnd="@dimen/grid_1_half"
          tools:text="10,000%"/>

        <TextView
          android:id="@+id/search_result_funded_text_view"
          style="@style/Caption1Secondary"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginEnd="@dimen/grid_2"
          tools:text="funded"/>

        <TextView
          android:id="@+id/search_result_deadline_countdown_text_view"
          style="@style/Caption1PrimaryMedium"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginEnd="@dimen/grid_1_half"
          tools:text="25"/>

        <TextView
          android:id="@+id/search_result_deadline_unit_text_view"
          style="@style/Caption1Secondary"
          android:maxLines="1"
          android:ellipsize="end"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          tools:text="days to go"/>

      </LinearLayout>

    </LinearLayout>

  </LinearLayout>

  <View
    android:layout_width="match_parent"
    android:layout_height="1dp"
    android:layout_marginTop="@dimen/grid_2"
    android:background="@color/ksr_navy_300" />

</LinearLayout>
