What could be the problem, on different devices the application is displayed differently, and the font in the TextView set to android:typeface="serif" , but it works only on android 4.4
Android 4.4
Android 5.0.1
Android 5.0.0
They are all 1080 * 1920 - 480dpi, the 1st case is the Galaxy S4 (Android 4.4.4) - API 19 is a virtual device, 2nd Galaxy S4 (Android 5.0.1) - API 21 is a real device, 3rd Nexus 5 (Android 5.0.0) - API 21 is a virtual device.
There is no folder with the -v21 qualifier in the resources .
Activity is inherited from AppCompatActivity , and fragment from Fragment .
If I understand correctly, then the problem is in RecyclerView itself, since need to add one generic addItemDecoration() , but how to do it?
Here is the code to add the RecyclerView adapter :
rvCategories = (RecyclerView) view.findViewById(R.id.rv); adapter = new CategoryAdapter(getContext(), addCategories(TYPE), TYPE, null); GridLayoutManager glm = new GridLayoutManager(getActivity(), 2, GridLayoutManager.HORIZONTAL, false); rvCategories.setAdapter(adapter); rvCategories.setLayoutManager(glm); rvCategories.setLayoutManager(glm); rvCategories.setHasFixedSize(true); rvCategories.addItemDecoration(**вот тут что?**); 

