Search in sources :

Example 1 with ImageAssetImageView

use of com.waz.zclient.views.images.ImageAssetImageView 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;
}
Also used : ParticipantsChatheadAdapter(com.waz.zclient.pages.main.participants.views.ParticipantsChatheadAdapter) ImageAssetImageView(com.waz.zclient.views.images.ImageAssetImageView) View(android.view.View) AdapterView(android.widget.AdapterView) AbsListView(android.widget.AbsListView) ParticipantsGridView(com.waz.zclient.pages.main.participants.views.ParticipantsGridView)

Aggregations

View (android.view.View)1 AbsListView (android.widget.AbsListView)1 AdapterView (android.widget.AdapterView)1 ParticipantsChatheadAdapter (com.waz.zclient.pages.main.participants.views.ParticipantsChatheadAdapter)1 ParticipantsGridView (com.waz.zclient.pages.main.participants.views.ParticipantsGridView)1 ImageAssetImageView (com.waz.zclient.views.images.ImageAssetImageView)1