use of de.madcyph3r.example.DividerItemDecoration in project AdvancedMaterialDrawer by madcyph3r.
the class ListenerFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.recycleview_layout, container, false);
mRecyclerView = (RecyclerView) v.findViewById(R.id.recycler);
mRecyclerView.setItemAnimator(new DefaultItemAnimator());
mRecyclerView.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL_LIST));
mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
createAdapter(mRecyclerView);
return v;
}
use of de.madcyph3r.example.DividerItemDecoration in project AdvancedMaterialDrawer by madcyph3r.
the class MenuFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.recycleview_layout, container, false);
mRecyclerView = (RecyclerView) v.findViewById(R.id.recycler);
mRecyclerView.setItemAnimator(new DefaultItemAnimator());
mRecyclerView.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL_LIST));
mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
createAdapter(mRecyclerView);
return v;
}
use of de.madcyph3r.example.DividerItemDecoration in project AdvancedMaterialDrawer by madcyph3r.
the class ThemeFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.recycleview_layout, container, false);
mRecyclerView = (RecyclerView) v.findViewById(R.id.recycler);
mRecyclerView.setItemAnimator(new DefaultItemAnimator());
mRecyclerView.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL_LIST));
mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
createAdapter(mRecyclerView);
return v;
}
Aggregations