Reduce padding of horizontal home sections to better align them with the titles (#6290)
This commit is contained in:
parent
12793de604
commit
04a8ee5787
|
@ -65,6 +65,8 @@ public class EpisodesSurpriseSection extends HomeSection {
|
|||
viewBinding.recyclerView.setLayoutManager(
|
||||
new LinearLayoutManager(getContext(), RecyclerView.HORIZONTAL, false));
|
||||
viewBinding.recyclerView.setAdapter(listAdapter);
|
||||
int paddingHorizontal = (int) (12 * getResources().getDisplayMetrics().density);
|
||||
viewBinding.recyclerView.setPadding(paddingHorizontal, 0, paddingHorizontal, 0);
|
||||
if (seed == 0) {
|
||||
seed = new Random().nextInt();
|
||||
}
|
||||
|
|
|
@ -58,6 +58,8 @@ public class QueueSection extends HomeSection {
|
|||
viewBinding.recyclerView.setLayoutManager(
|
||||
new LinearLayoutManager(getContext(), RecyclerView.HORIZONTAL, false));
|
||||
viewBinding.recyclerView.setAdapter(listAdapter);
|
||||
int paddingHorizontal = (int) (12 * getResources().getDisplayMetrics().density);
|
||||
viewBinding.recyclerView.setPadding(paddingHorizontal, 0, paddingHorizontal, 0);
|
||||
return view;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,6 +44,8 @@ public class SubscriptionsSection extends HomeSection {
|
|||
listAdapter = new HorizontalFeedListAdapter((MainActivity) getActivity());
|
||||
listAdapter.setDummyViews(NUM_FEEDS);
|
||||
viewBinding.recyclerView.setAdapter(listAdapter);
|
||||
int paddingHorizontal = (int) (12 * getResources().getDisplayMetrics().density);
|
||||
viewBinding.recyclerView.setPadding(paddingHorizontal, 0, paddingHorizontal, 0);
|
||||
return view;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue