<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white"
    tools:context="com.sheep.gamegroup.view.activity.ActGcGameAppDetail">

    <com.scwang.smartrefresh.layout.SmartRefreshLayout
        android:id="@+id/refresh"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <android.support.v4.widget.NestedScrollView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="fill_vertical"
            android:fillViewport="true"
            android:scrollbars="none"
            app:layout_behavior="@string/appbar_scrolling_view_behavior">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:focusable="true"
                android:focusableInTouchMode="true"
                android:orientation="vertical">

                <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content">

                    <ImageView
                        android:id="@+id/gc_game_app_detail_iv"
                        android:layout_width="match_parent"
                        android:layout_height="216dp"
                        android:scaleType="centerCrop"
                        android:src="@drawable/loading_01" />
                    <ImageView
                        android:id="@+id/gc_game_app_detail_iv2"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:adjustViewBounds="true"
                        android:visibility="gone"
                        android:scaleType="fitXY"
                        android:src="@drawable/loading_01" />

                    <ImageView
                        android:layout_width="?attr/actionBarSize"
                        android:layout_height="?attr/actionBarSize"
                        android:layout_marginTop="@dimen/status_bar_height"
                        android:gravity="center_vertical"
                        android:onClick="onClickBackImg"
                        android:scaleType="centerInside"
                        android:src="@drawable/narrow_back_black" />

                    <ImageView
                        android:layout_width="?attr/actionBarSize"
                        android:layout_height="?attr/actionBarSize"
                        android:layout_alignParentEnd="true"
                        android:layout_marginTop="@dimen/status_bar_height"
                        android:gravity="center_vertical"
                        android:onClick="onClickShareImg"
                        android:scaleType="centerInside"
                        android:src="@mipmap/share" />
                    <ImageView
                        android:id="@+id/gc_game_app_detail_play_iv"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_centerInParent="true"
                        android:visibility="gone"
                        android:src="@drawable/ic_play_but_image"/>

                </RelativeLayout>

                <android.support.constraint.ConstraintLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content">

                    <ImageView
                        android:id="@+id/gc_game_app_detail_icon"
                        android:layout_width="84dp"
                        android:layout_height="84dp"
                        android:layout_marginStart="16dp"
                        android:layout_marginTop="20dp"
                        android:layout_marginBottom="20dp"
                        android:src="@drawable/icon_lj"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintStart_toStartOf="parent"
                        app:layout_constraintTop_toTopOf="parent" />

                    <TextView
                        android:id="@+id/gc_game_app_detail_name"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="13dp"
                        android:text="永恒仙域"
                        android:textColor="#ff333333"
                        android:textSize="13sp"
                        app:layout_constraintStart_toEndOf="@id/gc_game_app_detail_icon"
                        app:layout_constraintTop_toTopOf="@+id/gc_game_app_detail_icon" />

                    <android.support.v7.widget.RecyclerView
                        android:id="@+id/gc_game_app_detail_tag_list"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintEnd_toEndOf="parent"
                        app:layout_constraintStart_toStartOf="@id/gc_game_app_detail_name"
                        app:layout_constraintTop_toTopOf="parent" />

                    <TextView
                        android:id="@+id/gc_game_app_detail_bt1"
                        android:layout_width="60dp"
                        android:layout_height="26dp"
                        android:background="@drawable/selector_button_stroke_main"
                        android:gravity="center"
                        android:onClick="onClickFollowTv"
                        android:text="@string/loading"
                        android:textColor="@color/selector_color_stoke_main_btn"
                        android:textSize="13sp"
                        app:layout_constraintBottom_toBottomOf="@id/gc_game_app_detail_icon"
                        app:layout_constraintStart_toStartOf="@id/gc_game_app_detail_name" />

                    <TextView
                        android:id="@+id/gc_game_app_detail_bt2"
                        android:layout_width="60dp"
                        android:layout_height="26dp"
                        android:layout_marginStart="25dp"
                        android:background="@drawable/selector_button_full_main"
                        android:gravity="center"
                        android:text="下载"
                        android:textColor="@color/white"
                        android:textSize="13sp"
                        app:layout_constraintBottom_toBottomOf="@id/gc_game_app_detail_icon"
                        app:layout_constraintStart_toEndOf="@id/gc_game_app_detail_bt1" />
                </android.support.constraint.ConstraintLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="10dp"
                    android:background="#fff5f5f5" />

                <android.support.design.widget.TabLayout
                    android:id="@+id/tabLayout"
                    style="@style/style_tab"
                    android:layout_height="48dp"
                    app:tabIndicatorHeight="2dp" />

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


                <com.kfzs.android.view.widget.WrapContentHeightViewPager
                    android:id="@+id/viewPager"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_marginTop="@dimen/content_padding_15"
                    android:minHeight="@dimen/view_size_100"
                    app:layout_behavior="@string/appbar_scrolling_view_behavior" />

            </LinearLayout>

        </android.support.v4.widget.NestedScrollView>

    </com.scwang.smartrefresh.layout.SmartRefreshLayout>

    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:layout_marginBottom="60dp"
        android:layout_alignParentBottom="true"
        android:visibility="gone"
        android:background="#e5e5e5" />

    <TextView
        style="@style/style_button"
        android:layout_width="match_parent"
        android:layout_alignParentBottom="true"
        android:onClick="onClickDownloadReceiveWelfare"
        android:visibility="gone"
        android:text="下载领取福利" />

    <com.kfzs.duanduan.view.DragRelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_alignParentEnd="true"
        android:layout_marginTop="229dp"
        android:onClick="onClickPlusDrag"
        android:paddingTop="@dimen/content_padding_10"
        android:paddingBottom="@dimen/content_padding_10">

        <ImageView
            android:id="@+id/write_comment"
            android:layout_width="45dp"
            android:layout_height="wrap_content"
            android:adjustViewBounds="true"
            android:scaleType="fitXY"/>
    </com.kfzs.duanduan.view.DragRelativeLayout>
</RelativeLayout>