|
|
@@ -0,0 +1,217 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<com.flipboard.bottomsheet.BottomSheetLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:fitsSystemWindows="true">
|
|
|
+
|
|
|
+ <android.support.design.widget.CoordinatorLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <android.support.design.widget.AppBarLayout
|
|
|
+ android:id="@+id/appbar_act_game_details"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/white_light"
|
|
|
+ android:fitsSystemWindows="true">
|
|
|
+ <!--标题栏-->
|
|
|
+
|
|
|
+
|
|
|
+ <android.support.design.widget.CollapsingToolbarLayout
|
|
|
+ android:id="@+id/toolbar_layout_act_game_details"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:fitsSystemWindows="true"
|
|
|
+ app:contentScrim="?attr/colorPrimary"
|
|
|
+ app:expandedTitleTextAppearance="@style/TextAppearance.Design.CollapsingToolbar.Expanded"
|
|
|
+ app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
|
|
+
|
|
|
+ <!--大图-->
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:fitsSystemWindows="true"
|
|
|
+ android:gravity="center_horizontal"
|
|
|
+ app:layout_scrollFlags="scroll|enterAlways">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/find_game_iv"
|
|
|
+ android:layout_width="@dimen/find_icon_with"
|
|
|
+ android:layout_height="@dimen/find_icon_with"
|
|
|
+ android:layout_marginTop="@dimen/find_game_top"
|
|
|
+ android:src="@drawable/loading_01" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/find_game_name_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/find_game_top2"
|
|
|
+ android:text="@string/app_name"
|
|
|
+ android:textColor="@color/title"
|
|
|
+ android:textSize="16sp" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_game_tag"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/find_game_top3"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:orientation="horizontal"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/find_game_info_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="190dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:text="厂商:网易 | 版本号:7.9"
|
|
|
+ android:textColor="@color/black_666666"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ <android.support.v7.widget.AppCompatRatingBar
|
|
|
+ android:id="@+id/find_game_xin"
|
|
|
+ style="@style/style_rating_bar"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/find_game_top210"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:isIndicator="true"
|
|
|
+ android:numStars="5"
|
|
|
+ android:rating="1.5"
|
|
|
+ android:stepSize="0.5" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/welfare_gift_layout"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:layout_marginTop="@dimen/find_game_top6"
|
|
|
+ android:orientation="horizontal">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/welfare_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="@dimen/content_padding_3"
|
|
|
+ android:background="@mipmap/welfare_gift_img_bg"
|
|
|
+ android:text="123"
|
|
|
+ android:textSize="10sp"
|
|
|
+ android:textColor="@color/white"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/gift_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="@dimen/content_padding_3"
|
|
|
+ android:background="@mipmap/welfare_gift_img_bg"
|
|
|
+ android:text="礼包"
|
|
|
+ android:textSize="10sp"
|
|
|
+ android:layout_marginStart="@dimen/content_padding_15"
|
|
|
+ android:textColor="@color/white"/>
|
|
|
+ </LinearLayout>
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <android.support.v7.widget.Toolbar
|
|
|
+ android:id="@+id/toolbar_act_game_details"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="?attr/actionBarSize"
|
|
|
+ app:contentInsetStart="0dp"
|
|
|
+ app:layout_collapseMode="pin"
|
|
|
+ app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
|
|
+ app:title="Toolbar"
|
|
|
+ app:titleTextColor="@color/white">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="?attr/actionBarSize"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingLeft="0dp">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/img_baseactivity_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:paddingEnd="@dimen/content_padding"
|
|
|
+ android:paddingStart="@dimen/content_padding"
|
|
|
+ android:scaleType="centerInside"
|
|
|
+ android:src="@drawable/narrow_back_black" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/txt_baseactivity_title"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="游戏标题"
|
|
|
+ android:textColor="@color/black_text_deep"
|
|
|
+ android:textSize="@dimen/text_size_4"/>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/ibtn_baseactivity_right"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:paddingEnd="@dimen/content_padding"
|
|
|
+ android:paddingStart="@dimen/content_padding"
|
|
|
+ android:background="@color/translate"
|
|
|
+ android:src="@mipmap/share"
|
|
|
+ android:gravity="center"
|
|
|
+ android:visibility="invisible"/>
|
|
|
+ </LinearLayout>
|
|
|
+ </android.support.v7.widget.Toolbar>
|
|
|
+ </android.support.design.widget.CollapsingToolbarLayout>
|
|
|
+ <!--选项卡-->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <android.support.design.widget.TabLayout
|
|
|
+ android:id="@+id/tabLayout"
|
|
|
+ style="@style/style_tab"
|
|
|
+ app:tabIndicatorHeight="2dp"
|
|
|
+ android:layout_height="48dp"/>
|
|
|
+ <include layout="@layout/line_1px_hor" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </android.support.design.widget.AppBarLayout>
|
|
|
+
|
|
|
+ <android.support.v4.widget.NestedScrollView
|
|
|
+ android:id="@+id/nestedScrollView"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginBottom="48dp"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:fillViewport="false"
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
+
|
|
|
+ <com.kfzs.duanduan.view.ViewPagerAutoHeigh
|
|
|
+ android:id="@+id/viewpager_act_game_details"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+
|
|
|
+ </android.support.v4.widget.NestedScrollView>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="bottom"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <include layout="@layout/line_1px_hor" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/find_game_down_tv"
|
|
|
+ style="@style/style_button"
|
|
|
+ android:layout_centerInParent="true"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:text="下载" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </android.support.design.widget.CoordinatorLayout>
|
|
|
+</com.flipboard.bottomsheet.BottomSheetLayout>
|