Use dp for padding

This commit is contained in:
ByteHamster 2021-03-05 13:16:05 +01:00
parent bbde3ff9de
commit 4b7f7880a5
1 changed files with 2 additions and 1 deletions

View File

@ -307,7 +307,8 @@ public class NavListAdapter extends RecyclerView.Adapter<NavListAdapter.Holder>
holder.count.setVisibility(View.GONE); holder.count.setVisibility(View.GONE);
} }
holder.title.setText(item.getTitle()); 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) { private void bindFeedView(NavDrawerData.FeedDrawerItem drawerItem, FeedHolder holder) {