<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/sl_white_gray"
    android:descendantFocusability="blocksDescendants"
    android:padding="10dip">

    <!--The icon of game-->

    <include
        android:id="@+id/layout_list_item_game_info_logo"
        layout="@layout/logo_60dp"
        android:layout_width="@dimen/app_icon_wh_height_small"
        android:layout_height="@dimen/app_icon_wh_height_small"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:layout_alignParentTop="true"
        android:layout_margin="@dimen/content_padding_default" />
    <!--<ImageView-->
        <!--android:id="@+id/img_list_item_game_info_logo"-->
        <!--android:layout_width="@dimen/app_icon_wh_height_small"-->
        <!--android:layout_height="@dimen/app_icon_wh_height_small"-->
        <!--android:layout_alignParentLeft="true"-->
        <!--android:layout_alignParentStart="true"-->
        <!--android:layout_alignParentTop="true"-->
        <!--android:src="@mipmap/bg_default_icon" />-->

    <ImageView
        android:id="@+id/img_listview_item_game_info"
        android:layout_width="@dimen/app_logo_icon"
        android:layout_height="@dimen/app_logo_icon"
        android:layout_alignRight="@id/layout_list_item_game_info_logo"
        android:layout_alignTop="@id/layout_list_item_game_info_logo"
        android:layout_margin="1dp"
        android:src="@drawable/gift_icon"
        android:visibility="gone" />

    <!--Install button-->
    <com.kfzs.duanduan.view.KFProgressButton
        android:id="@+id/btn_list_item_game_info"
        style="?small.button"
        android:layout_alignParentRight="true"
        android:layout_centerVertical="true"
        android:layout_marginRight="5dp"
        android:text="@string/install" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="55dp"
        android:layout_centerVertical="true"
        android:layout_marginLeft="3dip"
        android:layout_marginRight="5dip"
        android:layout_toLeftOf="@id/btn_list_item_game_info"
        android:layout_toRightOf="@id/layout_list_item_game_info_logo"
        android:orientation="vertical">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:orientation="horizontal"
            android:gravity="center_vertical">

            <TextView
                android:id="@+id/txt_list_item_game_info_title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textColor="@color/black"
                android:textSize="@dimen/app_size_tv_small"
                android:visibility="visible"
                android:text=""/>

            <include
                layout="@layout/discount_layout"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"/>
        </LinearLayout>

        <!--The details information-->
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:gravity="center_vertical"
            android:orientation="horizontal">

            <RatingBar
                android:id="@+id/ratbar_list_item_game_info"
                style="?star_style"
                android:layout_width="wrap_content"
                android:isIndicator="true"
                android:numStars="5"
                android:rating="0" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="5dp"
                android:layout_marginRight="5dp"
                android:text="|"
                android:textColor="@color/gray" />

            <TextView
                android:id="@+id/txt_list_item_game_info_down_count"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textColor="@color/black"
                android:textSize="@dimen/app_size_tv_tiny" />

        </LinearLayout>
        <!--The tags list-->

        <TextView
            android:id="@+id/txt_list_item_game_info_type"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:ellipsize="end"
            android:singleLine="true"
            android:textColor="@color/gray"
            android:textSize="@dimen/app_size_tv_tiny" />

    </LinearLayout>


</RelativeLayout>
