diff options
author | ByteHamster <info@bytehamster.com> | 2021-03-05 13:16:05 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2021-03-05 13:23:53 +0100 |
commit | 4b7f7880a5394603340d81b8a286a78b100df052 (patch) | |
tree | fba90dedebd5d183bbe8b6eb04915b9c5949a954 /app/src | |
parent | bbde3ff9ded6aecc94b3e67e144c1018b0ca89b0 (diff) | |
download | AntennaPod-4b7f7880a5394603340d81b8a286a78b100df052.zip |
Use dp for padding
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java index c37eb958a..b5e814f35 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java @@ -307,7 +307,8 @@ public class NavListAdapter extends RecyclerView.Adapter<NavListAdapter.Holder> holder.count.setVisibility(View.GONE); } holder.title.setText(item.getTitle()); - holder.itemView.setPadding(item.getLayer() * 50, 0, 0, 0); // TODO + int padding = (int) (activity.get().getResources().getDimension(R.dimen.thumbnail_length_navlist) / 2); + holder.itemView.setPadding(item.getLayer() * padding, 0, 0, 0); } private void bindFeedView(NavDrawerData.FeedDrawerItem drawerItem, FeedHolder holder) { |