use of forpdateam.ru.forpda.ui.views.messagepanel.MessagePanel in project ForPDA by RadiationX.
the class EditPostFragment method onCreateView.
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
messagePanel = new MessagePanel(getContext(), fragmentContainer, fragmentContent, true);
attachmentsPopup = messagePanel.getAttachmentsPopup();
return view;
}
use of forpdateam.ru.forpda.ui.views.messagepanel.MessagePanel in project ForPDA by RadiationX.
the class QmsChatFragment method onCreateView.
@SuppressLint({ "SetJavaScriptEnabled", "JavascriptInterface" })
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
baseInflateFragment(inflater, R.layout.fragment_qms_chat);
chatContainer = (FrameLayout) findViewById(R.id.qms_chat_container);
progressBar = (ProgressBar) findViewById(R.id.progress_bar);
messagePanel = new MessagePanel(getContext(), fragmentContainer, coordinatorLayout, false);
webView = getMainActivity().getWebViewsProvider().pull(getContext());
attachWebView(webView);
chatContainer.addView(webView, 0);
attachmentsPopup = messagePanel.getAttachmentsPopup();
return view;
}
use of forpdateam.ru.forpda.ui.views.messagepanel.MessagePanel in project ForPDA by RadiationX.
the class ThemeFragment method onCreateView.
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
initFabBehavior();
baseInflateFragment(inflater, R.layout.fragment_theme);
refreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_refresh_list);
messagePanel = new MessagePanel(getContext(), fragmentContainer, coordinatorLayout, false);
paginationHelper = new PaginationHelper(getActivity());
paginationHelper.addInToolbar(inflater, toolbarLayout, configuration.isFitSystemWindow());
notificationView = inflater.inflate(R.layout.new_message_notification, null);
notificationTitle = (TextView) notificationView.findViewById(R.id.title);
notificationButton = (ImageButton) notificationView.findViewById(R.id.icon);
fragmentContent.addView(notificationView);
notificationView.setLayoutParams(new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
contentController.setMainRefresh(refreshLayout);
addShowingView();
return view;
}
Aggregations