use of com.applozic.mobicomkit.contact.BaseContactService in project Applozic-Android-SDK by AppLozic.
the class MessageInfoFragment method init.
private void init() {
if (contactImageLoader == null) {
contactImageLoader = new ImageLoader(getContext(), getListPreferredItemHeight()) {
@Override
protected Bitmap processBitmap(Object data) {
BaseContactService contactService = new AppContactService(getContext());
return contactService.downloadContactImage(getContext(), (Contact) data);
}
};
contactImageLoader.setLoadingImage(R.drawable.applozic_ic_contact_picture_holo_light);
contactImageLoader.addImageCache(getActivity().getSupportFragmentManager(), 0.1f);
}
if (locationImageLoader == null) {
locationImageLoader = new ImageLoader(getContext(), ImageUtils.getLargestScreenDimension((Activity) getContext())) {
@Override
protected Bitmap processBitmap(Object data) {
FileClientService fileClientService = new FileClientService(getContext());
return fileClientService.loadMessageImage(getContext(), (String) data);
}
};
locationImageLoader.setImageFadeIn(false);
locationImageLoader.addImageCache(((FragmentActivity) getContext()).getSupportFragmentManager(), 0.1f);
}
Toolbar toolbar = (Toolbar) getActivity().findViewById(R.id.my_toolbar);
toolbar.setClickable(false);
toolbar.setTitle(getString(R.string.applozic_message_info));
toolbar.setSubtitle("");
}
Aggregations