|
|
@@ -26,17 +26,14 @@ import android.view.View;
|
|
|
import android.view.ViewGroup;
|
|
|
import android.widget.AdapterView;
|
|
|
import android.widget.EditText;
|
|
|
-import android.widget.ExpandableListAdapter;
|
|
|
import android.widget.ExpandableListView;
|
|
|
import android.widget.ListView;
|
|
|
-import android.widget.RelativeLayout;
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
import com.android.volley.Response;
|
|
|
import com.android.volley.VolleyError;
|
|
|
import com.handmark.pulltorefresh.library.PullToRefreshBase;
|
|
|
import com.handmark.pulltorefresh.library.PullToRefreshListView;
|
|
|
-import com.lidroid.xutils.view.annotation.ViewInject;
|
|
|
import com.xzjmyk.pm.activity.AppConstant;
|
|
|
import com.xzjmyk.pm.activity.MyApplication;
|
|
|
import com.xzjmyk.pm.activity.R;
|
|
|
@@ -59,7 +56,6 @@ import com.xzjmyk.pm.activity.ui.circle.BasicInfoActivity;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.activity.CommonFragmentActivity;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.activity.CompanyContactsActivity;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.activity.MyFriendActivity;
|
|
|
-import com.xzjmyk.pm.activity.ui.erp.activity.SubscribeActivity;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.adapter.ContactExpanAdapter;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.db.DBManager;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.entity.EmployeesEntity;
|
|
|
@@ -88,24 +84,14 @@ import java.util.Collections;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
|
|
|
+import static com.xzjmyk.pm.activity.R.id.company;
|
|
|
+
|
|
|
/**
|
|
|
* @desc:联系人
|
|
|
* @author:Administrator on 2016/1/30 16:15
|
|
|
*/
|
|
|
public class LinksManFragment extends XutilsFragment implements View.OnClickListener {
|
|
|
private Context ct;
|
|
|
- @ViewInject(R.id.my_data_rl)
|
|
|
- private RelativeLayout my_data_rl;
|
|
|
- @ViewInject(R.id.my_friends_rl)
|
|
|
- private RelativeLayout my_friends_rl;
|
|
|
- @ViewInject(R.id.my_friend_rl)
|
|
|
- private RelativeLayout my_tingyue_rl;
|
|
|
- @ViewInject(R.id.my_tingyue_rl)
|
|
|
- private RelativeLayout my_friend_rl;
|
|
|
- @ViewInject(R.id.local_video_rl)
|
|
|
-
|
|
|
- private RelativeLayout local_video_rl;
|
|
|
- private RelativeLayout chat_manage_rl;
|
|
|
private PullToRefreshListView mPullToRefreshListView;
|
|
|
private TextView mTextDialog;
|
|
|
private SideBar mSideBar;
|
|
|
@@ -120,7 +106,7 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
private boolean mNeedUpdate = true;
|
|
|
private Activity mActivity;
|
|
|
private DBManager manager;
|
|
|
-
|
|
|
+ private int groupHeight = 0;
|
|
|
//接收修改F司广播
|
|
|
private IntentFilter inputFilter;
|
|
|
private BroadcastReceiver receiver = new BroadcastReceiver() {
|
|
|
@@ -144,24 +130,18 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
switch (v.getId()) {
|
|
|
- case R.id.my_tingyue_rl:
|
|
|
- ct.startActivity(new Intent(ct, SubscribeActivity.class));
|
|
|
- break;
|
|
|
- case R.id.my_data_rl:
|
|
|
+ case R.id.company://企业架构
|
|
|
((MainActivity) ct).startActivityForResult(new Intent(ct, CompanyContactsActivity.class), MainActivity.UPDATA_LIST);
|
|
|
break;
|
|
|
- case R.id.my_friends_rl:
|
|
|
+ case R.id.uu_friend://好友
|
|
|
ct.startActivity(new Intent(ct, MyFriendActivity.class));
|
|
|
break;
|
|
|
- case R.id.my_friend_rl:
|
|
|
+ case R.id.group://商务群
|
|
|
Intent intent = new Intent(ct, CommonFragmentActivity.class);
|
|
|
intent.putExtra("type", Constants.TYPE_CHAT_All);
|
|
|
ct.startActivity(intent);
|
|
|
break;
|
|
|
- case R.id.local_video_rl:
|
|
|
- ToastUtil.showToast(getActivity(), "抱歉,该功能还未开发");
|
|
|
- break;
|
|
|
- case R.id.my_friend_manage:
|
|
|
+ case R.id.my_friend_manage://管理群
|
|
|
intent = new Intent(ct, CommonFragmentActivity.class);
|
|
|
intent.putExtra("type", Constants.TYPE_CHAT_MANAGE);
|
|
|
ct.startActivity(intent);
|
|
|
@@ -187,9 +167,9 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
inputFilter = new IntentFilter("com.app.home.update");
|
|
|
getActivity().registerReceiver(receiver, inputFilter);
|
|
|
setHasOptionsMenu(true);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
protected void onCreateView(Bundle savedInstanceState, boolean createView) {
|
|
|
if (createView) {
|
|
|
@@ -208,37 +188,21 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
"whichsys=?");
|
|
|
List<Friend> friends = new ArrayList<>();
|
|
|
if (emList.size() > 0 && mLoginUserId != null) {
|
|
|
- for (int i = 0; i < emList.size(); i++) {//企业通讯人员
|
|
|
- // friends.add(EnterChatAction(emList.get(i)));
|
|
|
- if (mLoginUserId.equals((emList.get(i).getEm_IMID() + ""))) {
|
|
|
+ for (EmployeesEntity e : emList) {//企业通讯人员
|
|
|
+ String fId = String.valueOf(e.getEm_IMID());
|
|
|
+ if (mLoginUserId.equals(fId)) {
|
|
|
continue;
|
|
|
}
|
|
|
- String fId = String.valueOf(emList.get(i).getEm_IMID());
|
|
|
- if (!ListUtils.isEmpty(friend)) {
|
|
|
- for (int j = 0; j < friend.size(); j++) {//IM好友
|
|
|
- if (mLoginUserId.equals((friend.get(j).getUserId() + ""))) {
|
|
|
- friend.remove(j);
|
|
|
- continue;
|
|
|
- }
|
|
|
- if (fId.equals(friend.get(j).getUserId())) { //当有重复
|
|
|
- //改昵称
|
|
|
- friend.get(j).setNickName(emList.get(i).getEM_NAME());
|
|
|
- friend.get(j).setRemarkName(emList.get(i).getEM_NAME());//备注
|
|
|
- FriendDao.getInstance().setRemarkName(mLoginUserId, friend.get(j).getUserId(), friend.get(j).getRemarkName());
|
|
|
- break;
|
|
|
- } else if ((j == (friend.size() - 1)) && !(fId.equals(friend.get(j).getUserId()))) {
|
|
|
- friends.add(EnterChatAction(emList.get(i)));
|
|
|
- }
|
|
|
+ friends.add(EnterChatAction(e));//所有的企业结构人员添加到列表中
|
|
|
+ if (ListUtils.isEmpty(friend)) continue;
|
|
|
+ for (int i = 0; i < friend.size(); i++) {
|
|
|
+ if (friend.get(i).getUserId().equals(fId) || mLoginUserId.equals(friend.get(i).getUserId())) {//当前用户和企业架构重复或为自己
|
|
|
+ friend.remove(i);
|
|
|
+ break;
|
|
|
}
|
|
|
- } else {
|
|
|
- friends.add(EnterChatAction(emList.get(i)));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //下面两行待优化
|
|
|
- if (friend == null) return;
|
|
|
- for (int i = 0; i < friend.size(); i++) friend.get(i).setFriend(true);
|
|
|
- for (int i = 0; i < friends.size(); i++) friends.get(i).setFriend(false);
|
|
|
friend.addAll(friends);
|
|
|
}
|
|
|
|
|
|
@@ -250,8 +214,9 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
friend.setOwnerId(MyApplication.getInstance().mLoginUser.getUserId());
|
|
|
friend.setRemarkName(employee.getEM_NAME());//备注
|
|
|
friend.setNickName(employee.getEM_NAME());//昵称
|
|
|
- friend.setEmCode(employee.getEM_MOBILE());
|
|
|
-
|
|
|
+ friend.setPhone(employee.getEM_MOBILE());
|
|
|
+ friend.setDepart(employee.getEM_DEPART());
|
|
|
+ friend.setPosition(employee.getEM_POSITION());
|
|
|
friend.setTimeSend(TimeUtils.sk_time_current_time());
|
|
|
friend.setStatus(Friend.STATUS_UNKNOW);
|
|
|
return friend;
|
|
|
@@ -282,7 +247,6 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
}
|
|
|
}
|
|
|
}, AttentionUser.class, params);
|
|
|
-// mActivity.addDefaultRequest(request);
|
|
|
MyApplication.getInstance().getFastVolley().addDefaultRequest(HASHCODE, request);
|
|
|
}
|
|
|
|
|
|
@@ -302,12 +266,10 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
mcProgressDialog = CustomProgressDialog.createDialog(ct);
|
|
|
mcProgressDialog.show();
|
|
|
mBind = getActivity().bindService(CoreService.getIntent(), mServiceConnection, Activity.BIND_AUTO_CREATE);
|
|
|
- setHeaderView();
|
|
|
- setHeaderView2();
|
|
|
mTextDialog = (TextView) findViewById(R.id.text_dialog);
|
|
|
mSideBar = (SideBar) findViewById(R.id.sidebar);
|
|
|
mSideBar.setTextView(mTextDialog);
|
|
|
-
|
|
|
+ setHeaderView();
|
|
|
//查好友
|
|
|
search_edit.addTextChangedListener(new TextWatcher() {
|
|
|
@Override
|
|
|
@@ -331,10 +293,9 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
sortFrientSeach.add(mode);
|
|
|
}
|
|
|
}
|
|
|
- goneView(true);
|
|
|
mAdapter.setData(sortFrientSeach);
|
|
|
} else {
|
|
|
- goneView(false);
|
|
|
+
|
|
|
mAdapter.setData(mSortFriends);
|
|
|
}
|
|
|
}
|
|
|
@@ -355,7 +316,6 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
|
|
|
@Override
|
|
|
public void onTouchingUp() {
|
|
|
- //linear_top_menu.setVisibility(View.VISIBLE);
|
|
|
}
|
|
|
});
|
|
|
mAdapter = new FriendSortAdapter(getActivity(), mSortFriends);
|
|
|
@@ -375,16 +335,7 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
|
|
|
@Override
|
|
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
|
|
- try {
|
|
|
- if (isSeaching)
|
|
|
- friend = sortFrientSeach.get((int) id).getBean();
|
|
|
- else
|
|
|
- friend = mSortFriends.get((int) id).getBean();
|
|
|
-
|
|
|
- } catch (ArrayIndexOutOfBoundsException e) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
+ friend = mSortFriends.get((int) id).getBean();
|
|
|
Intent intent = null;
|
|
|
if (friend.getUserId().equals(Friend.ID_NEW_FRIEND_MESSAGE)) {// 新朋友消息
|
|
|
intent = new Intent(getActivity(), NewFriendActivity.class);
|
|
|
@@ -393,8 +344,7 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
intent.putExtra(ChatActivity.FRIEND, friend);
|
|
|
} else {
|
|
|
intent = new Intent(getActivity(), BasicInfoActivity.class);
|
|
|
-// intent.putExtra(AppConstant.EXTRA_FRIEND, friend);
|
|
|
- intent.putExtra(AppConstant.EXTRA_NICK_CODE, friend.getEmCode());
|
|
|
+ intent.putExtra(AppConstant.EXTRA_NICK_CODE, friend.getPhone());
|
|
|
intent.putExtra(AppConstant.EXTRA_USER_ID, friend.getUserId());
|
|
|
intent.putExtra(AppConstant.EXTRA_NICK_NAME, friend.getNickName());
|
|
|
}
|
|
|
@@ -420,28 +370,6 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
mProgressDialog = ProgressDialogUtil.init(getActivity(), null, getString(R.string.please_wait));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- private boolean isSeaching = false;
|
|
|
-
|
|
|
- private void goneView(boolean b) {
|
|
|
- isSeaching = b;
|
|
|
- if (b) {
|
|
|
-// my_tingyue_rl.setVisibility(View.GONE);
|
|
|
- my_data_rl.setVisibility(View.GONE);
|
|
|
- chat_manage_rl.setVisibility(View.GONE);
|
|
|
- // my_friends_rl.setVisibility(View.GONE);
|
|
|
- my_friend_rl.setVisibility(View.GONE);
|
|
|
- // local_video_rl.setVisibility(View.GONE);
|
|
|
- } else {
|
|
|
-// my_tingyue_rl.setVisibility(View.VISIBLE);
|
|
|
- my_data_rl.setVisibility(View.VISIBLE);
|
|
|
- chat_manage_rl.setVisibility(View.VISIBLE);
|
|
|
- //my_friends_rl.setVisibility(View.VISIBLE);
|
|
|
- my_friend_rl.setVisibility(View.VISIBLE);
|
|
|
- //local_video_rl.setVisibility(View.VISIBLE);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
public void update() {
|
|
|
if (isResumed()) {
|
|
|
loadData();
|
|
|
@@ -461,64 +389,46 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
|
|
|
/*处理头文件*/
|
|
|
private void setHeaderView() {
|
|
|
- headview = LayoutInflater.from(ct).inflate(R.layout.headview_cantacts_menus, null);
|
|
|
- mPullToRefreshListView = (PullToRefreshListView) findViewById(R.id.pull_refresh_list);
|
|
|
- mPullToRefreshListView.getRefreshableView().addHeaderView(headview);
|
|
|
- search_edit = (ClearEditText) findViewById(R.id.search_edit);
|
|
|
- my_friend_rl = (RelativeLayout) headview.findViewById(R.id.my_friend_rl);
|
|
|
- my_data_rl = (RelativeLayout) headview.findViewById(R.id.my_data_rl);
|
|
|
- my_friends_rl = (RelativeLayout) headview.findViewById(R.id.my_friends_rl);
|
|
|
- local_video_rl = (RelativeLayout) headview.findViewById(R.id.local_video_rl);
|
|
|
- chat_manage_rl = (RelativeLayout) headview.findViewById(R.id.my_friend_manage);
|
|
|
- my_friend_rl.setOnClickListener(this);
|
|
|
- my_data_rl.setOnClickListener(this);
|
|
|
- my_friends_rl.setOnClickListener(this);
|
|
|
- local_video_rl.setOnClickListener(this);
|
|
|
- chat_manage_rl.setOnClickListener(this);
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- private void setHeaderView2() {
|
|
|
headview = LayoutInflater.from(ct).inflate(R.layout.header_fragment_contact, null);
|
|
|
mPullToRefreshListView = (PullToRefreshListView) findViewById(R.id.pull_refresh_list);
|
|
|
mPullToRefreshListView.getRefreshableView().addHeaderView(headview);
|
|
|
expandableListView = (ExpandableListView) headview.findViewById(R.id.expandablelistview);
|
|
|
- ContactExpanAdapter adapter = new ContactExpanAdapter(ct);
|
|
|
+ search_edit = (ClearEditText) headview.findViewById(R.id.search_edit);
|
|
|
+ headview.findViewById(company).setOnClickListener(this);//企业结构
|
|
|
+ headview.findViewById(R.id.group).setOnClickListener(this);//商务群
|
|
|
+ headview.findViewById(R.id.uu_friend).setOnClickListener(this);//我的好友
|
|
|
+ ContactExpanAdapter adapter = new ContactExpanAdapter(ct, getTest());
|
|
|
expandableListView.setAdapter(adapter);
|
|
|
+ expandableListView.post(new Runnable() {//在OncreateView中视图还没有创建,所以不能获取高度
|
|
|
+ @Override
|
|
|
+ public void run() {
|
|
|
+ groupHeight = expandableListView.getHeight();
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
expandableListView.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() {
|
|
|
@Override
|
|
|
public boolean onGroupClick(ExpandableListView parent, View view, int i, long l) {
|
|
|
- Log.i("gongpengming", "aaaa");
|
|
|
-// setListViewHeight(parent, i);
|
|
|
- Log.i("gongpengming", "是否打开=" + parent.isGroupExpanded(i));
|
|
|
- Log.i("gongpengming", "parent子控件数量" + parent.getExpandableListAdapter().getChildrenCount(i));
|
|
|
- Log.i("gongpengming", "parent高度" + parent.getHeight());
|
|
|
- Log.i("gongpengming", "view子空间高度" + view.getHeight());
|
|
|
- Log.i("gongpengming", "i" + i);
|
|
|
- Log.i("gongpengming", "l" + l);
|
|
|
- int Group = parent.getExpandableListAdapter().getGroupCount();
|
|
|
- int Group2 = parent.getExpandableListAdapter().getChildrenCount(i);
|
|
|
+ int children = parent.getExpandableListAdapter().getChildrenCount(i);
|
|
|
+ int childHeight = view.getHeight();
|
|
|
ViewGroup.LayoutParams params = expandableListView.getLayoutParams();
|
|
|
- if (parent.isGroupExpanded(i)) {
|
|
|
- params.height = Group * parent.getHeight() + Group2 * view.getHeight();
|
|
|
+ params.width = ViewGroup.LayoutParams.MATCH_PARENT;
|
|
|
+ if (!parent.isGroupExpanded(i)) {//判断点击前是否是打开状态,点击前打开,点击后为关闭
|
|
|
+ params.height = groupHeight + children * childHeight;
|
|
|
} else {
|
|
|
- params.height = Group * parent.getHeight();
|
|
|
+ params.height = groupHeight;
|
|
|
}
|
|
|
- params.width = ViewGroup.LayoutParams.MATCH_PARENT;
|
|
|
expandableListView.setLayoutParams(params);
|
|
|
return false;
|
|
|
-
|
|
|
}
|
|
|
});
|
|
|
-// expandableListView.setOnGroupExpandListener(new ExpandableListView.OnGroupExpandListener() {
|
|
|
-// @Override
|
|
|
-// public void onGroupExpand(int i) {
|
|
|
-// Log.i("gongpengming","ccccc");
|
|
|
-// ViewGroup.LayoutParams params = expandableListView.getLayoutParams();
|
|
|
-// params.height = 300; params.width = ViewGroup.LayoutParams.MATCH_PARENT;
|
|
|
-// expandableListView.setLayoutParams(params);
|
|
|
-// }
|
|
|
-// });
|
|
|
+ expandableListView.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {
|
|
|
+ @Override
|
|
|
+ public boolean onChildClick(ExpandableListView expandableListView, View view, int i, int i1, long l) {
|
|
|
+ Log.i("gongpengming", "点击了" + i1);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -572,56 +482,13 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
if (StringUtils.isEmpty(master)) return;
|
|
|
//查找本地数据库,管理群存在,则不创建
|
|
|
List<HrorgsEntity> hlist = db.queryHrorgList(new String[]{master, emCode}, "whichsys=? and or_headmancode=?");
|
|
|
- if (hlist.isEmpty()) {
|
|
|
- chat_manage_rl.setVisibility(View.GONE);
|
|
|
- } else {
|
|
|
- chat_manage_rl.setVisibility(View.VISIBLE);
|
|
|
- }
|
|
|
+// if (hlist.isEmpty()) {
|
|
|
+// chat_manage_rl.setVisibility(View.GONE);
|
|
|
+// } else {
|
|
|
+// chat_manage_rl.setVisibility(View.VISIBLE);
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
- private void setListViewHeight(ExpandableListView listView, int group) {
|
|
|
- //得到相应ListView的适配器
|
|
|
- ExpandableListAdapter listAdapter = listView.getExpandableListAdapter();
|
|
|
- //总高度
|
|
|
- int totalHeight = 0;
|
|
|
- //期望的宽度
|
|
|
- int desiredWidth = View.MeasureSpec.makeMeasureSpec(listView.getWidth(), View.MeasureSpec.EXACTLY);
|
|
|
- for (int i = 0; i < listAdapter.getGroupCount(); i++) {
|
|
|
- //得到一级条目
|
|
|
- View groupItem = listAdapter.getGroupView(i, false, null, listView);
|
|
|
- //groupItem根据给的参数测量一下尺寸,方法调用完后groupItem大小就确定了
|
|
|
- groupItem.measure(desiredWidth, View.MeasureSpec.UNSPECIFIED);
|
|
|
- //累加一级条目高度
|
|
|
- totalHeight += groupItem.getHeight();
|
|
|
- // 除了group条目外都展开了 或者 group那一条目没有展开
|
|
|
- if (((listView.isGroupExpanded(group)) && (i != group)) || ((!listView.isGroupExpanded(group)) && (i == group))) {
|
|
|
- for (int j = 0; j < listAdapter.getChildrenCount(i); j++) {
|
|
|
- //得到二级条目
|
|
|
- View listItem = listAdapter.getChildView(i, j, false, null, listView);
|
|
|
- //listItem根据给的参数测量一下尺寸,方法调用完后listItem大小就确定了
|
|
|
- listItem.measure(desiredWidth, View.MeasureSpec.UNSPECIFIED);
|
|
|
- //累加二级条目高度
|
|
|
- totalHeight += listItem.getHeight();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- //获得listView的布局参数
|
|
|
- ViewGroup.LayoutParams params = listView.getLayoutParams();
|
|
|
- //listView的高度 = 一级条目和二级条目总和 + 分割线高度总和
|
|
|
- int height = totalHeight + (listView.getDividerHeight() * (listAdapter.getGroupCount() - 1));
|
|
|
- //如果高度小于10,则设置为200,没有太大关系
|
|
|
- if (height < 10) {
|
|
|
- height = 200;
|
|
|
- }
|
|
|
- //把高度赋值给布局参数
|
|
|
- params.height = height;
|
|
|
- //把布局参数回传给listView
|
|
|
- listView.setLayoutParams(params);
|
|
|
- //listView按照参数从新布局
|
|
|
- listView.requestLayout();
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
private final void setSortCondition(BaseSortModel<Friend> mode) {
|
|
|
Friend friend = mode.getBean();
|
|
|
if (friend == null) {
|
|
|
@@ -959,4 +826,13 @@ public class LinksManFragment extends XutilsFragment implements View.OnClickList
|
|
|
return super.onOptionsItemSelected(item);
|
|
|
}
|
|
|
|
|
|
+ public List<List<BaseSortModel<Friend>>> getTest() {
|
|
|
+ List<List<BaseSortModel<Friend>>> test = new ArrayList<>();
|
|
|
+ List<BaseSortModel<Friend>> t = new ArrayList<>();
|
|
|
+ for (int i = 0; i < 10; i++) {
|
|
|
+ t.add(new BaseSortModel());
|
|
|
+ }
|
|
|
+ test.add(t);
|
|
|
+ return test;
|
|
|
+ }
|
|
|
}
|