詹子聪 il y a 5 ans
Parent
commit
b0a392cb45

+ 6 - 0
app/src/main/java/com/itant/shibei/common/ConstantUrl.java

@@ -19,6 +19,12 @@ public interface ConstantUrl {
      */
     String URL_JD_TEMPLATE_COMPUTER = "https://diy.m.jd.com/?utm_user=plusmember&ad_od=share&utm_source=androidapp&utm_medium=appshare&utm_campaign=t_335139774&utm_term=CopyURL";
 
+    /**
+     * 表情包制作
+     */
+    String URL_BIAO_QING = "https://app.xuty.tk/static/app/index.html";
+
+
     /**
      * 美团优惠1
      */

+ 6 - 0
app/src/main/java/com/itant/shibei/ui/home/tool/ToolFragment.java

@@ -32,6 +32,7 @@ public class ToolFragment extends BaseMVPFragment implements View.OnClickListene
         rootView.findViewById(R.id.fl_pc_template).setOnClickListener(this);
         rootView.findViewById(R.id.fl_weather).setOnClickListener(this);
         rootView.findViewById(R.id.fl_yiji).setOnClickListener(this);
+        rootView.findViewById(R.id.fl_biao_qing).setOnClickListener(this);
     }
 
     @Override
@@ -76,6 +77,11 @@ public class ToolFragment extends BaseMVPFragment implements View.OnClickListene
                     startActivity(new Intent(getActivity(), LoginActivity.class));
                 }
                 break;
+
+            case R.id.fl_biao_qing:
+                // 跳转表情包
+                ActivityTool.openUrl(getActivity(), ConstantUrl.URL_BIAO_QING);
+                break;
             default:
                 break;
         }

+ 36 - 0
app/src/main/res/layout/fragment_tool.xml

@@ -166,4 +166,40 @@
         </LinearLayout>
     </FrameLayout>
     <include layout="@layout/view_divider_common" />
+    <FrameLayout
+        android:id="@+id/fl_biao_qing"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:background="@color/white"
+        android:foreground="?attr/selectableItemBackground">
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:minHeight="@dimen/height_tab_bar"
+            android:orientation="vertical"
+            android:paddingStart="@dimen/activity_horizontal_margin"
+            android:paddingEnd="@dimen/activity_horizontal_margin"
+            android:paddingTop="@dimen/margin_s"
+            android:paddingBottom="@dimen/margin_s"
+            android:gravity="center_vertical">
+
+            <TextView
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="搞笑表情包"
+                android:textSize="@dimen/text_normal_p"
+                android:textColor="@color/black_text_comfortable"
+                android:textStyle="bold"/>
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_marginTop="@dimen/margin_sss"
+                android:textColor="@color/gray_text_s"
+                android:textSize="@dimen/text_normal_s"
+                android:text="为表情包配字幕并下载制作的表情包"/>
+        </LinearLayout>
+    </FrameLayout>
+    <include layout="@layout/view_divider_common" />
 </LinearLayout>