Search in sources :

Example 1 with MobicomMultimediaPopupAdapter

use of com.applozic.mobicomkit.uiwidgets.conversation.adapter.MobicomMultimediaPopupAdapter in project Applozic-Android-SDK by AppLozic.

the class AlAttachmentView method prepareAttachmentData.

public void prepareAttachmentData(GridView gridView) {
    String[] allValues = getResources().getStringArray(R.array.multimediaOptions_without_price_text);
    String[] allIcons = getResources().getStringArray(R.array.multimediaOptionIcons_without_price);
    MobicomMultimediaPopupAdapter adapter = new MobicomMultimediaPopupAdapter(getContext(), Arrays.asList(allIcons), Arrays.asList(allValues));
    gridView.setAdapter(adapter);
}
Also used : MobicomMultimediaPopupAdapter(com.applozic.mobicomkit.uiwidgets.conversation.adapter.MobicomMultimediaPopupAdapter)

Example 2 with MobicomMultimediaPopupAdapter

use of com.applozic.mobicomkit.uiwidgets.conversation.adapter.MobicomMultimediaPopupAdapter 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

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