Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Apr 27, 2024
1 parent ea4f390 commit 5319700
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
class ItemHolder extends RecyclerView.ViewHolder {
public ItemHolder(@NonNull View itemView) {
super(itemView);
}

new Handler().postDelayed(new Runnable() {
@Override
public void run() {
// Set the ellipsize property and make the TextViews selectable to start the marquee
((AppCompatTextView) itemView.findViewById(R.id.title)).setEllipsize(TextUtils.TruncateAt.MARQUEE);
((AppCompatTextView) itemView.findViewById(R.id.title)).setSelected(true);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
// Set the ellipsize property and make the TextViews selectable to start the marquee
((AppCompatTextView) itemView.findViewById(R.id.title)).setEllipsize(TextUtils.TruncateAt.MARQUEE);
((AppCompatTextView) itemView.findViewById(R.id.title)).setSelected(true);

((AppCompatTextView) itemView.findViewById(R.id.description)).setEllipsize(TextUtils.TruncateAt.MARQUEE);
((AppCompatTextView) itemView.findViewById(R.id.description)).setSelected(true);
((AppCompatTextView) itemView.findViewById(R.id.description)).setEllipsize(TextUtils.TruncateAt.MARQUEE);
((AppCompatTextView) itemView.findViewById(R.id.description)).setSelected(true);
}
}, 3000);
}
}, 3000);

public void apply(GameMetadata game) {
((AppCompatTextView) itemView.findViewById(R.id.title))
Expand Down

0 comments on commit 5319700

Please sign in to comment.