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);
}
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);
}
Aggregations