Search in sources :

Example 1 with PaginationHelper

use of forpdateam.ru.forpda.ui.views.pagination.PaginationHelper in project ForPDA by RadiationX.

the class TopicsFragment method onCreateView.

@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    super.onCreateView(inflater, container, savedInstanceState);
    paginationHelper = new PaginationHelper(getActivity());
    paginationHelper.addInToolbar(inflater, toolbarLayout, configuration.isFitSystemWindow());
    return view;
}
Also used : PaginationHelper(forpdateam.ru.forpda.ui.views.pagination.PaginationHelper) Nullable(android.support.annotation.Nullable)

Example 2 with PaginationHelper

use of forpdateam.ru.forpda.ui.views.pagination.PaginationHelper in project ForPDA by RadiationX.

the class ReputationFragment method onCreateView.

@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    super.onCreateView(inflater, container, savedInstanceState);
    paginationHelper = new PaginationHelper(getActivity());
    paginationHelper.addInToolbar(inflater, toolbarLayout, configuration.isFitSystemWindow());
    return view;
}
Also used : PaginationHelper(forpdateam.ru.forpda.ui.views.pagination.PaginationHelper) Nullable(android.support.annotation.Nullable)

Example 3 with PaginationHelper

use of forpdateam.ru.forpda.ui.views.pagination.PaginationHelper in project ForPDA by RadiationX.

the class SearchFragment method onCreateView.

@SuppressLint("JavascriptInterface")
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    super.onCreateView(inflater, container, savedInstanceState);
    initFabBehavior();
    baseInflateFragment(inflater, R.layout.fragment_search);
    refreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_refresh_list);
    searchSettingsView = (ViewGroup) View.inflate(getContext(), R.layout.search_settings, null);
    nickBlock = (ViewGroup) searchSettingsView.findViewById(R.id.search_nick_block);
    resourceBlock = (ViewGroup) searchSettingsView.findViewById(R.id.search_resource_block);
    resultBlock = (ViewGroup) searchSettingsView.findViewById(R.id.search_result_block);
    sortBlock = (ViewGroup) searchSettingsView.findViewById(R.id.search_sort_block);
    sourceBlock = (ViewGroup) searchSettingsView.findViewById(R.id.search_source_block);
    resourceSpinner = (Spinner) searchSettingsView.findViewById(R.id.search_resource_spinner);
    resultSpinner = (Spinner) searchSettingsView.findViewById(R.id.search_result_spinner);
    sortSpinner = (Spinner) searchSettingsView.findViewById(R.id.search_sort_spinner);
    sourceSpinner = (Spinner) searchSettingsView.findViewById(R.id.search_source_spinner);
    nickField = (TextView) searchSettingsView.findViewById(R.id.search_nick_field);
    submitButton = (Button) searchSettingsView.findViewById(R.id.search_submit);
    saveSettingsButton = (Button) searchSettingsView.findViewById(R.id.search_save_settings);
    webView = getMainActivity().getWebViewsProvider().pull(getContext());
    attachWebView(webView);
    recyclerView = new RecyclerView(getContext());
    recyclerView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
    webView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
    refreshLayout.addView(recyclerView);
    paginationHelper = new PaginationHelper(getActivity());
    paginationHelper.addInToolbar(inflater, toolbarLayout, configuration.isFitSystemWindow());
    contentController.setMainRefresh(refreshLayout);
    return view;
}
Also used : ViewGroup(android.view.ViewGroup) RecyclerView(android.support.v7.widget.RecyclerView) PaginationHelper(forpdateam.ru.forpda.ui.views.pagination.PaginationHelper) SuppressLint(android.annotation.SuppressLint) Nullable(android.support.annotation.Nullable)

Example 4 with PaginationHelper

use of forpdateam.ru.forpda.ui.views.pagination.PaginationHelper in project ForPDA by RadiationX.

the class FavoritesFragment method onCreateView.

@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    super.onCreateView(inflater, container, savedInstanceState);
    sortingView = (ViewGroup) View.inflate(getContext(), R.layout.favorite_sorting, null);
    keySpinner = (Spinner) sortingView.findViewById(R.id.sorting_key);
    orderSpinner = (Spinner) sortingView.findViewById(R.id.sorting_order);
    sortApply = (Button) sortingView.findViewById(R.id.sorting_apply);
    dialog = new BottomSheetDialog(getContext());
    paginationHelper = new PaginationHelper(getActivity());
    paginationHelper.addInToolbar(inflater, toolbarLayout, configuration.isFitSystemWindow());
    contentController.setFirstLoad(false);
    return view;
}
Also used : BottomSheetDialog(android.support.design.widget.BottomSheetDialog) PaginationHelper(forpdateam.ru.forpda.ui.views.pagination.PaginationHelper) Nullable(android.support.annotation.Nullable)

Example 5 with PaginationHelper

use of forpdateam.ru.forpda.ui.views.pagination.PaginationHelper 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)6 PaginationHelper (forpdateam.ru.forpda.ui.views.pagination.PaginationHelper)6 SuppressLint (android.annotation.SuppressLint)1 BottomSheetDialog (android.support.design.widget.BottomSheetDialog)1 RecyclerView (android.support.v7.widget.RecyclerView)1 ViewGroup (android.view.ViewGroup)1 FrameLayout (android.widget.FrameLayout)1 MessagePanel (forpdateam.ru.forpda.ui.views.messagepanel.MessagePanel)1