d
This commit is contained in:
@@ -178,7 +178,6 @@ public class MainActivity extends BaseActivity implements View.OnClickListener{
|
||||
mTvMap.setTextColor(getResources().getColor(R.color.colorhui));
|
||||
mTvMy.setTextColor(getResources().getColor(R.color.colorhui));
|
||||
|
||||
|
||||
hideFragment(mHomeFragment, fragmentTransaction);
|
||||
hideFragment(mSendFragment, fragmentTransaction);
|
||||
hideFragment(traceFragment, fragmentTransaction);
|
||||
|
||||
@@ -13,24 +13,14 @@ import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.main.find.ui.FindFragmenttwo;
|
||||
import com.fenghoo.seven.main.kehu.activity.ShowAty;
|
||||
import com.fenghoo.seven.test.BaseFragment;
|
||||
import com.zaaach.citypicker.model.HotCity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 发现
|
||||
*/
|
||||
public class FindFragment extends BaseFragment {
|
||||
private int anim;
|
||||
private boolean enable;
|
||||
private List<HotCity> hotCities;
|
||||
private String city;
|
||||
private String province;
|
||||
private String adCode;
|
||||
Context mContext;
|
||||
View view;
|
||||
private RelativeLayout rl_privateletter;
|
||||
private RelativeLayout rl_live;
|
||||
private String pagetype="0";//0是家居 1是私信
|
||||
private RelativeLayout dianpubuju;
|
||||
private LinearLayout dianyuanbuju;
|
||||
@@ -54,24 +44,15 @@ public class FindFragment extends BaseFragment {
|
||||
view = inflater.inflate(R.layout.criclefragment, container, false);
|
||||
getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.container,new FindFragmenttwo()).commit();
|
||||
initView(view);
|
||||
HotCity();
|
||||
return view;
|
||||
}
|
||||
private void HotCity() {
|
||||
hotCities = new ArrayList<>();
|
||||
hotCities.add(new HotCity("北京", "北京", "101010100"));
|
||||
hotCities.add(new HotCity("上海", "上海", "101020100"));
|
||||
hotCities.add(new HotCity("广州", "广东", "101280101"));
|
||||
hotCities.add(new HotCity("深圳", "广东", "101280601"));
|
||||
hotCities.add(new HotCity("杭州", "浙江", "101210101"));
|
||||
}
|
||||
|
||||
private void initView(View mContentView) {
|
||||
marking_fragment = (TextView)view.findViewById(R.id.marking_fragment);
|
||||
dianpubuju = (RelativeLayout)view.findViewById(R.id.dianpubuju);
|
||||
dianyuanbuju = (LinearLayout)view.findViewById(R.id.dianyuanbuju);
|
||||
rl_privateletter = (RelativeLayout)view.findViewById(R.id.rl_privateletter);
|
||||
rl_privateletter.setOnClickListener(new View.OnClickListener() {
|
||||
rl_live = (RelativeLayout)view.findViewById(R.id.rl_live);
|
||||
rl_live.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
if(pagetype.equals("0")){
|
||||
@@ -103,10 +84,7 @@ public class FindFragment extends BaseFragment {
|
||||
public void onClick(View view) {
|
||||
// ShowAty.CloundSolutionActivity(getActivity());
|
||||
ShowAty.MainActivitytwot(getActivity());
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -8,17 +8,17 @@ import android.view.ViewGroup;
|
||||
import android.widget.RelativeLayout;
|
||||
|
||||
import com.fenghoo.seven.R;
|
||||
import com.fenghoo.seven.base.BaseFragment;
|
||||
import com.fenghoo.seven.main.find.ui.PrivateletterFragment;
|
||||
import com.fenghoo.seven.test.BaseFragment;
|
||||
|
||||
/**
|
||||
* 私信
|
||||
* 视频评论(页面)
|
||||
*/
|
||||
public class PriLetFragment extends BaseFragment {
|
||||
|
||||
Context mContext;
|
||||
View view;
|
||||
private RelativeLayout rl_live;
|
||||
private RelativeLayout rl_privateletter;
|
||||
|
||||
|
||||
@Override
|
||||
@@ -43,7 +43,7 @@ public class PriLetFragment extends BaseFragment {
|
||||
}
|
||||
|
||||
private void initView(View mContentView) {
|
||||
rl_live = (RelativeLayout)view.findViewById(R.id.rl_live);
|
||||
rl_privateletter = (RelativeLayout)view.findViewById(R.id.rl_privateletter);
|
||||
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class PriLetFragment extends BaseFragment {
|
||||
}
|
||||
|
||||
public void cutover(final ClickCallback callback) {
|
||||
rl_live.setOnClickListener(new View.OnClickListener() {
|
||||
rl_privateletter.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
callback.onsuccess();
|
||||
|
||||
@@ -19,6 +19,9 @@ import java.util.List;
|
||||
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
|
||||
/**
|
||||
* 私信页面
|
||||
*/
|
||||
|
||||
public class FindFragmenttwo extends MobanFragment {
|
||||
|
||||
@@ -70,8 +73,9 @@ public class FindFragmenttwo extends MobanFragment {
|
||||
|
||||
@Override
|
||||
public void enterCusDetail(CustomerListBean.ResultBean.DataBean item) {
|
||||
//进入查看评论
|
||||
ShowAty.CommentActivity(getActivity(),20);
|
||||
|
||||
//进入回话页
|
||||
ShowAty.ConversationActivity(getActivity());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ import java.util.List;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
|
||||
/**
|
||||
* 私信
|
||||
* 视频评论(列表)
|
||||
*/
|
||||
public class PrivateletterFragment extends MobanFragment {
|
||||
|
||||
@@ -72,8 +72,8 @@ public class PrivateletterFragment extends MobanFragment {
|
||||
|
||||
@Override
|
||||
public void enterCusDetail(CustomerListBean.ResultBean.DataBean item) {
|
||||
//进入回话页
|
||||
ShowAty.ConversationActivity(getActivity());
|
||||
//进入查看评论
|
||||
ShowAty.CommentActivity(getActivity(),20);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user