Improve scroll bar

custom_intent
Thomas 11 months ago
parent 8b8e163151
commit 6b876158d5

@ -1316,13 +1316,13 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
} else { } else {
holder.binding.replyCount.setVisibility(View.GONE); holder.binding.replyCount.setVisibility(View.GONE);
} }
if(statusToDeal.reblogs_count > 0 && !(context instanceof ContextActivity)) { if(statusToDeal.reblogs_count > 0) {
holder.binding.boostCount.setText(String.valueOf(statusToDeal.reblogs_count)); holder.binding.boostCount.setText(String.valueOf(statusToDeal.reblogs_count));
holder.binding.boostCount.setVisibility(View.VISIBLE); holder.binding.boostCount.setVisibility(View.VISIBLE);
} else { } else {
holder.binding.boostCount.setVisibility(View.GONE); holder.binding.boostCount.setVisibility(View.GONE);
} }
if(statusToDeal.favourites_count > 0 && !(context instanceof ContextActivity)) { if(statusToDeal.favourites_count > 0) {
holder.binding.favoriteCount.setText(String.valueOf(statusToDeal.favourites_count)); holder.binding.favoriteCount.setText(String.valueOf(statusToDeal.favourites_count));
holder.binding.favoriteCount.setVisibility(View.VISIBLE); holder.binding.favoriteCount.setVisibility(View.VISIBLE);
} else { } else {

@ -38,6 +38,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:clipToPadding="false" android:clipToPadding="false"
android:paddingBottom="6dp" android:paddingBottom="6dp"
android:fastScrollEnabled="true"
android:scrollbarSize="5dp"
android:scrollbarThumbVertical="?colorPrimary" android:scrollbarThumbVertical="?colorPrimary"
android:scrollbars="vertical" /> android:scrollbars="vertical" />

Loading…
Cancel
Save