Browse Source

修改部分bug

liujiangyao 8 years ago
parent
commit
2f65f43817

+ 1 - 2
app/src/main/AndroidManifest.xml

@@ -225,7 +225,7 @@
             android:screenOrientation="portrait"/>
         <activity android:name="com.sheep.gamegroup.view.activity.DialogActivity"
             android:theme="@style/MyDialogActivityTheme"
-            android:screenOrientation="portrait"/>
+            />
         <activity android:name="com.sheep.gamegroup.view.activity.TaskListAct"
             android:screenOrientation="portrait"/>
         <activity android:name="com.sheep.gamegroup.view.activity.WithdrawalListAct"
@@ -338,7 +338,6 @@
         <activity
             android:name="com.tencent.connect.common.AssistActivity"
             android:screenOrientation="portrait"
-            android:theme="@android:style/Theme.Translucent.NoTitleBar"
             android:configChanges="orientation|keyboardHidden|screenSize"/>
 
 

+ 39 - 5
app/src/main/java/com/sheep/gamegroup/view/activity/ChangeTelAct.java

@@ -1,6 +1,9 @@
 package com.sheep.gamegroup.view.activity;
 
 import android.os.Bundle;
+import android.support.v7.widget.AppCompatEditText;
+import android.view.View;
+import android.widget.LinearLayout;
 import android.widget.TextView;
 
 import com.sheep.gamegroup.absBase.BaseActivity;
@@ -19,8 +22,22 @@ import butterknife.OnClick;
 public class ChangeTelAct extends BaseActivity {
     @BindView(R.id.tel_tv)
     TextView telTv;
-    @BindView(R.id.sure_tv)
+    @BindView(R.id.change_sure_tv)
+    TextView change_sure_tv;
+    @BindView(R.id.sure_change_tv)
     TextView sureTv;
+    @BindView(R.id.show_change_layout)
+    LinearLayout showChangeLayout;
+    @BindView(R.id.phone_et_account)
+    AppCompatEditText phoneEtAccount;
+    @BindView(R.id.phone_et_code)
+    AppCompatEditText phoneEtCode;
+    @BindView(R.id.phone_btn_code)
+    TextView phoneBtnCode;
+    @BindView(R.id.phone_sure_tv)
+    TextView phoneSureTv;
+    @BindView(R.id.change_phone_layout)
+    LinearLayout changePhoneLayout;
 
     @Override
     protected int getLayoutId() {
@@ -31,7 +48,7 @@ public class ChangeTelAct extends BaseActivity {
     public void initView() {
         ButterKnife.bind(this);
         TitleBarUtils.getInstance()
-                .setTitle(this,"绑定手机号")
+                .setTitle(this, "绑定手机号")
                 .setTitleFinish(this);
 
     }
@@ -46,8 +63,25 @@ public class ChangeTelAct extends BaseActivity {
 
     }
 
-    @OnClick(R.id.sure_tv)
-    public void onViewClicked() {
-        Jump2View.getInstance().goPhoneLoginView(ChangeTelAct.this, 1);
+    @Override
+    protected void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        // TODO: add setContentView(...) invocation
+        ButterKnife.bind(this);
+    }
+
+    @OnClick({R.id.change_sure_tv, R.id.phone_btn_code, R.id.phone_sure_tv, R.id.sure_change_tv})
+    public void onViewClicked(View view) {
+        switch (view.getId()) {
+            case R.id.change_sure_tv:
+                break;
+            case R.id.phone_btn_code:
+                break;
+            case R.id.phone_sure_tv:
+                break;
+            case R.id.sure_change_tv:
+                Jump2View.getInstance().goPhoneLoginView(ChangeTelAct.this, 1);
+                break;
+        }
     }
 }

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

@@ -17,7 +17,7 @@ import butterknife.OnClick;
  */
 
 public class ChangeWxOrTelAct extends BaseActivity {
-    @BindView(R.id.sure_tv)
+    @BindView(R.id.change_sure_tv)
     TextView sureTv;
 
     @Override
@@ -43,7 +43,7 @@ public class ChangeWxOrTelAct extends BaseActivity {
     public void initData() {
 
     }
-    @OnClick(R.id.sure_tv)
+    @OnClick(R.id.change_sure_tv)
     public void onViewClicked() {
         Jump2View.getInstance().goBindOrChangeWeixinView(ChangeWxOrTelAct.this, true);
     }

+ 19 - 91
app/src/main/java/com/sheep/gamegroup/view/activity/DialogActivity.java

@@ -1,12 +1,11 @@
 package com.sheep.gamegroup.view.activity;
 
 import android.app.Activity;
+import android.content.Intent;
 import android.os.Build;
 import android.os.Bundle;
 import android.os.Handler;
 import android.os.Message;
-import android.preference.DialogPreference;
-import android.support.annotation.NonNull;
 import android.support.annotation.Nullable;
 import android.support.annotation.RequiresApi;
 import android.util.Log;
@@ -17,7 +16,6 @@ import android.webkit.WebView;
 import android.webkit.WebViewClient;
 import android.widget.ImageView;
 import android.widget.TextView;
-import android.widget.Toast;
 
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONArray;
@@ -26,6 +24,7 @@ import com.bumptech.glide.Glide;
 import com.bumptech.glide.request.RequestOptions;
 import com.kfzs.duanduan.event.BigEvent;
 import com.kfzs.duanduan.event.EventTypes;
+import com.kfzs.duanduan.services.KFDownloadServices;
 import com.kfzs.duanduan.utils.dlg.DeviceUtils;
 import com.sheep.gamegroup.di.components.DaggerTaskDialogComponent;
 import com.sheep.gamegroup.di.modules.TaskDialogModule;
@@ -37,8 +36,7 @@ import com.sheep.gamegroup.presenter.TaskDialogPresenter;
 import com.sheep.gamegroup.util.DeviceUtil;
 import com.sheep.gamegroup.util.Jump2View;
 import com.sheep.gamegroup.util.MyDbManager;
-import com.sheep.gamegroup.util.MyListview;
-import com.sheep.gamegroup.view.adapter.DownLoadTvAdp;
+import com.sheep.gamegroup.util.MyListview;;
 import com.sheep.gamegroup.view.adapter.TaskStateAdapter;
 import com.sheep.gamegroup.view.customview.SProgress;
 import com.sheep.jiuyan.samllsheep.R;
@@ -57,8 +55,6 @@ import org.wlf.filedownloader.FileDownloader;
 import org.wlf.filedownloader.listener.OnDetectBigUrlFileListener;
 import org.wlf.filedownloader.listener.OnDownloadFileChangeListener;
 import org.wlf.filedownloader.listener.OnFileDownloadStatusListener;
-import org.xutils.ex.DbException;
-import org.xutils.x;
 
 import java.io.File;
 import java.util.ArrayList;
@@ -83,8 +79,6 @@ public class DialogActivity extends Activity implements TaskDialogContract.View
     TextView dialogItemNameTv;
     @BindView(R.id.dialog_item_size_tv)
     TextView dialogItemSizeTv;
-    @BindView(R.id.start_stask_sprogress)
-    SProgress startStaskSprogress;
     @BindView(R.id.doalog_item_get_rewards_tv)
     TextView doalogItemGetRewardsTv;
     @BindView(R.id.webview)
@@ -93,8 +87,6 @@ public class DialogActivity extends Activity implements TaskDialogContract.View
     TextView start_task_tv;
     @BindView(R.id.listview)
     MyListview listview;
-    @BindView(R.id.listview_down)
-    MyListview listview_down;
     private TaskEty task_entity;
     private List<TaskState> stateList = new ArrayList<>();//状态列表
     private TaskStateAdapter stateAdapter;
@@ -106,11 +98,7 @@ public class DialogActivity extends Activity implements TaskDialogContract.View
     private boolean isDownLoad = false;//是否下载
     private String buttonStr = "开始任务";//是否下载
     private Activity activity;
-    /**
-     * 下载
-     */
-    private DownLoadTvAdp loadTvAdp;
-    private List<DownloadInfo> infoList = new ArrayList<>();
+    Intent intentService;
 
     @Inject
     TaskDialogPresenter preference;
@@ -123,14 +111,12 @@ public class DialogActivity extends Activity implements TaskDialogContract.View
                 case 0:
                     task_entity.setRunTask(1);
                     setBtnState();
-                    loadTvAdp.notifyDataSetChanged();
                     break;
                 case 1:
                     Bundle bundle = msg.getData();
                     long total = bundle.getLong("total");
                     long current = bundle.getLong("current");
 
-                    startStaskSprogress.setProgress((int) (current*100/total));
                     start_task_tv.setText((int) (current*100/total));
                     break;
             }
@@ -143,6 +129,7 @@ public class DialogActivity extends Activity implements TaskDialogContract.View
         setContentView(R.layout.download_item_dialog);
         ButterKnife.bind(this);
         activity = this;
+        intentService = new Intent(activity, KFDownloadServices.class);
         initViews();
         initDatas();
         doFiler();
@@ -161,11 +148,6 @@ public class DialogActivity extends Activity implements TaskDialogContract.View
 
 //        isHaveLoad();
 //        downLoadApk();
-        /**
-         * 下载
-         */
-        loadTvAdp = new DownLoadTvAdp(activity, infoList);
-        listview_down.setAdapter(loadTvAdp);
 
         setBtnState();
 
@@ -178,7 +160,6 @@ public class DialogActivity extends Activity implements TaskDialogContract.View
 
     private void initViews() {
 
-//        startStaskSprogress.setVisibility(View.GONE);
         task_entity = (TaskEty) getIntent().getSerializableExtra("task_entity");
         if (task_entity == null) {
             finish();
@@ -209,7 +190,7 @@ public class DialogActivity extends Activity implements TaskDialogContract.View
 
     }
 
-    @OnClick({R.id.doalog_item_get_rewards_tv, R.id.dialog_item_x, R.id.start_task_tv, R.id.start_stask_sprogress})
+    @OnClick({R.id.doalog_item_get_rewards_tv, R.id.dialog_item_x, R.id.start_task_tv})
     public void onViewClicked(View view) {
         switch (view.getId()) {
             case R.id.doalog_item_get_rewards_tv:
@@ -223,21 +204,6 @@ public class DialogActivity extends Activity implements TaskDialogContract.View
             case R.id.start_task_tv:
                 startStask();
                 break;
-            case R.id.start_stask_sprogress:
-//                refresh();
-                try {
-                    downloadManager.startDownload(
-                            downloadInfo.getPkgName(),
-                            downloadInfo.getUrl(),
-                            downloadInfo.getLabel(),
-                            downloadInfo.getFileSavePath(), "",
-                            downloadInfo.isAutoResume(),
-                            downloadInfo.isAutoRename(),
-                            null);
-                } catch (DbException ex) {
-                    Toast.makeText(x.app(), "添加下载失败", Toast.LENGTH_LONG).show();
-                }
-                break;
         }
     }
 
@@ -274,51 +240,6 @@ public class DialogActivity extends Activity implements TaskDialogContract.View
     }
 
     /**
-     * 下载游戏
-     */
-    private void downLoadApk(){
-
-        start_task_tv.setVisibility(View.GONE);
-        startStaskSprogress.setVisibility(View.VISIBLE);
-        if (task_entity != null) {
-            ClassFileHelper.getInstance().createSDDirection();
-            File mApkPath = new File(ClassFileHelper.DIR, task_entity.getTask_name() + ClassFileHelper.FILE_SUFFIX);
-            if (!mApkPath.exists()) {
-//                new File(mApkPath.getAbsolutePath());
-                try{
-
-                    downloadInfo = DownloadManager.getInstance().startDownloadOne(task_entity.getPackage_names(),
-                            task_entity.getDownload_link(), task_entity.getTask_name(),
-                            mApkPath.getAbsolutePath(), task_entity.getIcon(), true, false, null);
-                    return;
-                }catch (Exception e){
-                    e.printStackTrace();
-                }
-                DownloadInfo downloadInfo = MyDbManager.getInstance().dbFindDownLoad(task_entity.getTask_name(), mApkPath.getAbsolutePath());
-                if(downloadInfo == null){
-                    downloadInfo = new DownloadInfo();
-                    downloadInfo.setUrl(task_entity.getDownload_link());
-                    downloadInfo.setAutoRename(false);
-                    downloadInfo.setAutoResume(true);
-                    downloadInfo.setLabel(task_entity.getTask_name());
-                    downloadInfo.setFileSavePath(mApkPath.getAbsolutePath());
-                    downloadInfo.setIcon(task_entity.getIcon());
-                    downloadInfo.setState(DownloadState.STARTED);
-                    downloadInfo.setPkgName(task_entity.getPackage_names());
-                    MyDbManager.getInstance().saveOrUpdateUser(downloadInfo);//保存到数据库
-                }
-            } else {
-                PackageUtil.installApk(getApplicationContext(), mApkPath.getAbsolutePath());
-            }
-
-
-        }
-        /**
-         * 下载
-         */
-
-    }
-    /**
      * 判断apk是否下载过
      */
     private DownloadInfo isHaveLoad(){
@@ -342,8 +263,6 @@ public class DialogActivity extends Activity implements TaskDialogContract.View
                 }else{
 //                    start_task_tv.setText("继续下载");
                 }
-                infoList.clear();
-                infoList.add(downloadInfo);
             }
         }
         return downloadInfo;
@@ -373,10 +292,6 @@ public class DialogActivity extends Activity implements TaskDialogContract.View
             }
         }
         start_task_tv.setText(buttonStr);
-
-        loadTvAdp.setTaskState(type);
-        loadTvAdp.addTaskPreference(preference);
-        loadTvAdp.addTaskEty(task_entity);
     }
 
     /**
@@ -506,10 +421,23 @@ public class DialogActivity extends Activity implements TaskDialogContract.View
     private void doFiler(){
         FileDownloader.registerDownloadStatusListener(onFileDownloadStatusListener);
         FileDownloader.registerDownloadFileChangeListener(mOnDownloadFileChangeListener);
+
+        try{
+
+//            intent.setAction("ITOP.MOBILE.SIMPLE.SERVICE.SENSORSERVICE");
+            stopService(intentService);
+        }catch (Exception e){
+            e.printStackTrace();
+        }
     }
     private void unFiler(){
         FileDownloader.unregisterDownloadStatusListener(onFileDownloadStatusListener);
         FileDownloader.unregisterDownloadFileChangeListener(mOnDownloadFileChangeListener);
+        try {
+            startService(intentService);
+        }catch (Exception e){
+            e.printStackTrace();
+        }
     }
     private void startFiler(){
         ClassFileHelper.getInstance().createSDDirection();

+ 10 - 5
app/src/main/java/com/sheep/jiuyan/samllsheep/utils/PackageUtil.java

@@ -92,11 +92,16 @@ public class PackageUtil {
         File file = new File(path);
         Intent intent = new Intent(Intent.ACTION_VIEW);
         intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
-        if (Build.VERSION.SDK_INT >= 24) { //判读版本是否在7.0以上
-            Uri apkUri = FileProvider.getUriForFile(context, SheepApp.mContext.getPackageName() + ".fileprovider", file);
-            intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
-            intent.setDataAndType(apkUri, "application/vnd.android.package-archive");
-        } else {
+        try{
+            if (Build.VERSION.SDK_INT >= 24) { //判读版本是否在7.0以上
+                Uri apkUri = FileProvider.getUriForFile(context, SheepApp.mContext.getPackageName() + ".fileprovider", file);
+                intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
+                intent.setDataAndType(apkUri, "application/vnd.android.package-archive");
+            } else {
+                intent.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive");
+            }
+        }catch (Exception e){
+            e.printStackTrace();
             intent.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive");
         }
         context.startActivity(intent);

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

@@ -37,7 +37,7 @@
                 android:layout_marginBottom="@dimen/content_padding_10"
                 android:layout_gravity="center"/>
             <TextView
-                android:id="@+id/sure_tv"
+                android:id="@+id/change_sure_tv"
                 style="@style/style_button"
                 android:text="立即绑定"/>
 

+ 139 - 32
app/src/main/res/layout/changge_tel_layout.xml

@@ -16,43 +16,150 @@
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:orientation="vertical">
-
-            <ImageView
-                android:id="@+id/phone_iv"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_gravity="center_horizontal"
-                android:layout_marginLeft="@dimen/content_padding_100"
-                android:layout_marginRight="@dimen/content_padding_100"
-                android:src="@mipmap/no_bind_tel_img"
-                android:layout_marginTop="@dimen/content_padding_35"
-                android:layout_marginBottom="5dp"/>
-
-            <TextView
-                android:id="@+id/tel_tv"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:text="123456"
-                style="@style/txt_style_12"
-                android:layout_marginTop="@dimen/content_padding_30"
-                android:layout_gravity="center"/>
-            <TextView
-                android:layout_width="wrap_content"
+            <LinearLayout
+                android:id="@+id/show_change_layout"
+                android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                android:text="@string/no_bind_tel_notice_text"
-                style="@style/txt_style_12"
-                android:layout_marginTop="@dimen/content_padding_10"
-                android:layout_marginBottom="@dimen/content_padding_10"
-                android:layout_gravity="center"/>
-            <TextView
-                android:id="@+id/sure_tv"
+                android:orientation="vertical"
+                android:visibility="visible">
+
+                <ImageView
+                    android:id="@+id/phone_show_iv"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_gravity="center_horizontal"
+                    android:layout_marginLeft="@dimen/content_padding_100"
+                    android:layout_marginRight="@dimen/content_padding_100"
+                    android:src="@mipmap/no_bind_tel_img"
+                    android:layout_marginTop="@dimen/content_padding_35"
+                    android:layout_marginBottom="5dp"/>
+
+                <TextView
+                    android:id="@+id/tel_tv"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="123456"
+                    style="@style/txt_style_12"
+                    android:layout_marginTop="@dimen/content_padding_30"
+                    android:layout_gravity="center"/>
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/no_bind_tel_notice_text"
+                    style="@style/txt_style_12"
+                    android:layout_marginTop="@dimen/content_padding_10"
+                    android:layout_marginBottom="@dimen/content_padding_10"
+                    android:layout_gravity="center"/>
+                <TextView
+                    android:id="@+id/sure_change_tv"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    style="@style/txt_big_btn_style"
+                    android:text="更换手机号"/>
+
+            </LinearLayout>
+            <LinearLayout
+                android:id="@+id/change_phone_layout"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                style="@style/txt_big_btn_style"
-                android:text="更换手机号"
-                android:background="@drawable/selector_button_full_main"/>
+                android:orientation="vertical"
+                android:background="@color/white">
+                <LinearLayout
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:orientation="vertical">
+                    <ImageView
+                        android:id="@+id/phone_iv"
+                        android:layout_width="wrap_content"
+                        android:layout_height="wrap_content"
+                        android:minWidth="@dimen/content_padding_140"
+                        android:minHeight="@dimen/content_padding_140"
+                        android:layout_gravity="center_horizontal"
+                        android:layout_marginLeft="100dp"
+                        android:layout_marginRight="100dp"
+                        android:src="@mipmap/no_bind_phone"
+                        android:layout_marginTop="35dp"
+                        android:layout_marginBottom="5dp"/>
+                </LinearLayout>
+
+                <TextView
+                    android:id="@+id/phone_tip_tv"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="为了避免机器刷单,请绑定手机号后领取任务奖励"
+                    android:textColor="@color/black_444444"
+                    android:textSize="11dp"
+                    android:layout_gravity="center_horizontal"/>
 
+                <LinearLayout
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:layout_marginLeft="12dp"
+                    android:layout_marginRight="12dp"
+                    android:layout_marginTop="40dp"
+                    android:background="@drawable/x_shap_shadow_bg_rectgangle_white"
+                    android:orientation="vertical">
+                    <android.support.v7.widget.AppCompatEditText
+                        android:id="@+id/phone_et_account"
+                        style="@style/edt_style"
+                        android:inputType="phone"
+                        android:layout_width="match_parent"
+                        android:layout_height="@dimen/edt_heigh_default"
+                        android:layout_centerVertical="true"
+                        android:layout_margin="@dimen/content_padding_small"
+                        android:hint="请输入手机号"
+                        android:paddingLeft="@dimen/content_padding_big"
+                        android:maxLength="11"/>
+
+                    <LinearLayout
+                        android:id="@+id/ll_code"
+                        android:layout_width="match_parent"
+                        android:layout_height="wrap_content"
+                        android:layout_margin="@dimen/content_padding_small"
+                        android:orientation="horizontal"
+                        >
+
+                        <android.support.v7.widget.AppCompatEditText
+                            android:id="@+id/phone_et_code"
+                            style="@style/edt_style"
+                            android:layout_width="0dp"
+                            android:layout_height="@dimen/edt_heigh_default"
+                            android:layout_weight="2"
+                            android:hint="请输入验证码"
+                            android:inputType="phone"
+                            android:paddingLeft="@dimen/content_padding_big"
+                            android:maxLength="6"
+                            android:textSize="@dimen/text_size_3"/>
+                        <TextView
+                            android:id="@+id/phone_btn_code"
+                            android:layout_width="0dp"
+                            android:layout_height="wrap_content"
+                            android:layout_gravity="center|center_vertical"
+                            android:layout_marginLeft="@dimen/content_padding"
+                            android:layout_weight="1"
+                            android:gravity="center"
+                            android:text="@string/get_captcha"
+                            android:textColor="@color/txt_bule"
+                            />
+
+                    </LinearLayout>
+                </LinearLayout>
+
+
+
+                <TextView
+                    android:id="@+id/phone_sure_tv"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:layout_marginTop="@dimen/layout_heigh_default"
+                    android:gravity="center"
+                    android:layout_gravity="center_horizontal"
+                    android:text="确 定"
+                    style="@style/txt_big_btn_style"/>
+
+            </LinearLayout>
         </LinearLayout>
+
     </ScrollView>
 
 

+ 0 - 33
app/src/main/res/layout/download_item_dialog.xml

@@ -88,26 +88,6 @@
                     android:layout_centerHorizontal="true"
                     android:orientation="vertical"
                     android:visibility="gone">
-
-                    <com.sheep.gamegroup.view.customview.SProgress
-                        android:id="@+id/start_stask_sprogress"
-                        android:layout_width="match_parent"
-                        android:layout_height="wrap_content"
-                        android:layout_centerHorizontal="true"
-                        android:layout_marginLeft="@dimen/content_padding_40"
-                        android:layout_marginRight="@dimen/content_padding_40"
-                        android:layout_marginTop="@dimen/content_padding_15"
-                        android:minHeight="36dp"
-                        android:minWidth="151dp"
-                        android:padding="2dp"
-                        app:backColor="@color/txt_gray_929292"
-                        app:minProgress="0"
-                        app:progressColor="@color/txt_bg_yellow"
-                        app:progressendcolor="#ffff6969"
-                        app:startprogress="0"
-                        app:textColor="@color/black"
-                        app:textsize="18sp"
-                        android:visibility="gone"/>
                 </LinearLayout>
 
                 <TextView
@@ -120,19 +100,6 @@
                     android:text="开始任务"
                     android:visibility="visible"/>
 
-                <com.sheep.gamegroup.util.MyListview
-                    android:id="@+id/listview_down"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:scrollbars="none"
-                    android:divider="@null"
-                    android:layout_below="@+id/listview"
-                    android:layout_centerHorizontal="true"
-                    android:layout_marginLeft="@dimen/content_padding_40"
-                    android:layout_marginRight="@dimen/content_padding_40"
-                    android:layout_marginTop="@dimen/content_padding_15"
-                    android:visibility="gone"/>
-
                 <TextView
                     android:id="@+id/doalog_item_get_rewards_tv"
                     android:layout_width="wrap_content"

+ 2 - 1
app/src/main/res/values/gamegroup_styles.xml

@@ -81,7 +81,8 @@
     <style name="MyDialogActivityTheme" parent="@android:style/Theme.Dialog">
         <item name="android:windowFrame">@android:color/transparent</item><!--边框-->
         <item name="android:windowIsFloating">true</item><!--是否浮现在activity之上-->
-        <item name="android:windowIsTranslucent">true</item><!--半透明-->
+        <item name="android:windowIsTranslucent">false</item><!--半透明-->
+        <item name="android:windowDisablePreview">true</item>
         <item name="android:windowNoTitle">true</item><!--无标题-->
         <item name="android:windowBackground">@android:color/transparent</item><!--背景透明-->
         <item name="android:backgroundDimAmount">0.7</item><!--透明度 0.0f到1.0f之间。1.0完全不透明,0.0f完全透明-->