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