Skip to content

Commit

Permalink
Padding to recycler view
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Diaz committed Sep 29, 2016
1 parent 444b583 commit 5d5abf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
setDivider(new ColorDrawable(Color.TRANSPARENT));
setDividerHeight(0);

getListView().setPadding(0, 0, 0, getActivity().getResources().getDimensionPixelSize(R.dimen.padding_list_bottom));
}

@Override
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@
<dimen name="margin_vertical_dialog">16dp</dimen>
<dimen name="margin_horizontal_dialog">24dp</dimen>

<!-- Paddings -->
<dimen name="padding_list_bottom">64dp</dimen>

</resources>

0 comments on commit 5d5abf0

Please sign in to comment.