public class QueueAdapter.Holder extends RecyclerView.ViewHolder implements View.OnClickListener
QueueAdapter
.Modifier and Type | Field and Description |
---|---|
ImageView |
iconView
The 48dp x 48dp
ImageView displayed at the left of an entry |
LinearLayout |
layout
The
LinearLayout containing an entry |
TextView |
lengthView
The
TextView for the small lower text of an entry used for displaying the song duration |
TextView |
nameView
The
TextView for the large upper text of an entry used for displaying the name |
itemView
Constructor and Description |
---|
Holder(LinearLayout v)
Constructs a
QueueAdapter.Holder using an inflated queue_entry_layout . |
Modifier and Type | Method and Description |
---|---|
void |
onClick(View v)
Method triggered when a
QueueAdapter.Holder is clicked. |
getAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString
public LinearLayout layout
LinearLayout
containing an entrypublic TextView nameView
TextView
for the large upper text of an entry used for displaying the namepublic Holder(LinearLayout v)
QueueAdapter.Holder
using an inflated queue_entry_layout
.v
- the queue_entry_layout
public void onClick(View v)
QueueAdapter.Holder
is clicked.onClick
in interface View.OnClickListener