I have a question as to how I can return to the same position as my recyclerView, since when I return from another activity it sends me to the beginning and I would like to keep the same position in which I left it. It should be noted that I am using a GridLayout and that said recycler is within a fragment, is it possible to return to the same position as the last view? thanks.
recyclerView = (RecyclerView) view.findViewById(R.id.recycler);
layoutManager = new GridLayoutManager(getActivity(), 2);
recyclerView.setLayoutManager(layoutManager);
adapter = new Adapter();
recyclerView.setAdapter(adapter);