Fix recycler view item width

This commit is contained in:
Dima-1 2020-06-10 18:47:38 +03:00
parent e2a0501366
commit 6dc5f77ab3

View file

@ -68,6 +68,7 @@ public class HorizontalSelectionAdapter extends RecyclerView.Adapter<HorizontalS
AndroidUtils.setBackground(holder.button, buttonBackground);
}
textView.setText(capitalizeFirstLetter(item));
textView.requestLayout();
holder.button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {