From 5d5abf0a9a0b14b68e713f16749e707d972ec377 Mon Sep 17 00:00:00 2001 From: Pedro Diaz Date: Thu, 29 Sep 2016 10:15:52 -0400 Subject: [PATCH] Padding to recycler view --- .../main/java/com/icecream/snorlax/app/ui/HomeActivity.java | 2 ++ app/src/main/res/values/dimens.xml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/app/src/main/java/com/icecream/snorlax/app/ui/HomeActivity.java b/app/src/main/java/com/icecream/snorlax/app/ui/HomeActivity.java index d39eff2..9883f23 100644 --- a/app/src/main/java/com/icecream/snorlax/app/ui/HomeActivity.java +++ b/app/src/main/java/com/icecream/snorlax/app/ui/HomeActivity.java @@ -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 diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index d59c4e1..c064e7d 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -11,4 +11,7 @@ 16dp 24dp + + 64dp +