mirror of
https://github.com/Tinob/Ishiiruka.git
synced 2024-06-05 22:59:03 -04:00
31 lines
752 B
Java
31 lines
752 B
Java
package org.dolphinemu.ishiiruka.viewholders;
|
|
|
|
import android.support.v7.widget.RecyclerView;
|
|
import android.view.View;
|
|
import android.widget.ImageView;
|
|
import android.widget.TextView;
|
|
|
|
import org.dolphinemu.ishiiruka.R;
|
|
|
|
/**
|
|
* A simple class that stores references to views so that the FileAdapter doesn't need to
|
|
* keep calling findViewById(), which is expensive.
|
|
*/
|
|
public class FileViewHolder extends RecyclerView.ViewHolder
|
|
{
|
|
public View itemView;
|
|
|
|
public TextView textFileName;
|
|
public ImageView imageType;
|
|
|
|
public FileViewHolder(View itemView)
|
|
{
|
|
super(itemView);
|
|
|
|
this.itemView = itemView;
|
|
|
|
textFileName = (TextView) itemView.findViewById(R.id.text_file_name);
|
|
imageType = (ImageView) itemView.findViewById(R.id.image_type);
|
|
}
|
|
}
|