Search in sources :

Example 1 with MultimediaOptionsGridView

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);
}
Also used : MultimediaOptionsGridView(com.applozic.mobicomkit.uiwidgets.conversation.MultimediaOptionsGridView) MobicomMultimediaPopupAdapter(com.applozic.mobicomkit.uiwidgets.conversation.adapter.MobicomMultimediaPopupAdapter)

Aggregations

MultimediaOptionsGridView (com.applozic.mobicomkit.uiwidgets.conversation.MultimediaOptionsGridView)1 MobicomMultimediaPopupAdapter (com.applozic.mobicomkit.uiwidgets.conversation.adapter.MobicomMultimediaPopupAdapter)1