use of com.waz.zclient.pages.main.participants.views.ParticipantsGridView in project wire-android by wireapp.
the class ParticipantBodyFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup viewGroup, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_group_participant, viewGroup, false);
footerMenu = ViewUtils.getView(view, R.id.fm__participants__footer);
topBorder = ViewUtils.getView(view, R.id.v_participants__footer__top_border);
footerWrapper = ViewUtils.getView(view, R.id.ll__participants__footer_wrapper);
unblockButton = ViewUtils.getView(view, R.id.zb__single_user_participants__unblock_button);
imageAssetImageView = ViewUtils.getView(view, R.id.iaiv__participant_body);
imageAssetImageView.setDisplayType(ImageAssetImageView.DisplayType.CIRCLE);
participantsAdapter = new ParticipantsChatheadAdapter();
participantsGridView = ViewUtils.getView(view, R.id.pgv__participants);
participantsGridView.setAdapter(participantsAdapter);
participantsGridView.setOnItemClickListener(this);
participantsGridView.setSelector(getResources().getDrawable(R.drawable.transparent));
participantsGridView.setOnScrollListener(participantsGridOnScrollListener);
numberOfColumns = getResources().getInteger(R.integer.participant_column__count);
participantsGridView.setNumColumns(numberOfColumns);
// Hide footer until conversation is loaded
footerMenu.setVisibility(View.GONE);
unblockButton.setVisibility(View.GONE);
// Toggle color background
view.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
getContainer().onClickedEmptyBackground();
}
});
return view;
}
Aggregations