Przeglądaj źródła

删除无用资源5

zengjiebin 8 lat temu
rodzic
commit
df5ff3312f

+ 0 - 4
app/src/main/AndroidManifest.xml

@@ -84,10 +84,6 @@
         </provider>
 
         <activity
-            android:name="com.sheep.gamegroup.view.activity.AskRewardAct"
-            android:screenOrientation="portrait">
-        </activity>
-        <activity
             android:name="com.sheep.gamegroup.view.activity.PersionInfoAct"
             android:screenOrientation="portrait">
         </activity>

+ 56 - 0
app/src/main/java/com/kfzs/duanduan/mine/GiftpackListAdapter.java

@@ -0,0 +1,56 @@
+package com.kfzs.duanduan.mine;
+
+import android.content.Context;
+import android.support.v4.app.Fragment;
+import android.support.v4.app.FragmentManager;
+import android.support.v4.app.FragmentPagerAdapter;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.BaseAdapter;
+
+import com.sheep.jiuyan.samllsheep.R;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * 礼包 fragment adapter
+ * Created by Administrator on 2017/12/15.
+ */
+
+public class GiftpackListAdapter extends FragmentPagerAdapter {
+    private Context mContext;
+    private List<Object> mListFragment = new ArrayList<>();
+    private List<Object> mTitles = new ArrayList<>();
+
+    public GiftpackListAdapter(FragmentManager fm, Context mContext) {
+        super(fm);
+        this.mContext = mContext;
+    }
+
+    public void add(Fragment fragment, String title) {
+        mListFragment.add(fragment);
+        mTitles.add(title);
+    }
+
+    @Override
+    public Fragment getItem(int position) {
+        return (Fragment) mListFragment.get(position);
+    }
+
+    @Override
+    public int getCount() {
+        return mListFragment.size();
+    }
+
+    @Override
+    public int getItemPosition(Object object) {
+        return super.getItemPosition(object);
+    }
+
+    @Override
+    public CharSequence getPageTitle(int position) {
+        return (CharSequence) mTitles.get(position);
+    }
+}

Plik diff jest za duży
+ 0 - 41
app/src/main/java/com/sheep/gamegroup/util/Jump2View.java


Plik diff jest za duży
+ 0 - 1129
app/src/main/java/com/sheep/gamegroup/view/activity/ActMingShengWeb.java


Plik diff jest za duży
+ 0 - 1119
app/src/main/java/com/sheep/gamegroup/view/activity/ActZhongXinWeb.java


+ 0 - 32
app/src/main/java/com/sheep/gamegroup/view/activity/AskRewardAct.java

@@ -1,32 +0,0 @@
-package com.sheep.gamegroup.view.activity;
-
-import com.sheep.jiuyan.samllsheep.R;
-import com.sheep.jiuyan.samllsheep.base.BaseActivity;
-
-/**
- * Created by Administrator on 2018/3/15.
- */
-
-public class AskRewardAct extends BaseActivity {
-
-
-    @Override
-    protected int getLayoutId() {
-        return R.layout.x_ask_getmoney_act_layout;
-    }
-
-    @Override
-    public void initView() {
-
-    }
-
-    @Override
-    public void initListener() {
-
-    }
-
-    @Override
-    public void initData() {
-
-    }
-}

+ 0 - 31
app/src/main/java/com/sheep/gamegroup/view/activity/AuthenticationAct.java

@@ -1,31 +0,0 @@
-package com.sheep.gamegroup.view.activity;
-
-import com.sheep.gamegroup.presenter.AuthenticationContract;
-import com.sheep.jiuyan.samllsheep.R;
-import com.sheep.jiuyan.samllsheep.base.BaseActivity;
-
-/**
- * Created by ljy on 2018/3/17.
- */
-
-public class AuthenticationAct extends BaseActivity implements AuthenticationContract.View {
-    @Override
-    protected int getLayoutId() {
-        return R.layout.realname_authentication_layout;
-    }
-
-    @Override
-    public void initView() {
-
-    }
-
-    @Override
-    public void initListener() {
-
-    }
-
-    @Override
-    public void initData() {
-
-    }
-}

+ 0 - 30
app/src/main/java/com/sheep/gamegroup/view/activity/FriendAndRewardAct.java

@@ -1,30 +0,0 @@
-package com.sheep.gamegroup.view.activity;
-
-import com.sheep.jiuyan.samllsheep.R;
-import com.sheep.jiuyan.samllsheep.base.BaseActivity;
-
-/**
- * Created by Administrator on 2018/3/15.
- */
-
-public class FriendAndRewardAct extends BaseActivity {
-    @Override
-    protected int getLayoutId() {
-        return R.layout.xfriend_and_reward_act_layout;
-    }
-
-    @Override
-    public void initView() {
-
-    }
-
-    @Override
-    public void initListener() {
-
-    }
-
-    @Override
-    public void initData() {
-
-    }
-}

+ 2 - 0
app/src/main/java/com/sheep/gamegroup/view/activity/TaskDetailAddQQAct.java

@@ -175,6 +175,7 @@ public class TaskDetailAddQQAct extends AbsChooseImageActivity {
                             setLoaddingText("完成");
                             onGetNetImageUrl(url);
                             dismissLoaddingDialog();
+                            finish();
                         }
 
                         @Override
@@ -197,6 +198,7 @@ public class TaskDetailAddQQAct extends AbsChooseImageActivity {
                             setLoaddingText("完成");
                             onGetNetImageUrl(url);
                             dismissLoaddingDialog();
+                            finish();
                         }
 
                         @Override

+ 0 - 239
app/src/main/java/com/sheep/jiuyan/samllsheep/page/view/SlowlyProgressBar.java

@@ -1,239 +0,0 @@
-package com.sheep.jiuyan.samllsheep.page.view;
-
-import android.animation.Animator;
-import android.animation.AnimatorListenerAdapter;
-import android.animation.ObjectAnimator;
-import android.animation.ValueAnimator;
-import android.os.Handler;
-import android.os.Message;
-import android.util.Log;
-import android.view.View;
-import android.view.animation.DecelerateInterpolator;
-import android.widget.ProgressBar;
-import android.widget.RelativeLayout;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Created by 林冠宏 on 2016/7/11.
- *
- * 真正的仿微信网页打开的进度条
- *
- * 两种方式
- *     1,setLayoutParams 的形式
- *     2,动画形式(推荐)
- *
- * 下面的所有属性都可以自己采用 get set 来自定义
- *
- */
-
-public class SlowlyProgressBar {
-
-    private static final int StartAnimation = 0x12;
-
-    private Handler handler;
-    private View view;
-    private ProgressBar progressBar;
-
-    /** 当前的位移距离和速度 */
-    private int thisWidth = 0;
-    private int thisSpeed = 0;
-
-    private int progress = 0;  /** 当前的进度长度 */
-    private int record = 0;    /** 移动单位 */
-    private int width = 10;    /** 10dp each time */
-    private int height = 3;    /** 3dp */
-
-    private boolean isStart = false;
-
-    private int phoneWidth = 0; /** 屏幕宽度 */
-    private int i = 0;
-
-    /** 每次的移动记录容器,位移对应每帧时间 */
-    private List<Integer> progressQuery = new ArrayList<>();
-    private List<Integer> speedQuery    = new ArrayList<>();
-
-    /** 第一种 */
-    public SlowlyProgressBar(View view, int phoneWidth) {
-        initHandler();
-        this.phoneWidth = phoneWidth;
-        this.view = view;
-    }
-
-    /** 第二种 */
-    public SlowlyProgressBar(ProgressBar progressBar) {
-        this.progressBar = progressBar;
-    }
-
-    /** 善后工作,释放引用的持有,方能 gc 生效 */
-    public void destroy(){
-        if(progressQuery!=null){
-            progressQuery.clear();
-            progressQuery = null;
-        }
-        if(speedQuery!=null){
-            speedQuery.clear();
-            speedQuery = null;
-        }
-        view = null;
-        if(handler!=null){
-            handler.removeCallbacksAndMessages(null);
-            handler = null;
-        }
-    }
-
-    /** -------------------------------------------第二种方法-------------------------------------- */
-    /** 在 WebViewClient onPageStarted 调用 */
-    public void onProgressStart(){
-        progressBar.setVisibility(View.VISIBLE);
-        progressBar.setAlpha(1.0f);
-    }
-
-    /** 在 WebChromeClient onProgressChange 调用 */
-    public void onProgressChange(
-            int newProgress
-    ){
-        int currentProgress = progressBar.getProgress();
-        if (newProgress >= 100 && !isStart) {
-            /** 防止调用多次动画 */
-            isStart = true;
-            progressBar.setProgress(newProgress);
-            /** 开启属性动画让进度条平滑消失*/
-            startDismissAnimation(progressBar.getProgress());
-        } else {
-            /** 开启属性动画让进度条平滑递增 */
-            startProgressAnimation(newProgress,currentProgress);
-        }
-    }
-    /** -------------------------------第二种结束---------------------------- */
-
-    public void setProgress(int progress){
-        if(progress>100 || progress <= 0){ /** 不能超过100 */
-            return;
-        }
-        /** 每次传入的 width 应该是包含之前的数值,所以下面要减去 */
-        /** 下面记得转化比例,公式 (屏幕宽度 * progress / 100) */
-        this.width = (progress * phoneWidth)/100;
-
-        /** lp.width 总是获取前一次的 大小 */
-        /** 移动 100px 时的速度一次倍率 是 2 */
-        int size = progressQuery.size();
-        if(size != 0){
-            size = progressQuery.get(size-1);
-        }
-        Log.d("zzzzz","width - size = "+(width - size));
-        /** 计算倍率,2/100 = x/width */
-        int distance = width - size;
-        int speedTime;
-        if(distance<=100){
-            speedTime = 2;
-        }else{
-            speedTime = (int) ((2 * distance)/100.0);
-        }
-        /** 添加 */
-        progressQuery.add(this.width);
-        speedQuery.add(speedTime);
-        /** 开始 */
-        if(!isStart){
-            isStart = true;
-            handler.sendEmptyMessage(StartAnimation);
-        }
-    }
-
-    public SlowlyProgressBar setViewHeight(int height){
-        this.height = height;
-        return this;
-    }
-
-    private void initHandler(){
-        handler = new Handler(){
-            @Override
-            public void handleMessage(Message msg) {
-                super.handleMessage(msg);
-                switch (msg.what){
-                    case StartAnimation:
-                        /** 提取队列信息 */
-                        if(progress >= thisWidth){ /** 如果已经跑完,那么移出 */
-                            if(progressQuery.size() == i){
-                                Log.d("zzzzz","break");
-                                if(progress >= 100){ /** 全部走完,隐藏进度条 */
-                                    view.setVisibility(View.INVISIBLE);
-                                }
-                                isStart = false;
-                                break;
-                            }
-                            Log.d("zzzzz", "size is " + progressQuery.size());
-                            thisWidth = progressQuery.get(i);
-                            thisSpeed = speedQuery.get(i);
-                            i ++;
-                        }
-                        move(thisSpeed,view.getLayoutParams().width);
-                        Log.d("zzzzz", "send 100 "+thisSpeed);
-                        /** 发信息的延时长度并不会影响速度 */
-                        handler.sendEmptyMessageDelayed(StartAnimation,1);
-                        break;
-                }
-            }
-        };
-    }
-
-    /** 移动 */
-    private void move(int speedTime,int lastWidth){
-        if(speedTime > 9){
-            speedTime = 9; /** 控制最大倍率 */
-        }
-        /** 乘 3 是纠正误差 */
-        /** 原因是:px 和 db 不是对比的,个人十分建议不乘3,采用函数适配转换,下面提供个函数 */
-        progress = (record * speedTime);
-        /** 纠正 */
-        if(progress >= lastWidth){
-            view.setLayoutParams(new RelativeLayout.LayoutParams(progress,height*3));
-        }else{
-            Log.d("zzzzz","hit "+progress+"---"+lastWidth);
-        }
-        record ++;
-    }
-
-    /** 下面是动画的形式 */
-    /**
-     * progressBar 进度缓慢递增,300ms/次
-     */
-    private void startProgressAnimation(int newProgress,int currentProgress) {
-        ObjectAnimator animator = ObjectAnimator.ofInt(progressBar, "progress", currentProgress, newProgress);
-        animator.setDuration(300);
-        animator.setInterpolator(new DecelerateInterpolator()); /** 减速形式的加速器,个人喜好 */
-        animator.start();
-    }
-
-    private void startDismissAnimation(final int progress) {
-        ObjectAnimator anim = ObjectAnimator.ofFloat(progressBar, "alpha", 1.0f, 0.0f);
-        anim.setDuration(1500);  // 动画时长
-        anim.setInterpolator(new DecelerateInterpolator());     // 减速
-
-        anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
-
-            @Override
-            public void onAnimationUpdate(ValueAnimator valueAnimator) {
-                float fraction = valueAnimator.getAnimatedFraction();      // 0.0f ~ 1.0f
-                int offset = 100 - progress;
-                progressBar.setProgress((int) (progress + offset * fraction));
-            }
-        });
-
-        anim.addListener(new AnimatorListenerAdapter() {
-
-            @Override
-            public void onAnimationEnd(Animator animation) {
-                progressBar.setProgress(0);
-                progressBar.setVisibility(View.GONE);
-                isStart = false;
-            }
-        });
-        anim.start();
-    }
-
-}
-
-
-

+ 0 - 11
app/src/main/res/drawable/x_ll_bg.xml

@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<shape xmlns:android="http://schemas.android.com/apk/res/android" >
-
-    <solid android:color="@color/white_light" />
-    //这里是设置边框线的粗细和颜色
-
-
-    //角的话,里边有参数可以单独设置
-    <corners android:radius="15dp" />
-
-</shape>

+ 1 - 2
app/src/main/res/layout/credit_card_progress_query.xml

@@ -23,8 +23,7 @@
             android:layout_alignParentStart="true"
             android:layout_centerVertical="true"
             android:adjustViewBounds="true"
-            android:scaleType="fitXY"
-            android:src="@drawable/ic_gold_credit_card_2" />
+            android:scaleType="fitXY"/>
         <LinearLayout
             android:id="@+id/credit_card_task_ll"
             android:layout_width="wrap_content"

+ 1 - 2
app/src/main/res/layout/credit_card_task.xml

@@ -23,8 +23,7 @@
             android:layout_alignParentStart="true"
             android:layout_centerVertical="true"
             android:adjustViewBounds="true"
-            android:scaleType="fitXY"
-            android:src="@drawable/ic_gold_credit_card_2" />
+            android:scaleType="fitXY"/>
 
         <LinearLayout
             android:layout_width="match_parent"

+ 1 - 2
app/src/main/res/layout/diag_account_abnormal.xml

@@ -76,7 +76,6 @@
                 android:layout_height="22dp"
                 android:padding="2dp"
                 android:layout_alignParentEnd="true"
-                android:src="@mipmap/try_dialog_x"
-                android:background="@drawable/shape_black_ring"/>
+                android:src="@mipmap/try_dialog_x"/>
         </RelativeLayout>
 </FrameLayout>

+ 0 - 97
app/src/main/res/layout/realname_authentication_layout.xml

@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:orientation="vertical"
-    android:background="@color/bg_gray">
-
-    <include
-        layout="@layout/title"/>
-    <LinearLayout
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:background="@drawable/x_shap_shadow_bg_rectgangle_white"
-        android:layout_margin="@dimen/content_padding_15"
-        android:padding="@dimen/content_padding_20"
-        android:orientation="vertical">
-
-        <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:orientation="horizontal"
-            android:layout_gravity="center">
-            <TextView
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_marginRight="@dimen/content_padding_15"
-                android:text="姓名"
-                style="@style/nomal_txt_style"
-                android:layout_gravity="center"/>
-            <android.support.v7.widget.AppCompatEditText
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:text="aaaaaaaaadddd"
-                android:background="@null"
-                android:layout_gravity="right"
-                android:gravity="right"/>
-
-        </LinearLayout>
-        <View
-            android:layout_width="match_parent"
-            android:layout_height="1dp"
-            android:background="@color/bg_gray"
-            android:layout_marginTop="@dimen/content_padding"
-            android:layout_marginBottom="@dimen/content_padding"/>
-
-        <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:orientation="horizontal"
-            android:layout_gravity="center">
-            <TextView
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_marginRight="@dimen/content_padding_15"
-                android:text="身份证"
-                style="@style/nomal_txt_style"
-                android:layout_gravity="center"/>
-            <android.support.v7.widget.AppCompatEditText
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:text="aaaaaaaaadddd"
-                android:background="@null"
-                android:layout_gravity="right"
-                android:gravity="right"/>
-
-        </LinearLayout>
-        <View
-            android:layout_width="match_parent"
-            android:layout_height="1dp"
-            android:background="@color/bg_gray"
-            android:layout_marginTop="@dimen/content_padding"
-            android:layout_marginBottom="@dimen/content_padding"/>
-
-        <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:orientation="horizontal"
-            android:layout_gravity="center">
-            <TextView
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_marginRight="@dimen/content_padding_15"
-                android:text="银行卡"
-                style="@style/nomal_txt_style"
-                android:layout_gravity="center"/>
-            <android.support.v7.widget.AppCompatEditText
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:text="aaaaaaaaadddd"
-                android:background="@null"
-                android:layout_gravity="right"
-                android:gravity="right"/>
-
-        </LinearLayout>
-    </LinearLayout>
-
-</LinearLayout>

+ 1 - 1
app/src/main/res/layout/task_detail_layout.xml

@@ -35,7 +35,7 @@
                             android:id="@+id/icon_iv"
                             android:layout_width="@dimen/view_size_60"
                             android:layout_height="@dimen/view_size_60"
-                            android:src="@mipmap/ic_launcher"
+                            android:src="@mipmap/icon"
                             android:layout_centerVertical="true"/>
 
                         <RelativeLayout

+ 1 - 1
app/src/main/res/layout/task_list_item.xml

@@ -10,7 +10,7 @@
         android:id="@+id/icon_iv"
         android:layout_width="@dimen/view_size_60"
         android:layout_height="@dimen/view_size_60"
-        android:src="@mipmap/ic_launcher"
+        android:src="@mipmap/icon"
         android:layout_centerVertical="true"/>
     <LinearLayout
         android:layout_width="match_parent"

+ 0 - 49
app/src/main/res/layout/xfriend_and_reward_act_layout.xml

@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-              android:layout_width="match_parent"
-              android:layout_height="match_parent"
-              android:orientation="vertical"
-              android:background="@color/bg_gray"
-    android:baselineAligned="false">
-    <include layout="@layout/title"></include>
-
-    <LinearLayout
-        android:layout_width="match_parent"
-        android:layout_height="60dp"
-        android:background="@drawable/x_ll_bg"
-        android:layout_margin="12dp"
-        android:padding="20dp"
-        >
-        <TextView
-            android:layout_gravity="center_vertical"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:text="5位好友,为你提供了"
-            style="@style/txt_style_15"
-            />
-        <TextView
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:text="0.63元"
-            android:textStyle="bold"
-            android:layout_gravity="center_vertical"
-            android:textColor="@color/txt_red_ff4a5f"
-            />
-        <TextView
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:text="的提成"
-            android:layout_gravity="center_vertical"
-            style="@style/txt_style_15"
-            />
-    </LinearLayout>
-
-
-    <ListView
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:scrollbars="none"></ListView>
-
-
-
-</LinearLayout>

+ 4 - 4
app/src/main/res/layout/xpersion_info_act_layout.xml

@@ -100,7 +100,7 @@
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:background="@null"
-                android:src="@mipmap/ic_launcher"
+                android:src="@mipmap/icon"
                 android:layout_toLeftOf="@id/tv_more1"
                 android:layout_centerVertical="true"
 
@@ -141,7 +141,7 @@
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:background="@null"
-                android:src="@mipmap/ic_launcher"
+                android:src="@mipmap/icon"
                 android:layout_alignParentEnd="true"
                 android:layout_centerVertical="true"
                 android:textCursorDrawable="@null"
@@ -198,7 +198,7 @@
                 android:layout_width="30dp"
                 android:layout_height="30dp"
                 android:background="@null"
-                android:src="@mipmap/ic_launcher"
+                android:src="@mipmap/icon"
                 android:layout_centerInParent="true"
                 />
             <ImageView
@@ -206,7 +206,7 @@
                 android:layout_width="5dp"
                 android:layout_height="5dp"
                 android:background="@null"
-                android:src="@mipmap/ic_launcher"
+                android:src="@mipmap/icon"
                 android:layout_centerInParent="true"
                 />