Currently there are two fragments in which a set of posts are being displayed. These two fragments implement their own version of a view holder and an adapter for the posts to be displayed. It will be a good idea to have a class that defines such properties and have both fragments and any future fragment/class to do the same. This way it is more controllable and easier to make overall changes.
Currently there are two fragments in which a set of posts are being displayed. These two fragments implement their own version of a view holder and an adapter for the posts to be displayed. It will be a good idea to have a class that defines such properties and have both fragments and any future fragment/class to do the same. This way it is more controllable and easier to make overall changes.