zengjiebin лет назад: 7
Родитель
Сommit
37a338f2ea

+ 0 - 1
app/src/main/java/com/sheep/gamegroup/module/game/fragment/FgtGameCenter.java

@@ -13,7 +13,6 @@ import com.sheep.gamegroup.util.KeyEventUtil;
 import com.sheep.gamegroup.util.ViewUtil;
 import com.sheep.gamegroup.view.activity.ActMain;
 import com.sheep.gamegroup.view.adapter.TitleFragmentListAdapter;
-import com.sheep.gamegroup.view.fragment.FgtGiftCenter;
 import com.sheep.jiuyan.samllsheep.R;
 import com.sheep.jiuyan.samllsheep.base.BaseFragment;
 import com.sheep.jiuyan.samllsheep.utils.G;

+ 40 - 0
app/src/main/java/com/sheep/gamegroup/module/game/fragment/FgtGiftCenter.java

@@ -0,0 +1,40 @@
+package com.sheep.gamegroup.module.game.fragment;
+
+import android.support.v7.widget.RecyclerView;
+import android.view.View;
+import android.widget.EditText;
+
+import com.sheep.gamegroup.util.Jump2View;
+import com.sheep.jiuyan.samllsheep.R;
+import com.sheep.jiuyan.samllsheep.base.BaseFragment;
+
+import butterknife.BindView;
+
+/**
+ * Created by realicing on 2019/3/13.
+ * realicing@sina.com
+ * 小绵羊3.5.1新增 -- 游戏礼包改版
+ */
+public class FgtGiftCenter extends BaseFragment{
+
+    @BindView(R.id.fgt_gift_center_type_list)
+    RecyclerView fgt_gift_center_type_list;
+    @BindView(R.id.fgt_gift_center_x_list)
+    RecyclerView fgt_gift_center_x_list;
+    @BindView(R.id.fgt_gift_center_input_et)
+    EditText fgt_gift_center_input_et;
+    @Override
+    public int getLayoutId() {
+        return R.layout.fgt_gift_center;
+    }
+
+    @Override
+    public void onViewCreated() {
+        initView();
+    }
+    public void initView() {
+        View wc_all_gift = findViewById(R.id.wc_all_gift);
+        wc_all_gift.setOnClickListener(view -> Jump2View.getInstance().goMyWelfare(getActivity()));
+    }
+
+}

+ 69 - 0
app/src/main/res/layout/fgt_gift_center.xml

@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<com.scwang.smartrefresh.layout.SmartRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/refresh"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+    <android.support.v4.widget.NestedScrollView
+        android:id="@+id/scrollView"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:scrollbars="none">
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:focusable="true"
+            android:focusableInTouchMode="true"
+            android:orientation="vertical">
+
+            <RelativeLayout
+                android:id="@+id/wc_gift_center_title_container"
+                style="@style/style_wc_rl">
+
+                <TextView
+                    style="@style/style_wc_line_title"
+                    android:text="礼包中心" />
+
+                <TextView
+                    android:id="@+id/wc_all_gift"
+                    style="@style/style_wc_more"
+                    android:text="我的礼包" />
+            </RelativeLayout>
+
+            <android.support.v7.widget.AppCompatAutoCompleteTextView
+                android:id="@+id/fgt_gift_center_input_et"
+                android:layout_width="match_parent"
+                android:layout_height="30dp"
+                android:layout_marginStart="16dp"
+                android:layout_marginTop="21dp"
+                android:layout_marginEnd="16dp"
+                android:background="@drawable/shape_f5_solid_rectangle_15"
+                android:drawableStart="@mipmap/sous"
+                android:drawablePadding="6dp"
+                android:gravity="center|start"
+                android:hint="搜索游戏"
+                android:imeOptions="actionSearch"
+                android:maxLength="40"
+                android:paddingStart="6dp"
+                android:paddingEnd="6dp"
+                android:singleLine="true"
+                android:textColor="@color/black_6_3"
+                android:textColorHint="#CCCCCC"
+                android:textSize="12sp" />
+
+            <android.support.v7.widget.RecyclerView
+                android:id="@+id/fgt_gift_center_type_list"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"/>
+
+            <android.support.v7.widget.RecyclerView
+                android:id="@+id/fgt_gift_center_x_list"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content" />
+
+        </LinearLayout>
+
+    </android.support.v4.widget.NestedScrollView>
+
+</com.scwang.smartrefresh.layout.SmartRefreshLayout>

BIN
app/src/main/res/mipmap-xxhdpi/haohualb.png


BIN
app/src/main/res/mipmap-xxhdpi/haohualb_c.png


BIN
app/src/main/res/mipmap-xxhdpi/libaotj.png


BIN
app/src/main/res/mipmap-xxhdpi/libaotj_c.png


BIN
app/src/main/res/mipmap-xxhdpi/remenlb.png


BIN
app/src/main/res/mipmap-xxhdpi/remenlb_c.png


BIN
app/src/main/res/mipmap-xxhdpi/sous.png


BIN
app/src/main/res/mipmap-xxhdpi/xinshoulb.png


BIN
app/src/main/res/mipmap-xxhdpi/xinshoulb_c.png