use of forpdateam.ru.forpda.ui.fragments.qms.adapters.QmsContactsAdapter in project ForPDA by RadiationX.
the class QmsBlackListFragment method onViewCreated.
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
viewsReady();
nickField.addTextChangedListener(new SimpleTextWatcher() {
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
searchUser(s.toString());
}
});
refreshLayout.setOnRefreshListener(this::loadData);
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
adapter = new QmsContactsAdapter();
recyclerView.setAdapter(adapter);
adapter.setOnItemClickListener(this);
}
use of forpdateam.ru.forpda.ui.fragments.qms.adapters.QmsContactsAdapter in project ForPDA by RadiationX.
the class QmsContactsFragment method onViewCreated.
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
viewsReady();
initFabBehavior();
refreshLayoutStyle(refreshLayout);
refreshLayout.setOnRefreshListener(this::loadData);
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
PauseOnScrollListener pauseOnScrollListener = new PauseOnScrollListener(ImageLoader.getInstance(), true, true);
recyclerView.addOnScrollListener(pauseOnScrollListener);
fab.setImageDrawable(App.getVecDrawable(getContext(), R.drawable.ic_fab_create));
fab.setOnClickListener(view1 -> TabManager.get().add(QmsChatFragment.class));
fab.setVisibility(View.VISIBLE);
adapter = new QmsContactsAdapter();
adapter.setOnItemClickListener(this);
recyclerView.setAdapter(adapter);
bindView();
QmsHelper.get().subscribeQms(notification);
}
Aggregations