1
This commit is contained in:
@@ -8,6 +8,7 @@ import android.support.v4.app.Fragment;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
|
||||
import com.gyf.immersionbar.ImmersionBar;
|
||||
import com.sl.house_property.f2.ElectricChargeActivity;
|
||||
import com.sl.house_property.f2.FeeActivity;
|
||||
import com.sl.house_property.databinding.FragmentMain2Binding;
|
||||
|
||||
@@ -176,15 +176,15 @@ public class Main4Fragment extends BaseFragment<FragmentMain4Binding> {
|
||||
}
|
||||
});
|
||||
|
||||
mDataBinding.llGeren.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent = new Intent(getActivity(), MyUserMessage.class);
|
||||
intent.putExtra("usertitile", "个人信息");
|
||||
startActivityForResult(intent, 0);
|
||||
|
||||
}
|
||||
});
|
||||
// mDataBinding.llGeren.setOnClickListener(new View.OnClickListener() {
|
||||
// @Override
|
||||
// public void onClick(View v) {
|
||||
// Intent intent = new Intent(getActivity(), MyUserMessage.class);
|
||||
// intent.putExtra("usertitile", "个人信息");
|
||||
// startActivityForResult(intent, 0);
|
||||
//
|
||||
// }
|
||||
// });
|
||||
mDataBinding.llShouhuo.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
||||
@@ -31,7 +31,6 @@ import com.lxj.xpopup.XPopup;
|
||||
import com.lzy.ninegrid.ImageInfo;
|
||||
import com.lzy.ninegrid.preview.NineGridViewClickAdapter;
|
||||
import com.scwang.smartrefresh.layout.api.RefreshLayout;
|
||||
import com.scwang.smartrefresh.layout.listener.OnRefreshListener;
|
||||
import com.scwang.smartrefresh.layout.listener.OnRefreshLoadMoreListener;
|
||||
import com.selectpicker.OptionsPopupWindow;
|
||||
import com.sl.house_property.databinding.FragmentMainBinding;
|
||||
@@ -39,6 +38,7 @@ import com.sl.house_property.databinding.ItemCommentBinding;
|
||||
import com.sl.house_property.databinding.ItemDiscoveryBinding;
|
||||
import com.sl.house_property.discovery.GoodsInfoDialog;
|
||||
import com.sl.house_property.discovery.HistoryRecordActivity;
|
||||
import com.sl.house_property.discovery.PropertyActivity;
|
||||
import com.sl.house_property.discovery.ShareCodeActivity;
|
||||
import com.sl.house_property.order.SettleActivity;
|
||||
import com.sl.house_property.user.MyMarketShopActivity;
|
||||
@@ -73,7 +73,6 @@ import my_view.tao_bao_refresh.FullyGridLayoutManager;
|
||||
import rx.Subscription;
|
||||
import rx.functions.Action1;
|
||||
import tools.Config;
|
||||
import tools.PicassoRoundTransform;
|
||||
import utils.CommonUtils;
|
||||
import utils.DateUtils;
|
||||
import utils.KeyboardUtil;
|
||||
@@ -100,7 +99,7 @@ public class MainFragment extends BaseFragment<FragmentMainBinding> implements V
|
||||
private String mParam2;
|
||||
private ArrayList<DiscoveryListEntity> discoveryListEntities = new ArrayList<>();
|
||||
private OnFragmentInteractionListener mListener;
|
||||
private ProgressDialog progressDialog ;
|
||||
private ProgressDialog progressDialog;
|
||||
private Loader mGankLoader;
|
||||
|
||||
private ArrayList<String> mBannerImages;
|
||||
@@ -354,7 +353,13 @@ public class MainFragment extends BaseFragment<FragmentMainBinding> implements V
|
||||
map.put("sign", Md5.md5("Advert" + "Advertr_an_AdvertHomeList" + Md5.secret));
|
||||
getGankList(ApiConfig.BASE_URL, map, getResources().getString(R.string.requsting), 0, false);
|
||||
|
||||
|
||||
mDataBinding.service.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent = new Intent(getContext(), PropertyActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// TODO: Rename method, update argument and hook method into UI event
|
||||
@@ -1033,6 +1038,7 @@ public class MainFragment extends BaseFragment<FragmentMainBinding> implements V
|
||||
//结束轮播
|
||||
mDataBinding.banner.stopAutoPlay();
|
||||
}
|
||||
|
||||
private int page = 1;
|
||||
|
||||
private OnRefreshLoadMoreListener onrefalshlister = new OnRefreshLoadMoreListener() {
|
||||
@@ -1049,8 +1055,8 @@ public class MainFragment extends BaseFragment<FragmentMainBinding> implements V
|
||||
}
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
private void getGankList2(String myurl, Map<String, String> map, String msg, final int requstecode) {
|
||||
progressDialog.setMessage(msg);
|
||||
progressDialog.setCancelable(false);
|
||||
@@ -1134,7 +1140,7 @@ public class MainFragment extends BaseFragment<FragmentMainBinding> implements V
|
||||
Subscription subscription = mGankLoader.getMovie(myurl, map).subscribe(new Action1<Resultcode>() {
|
||||
@Override
|
||||
public void call(Resultcode resultcode) {
|
||||
// mDataBinding.taobaoRefreshLayout.finishRefresh();
|
||||
// mDataBinding.taobaoRefreshLayout.finishRefresh();
|
||||
if (!(resultcode.status == 0)) {
|
||||
baseActivity.setToast(1, resultcode.msg);
|
||||
}
|
||||
@@ -1158,7 +1164,7 @@ public class MainFragment extends BaseFragment<FragmentMainBinding> implements V
|
||||
}, new Action1<Throwable>() {
|
||||
@Override
|
||||
public void call(Throwable throwable) {
|
||||
// mDataBinding.taobaoRefreshLayout.finishRefresh();
|
||||
// mDataBinding.taobaoRefreshLayout.finishRefresh();
|
||||
baseActivity.setToast(2, getString(R.string.getdatafailure));
|
||||
throwable.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.sl.house_property.discovery;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.FragmentActivity;
|
||||
import android.view.View;
|
||||
|
||||
import com.gyf.immersionbar.ImmersionBar;
|
||||
import com.sl.house_property.R;
|
||||
|
||||
public class PropertyActivity extends FragmentActivity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
setContentView(R.layout.activity_propery);
|
||||
ImmersionBar.with(this)
|
||||
.keyboardEnable(false) //解决软键盘与底部输入框冲突问题
|
||||
// .keyboardEnable(true, WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE
|
||||
// | WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE) //软键盘自动弹出
|
||||
.barColor(R.color.colorPrimary).init();
|
||||
findViewById(R.id.left).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user