use of com.applozic.mobicomkit.uiwidgets.conversation.MultimediaOptionsGridView in project Applozic-Android-SDK by AppLozic.
the class ConversationFragment method processAttachButtonClick.
void processAttachButtonClick(View view) {
MobicomMultimediaPopupAdapter mobicomMultimediaPopupAdapter = new MobicomMultimediaPopupAdapter(getActivity(), attachmentIcon, attachmentText);
mobicomMultimediaPopupAdapter.setAlCustomizationSettings(alCustomizationSettings);
multimediaPopupGrid.setAdapter(mobicomMultimediaPopupAdapter);
int noOfColumn = (attachmentKey.size() == ATTCHMENT_OPTIONS) ? 3 : attachmentKey.size();
multimediaPopupGrid.setNumColumns(noOfColumn);
multimediaPopupGrid.setVisibility(View.VISIBLE);
if (inputMethodManager.isActive()) {
inputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0);
}
MultimediaOptionsGridView itemClickHandler = new MultimediaOptionsGridView(getActivity(), multimediaPopupGrid);
itemClickHandler.setMultimediaClickListener(attachmentKey);
}
Aggregations