Search in sources :

Example 1 with MessagePanel

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;
}
Also used : MessagePanel(forpdateam.ru.forpda.ui.views.messagepanel.MessagePanel) Nullable(android.support.annotation.Nullable)

Example 2 with MessagePanel

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;
}
Also used : MessagePanel(forpdateam.ru.forpda.ui.views.messagepanel.MessagePanel) SuppressLint(android.annotation.SuppressLint) Nullable(android.support.annotation.Nullable)

Example 3 with MessagePanel

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;
}
Also used : FrameLayout(android.widget.FrameLayout) MessagePanel(forpdateam.ru.forpda.ui.views.messagepanel.MessagePanel) PaginationHelper(forpdateam.ru.forpda.ui.views.pagination.PaginationHelper) Nullable(android.support.annotation.Nullable)

Aggregations

Nullable (android.support.annotation.Nullable)3 MessagePanel (forpdateam.ru.forpda.ui.views.messagepanel.MessagePanel)3 SuppressLint (android.annotation.SuppressLint)1 FrameLayout (android.widget.FrameLayout)1 PaginationHelper (forpdateam.ru.forpda.ui.views.pagination.PaginationHelper)1