Adapter作成

This commit is contained in:
r-ca 2024-01-23 01:15:46 +09:00
parent f0ed4327ca
commit b13f048c7e
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -0,0 +1,51 @@
package one.nem.lacerta.feature.library;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
import one.nem.lacerta.model.VcsRevModel;
public class RevAdapter extends RecyclerView.Adapter<RevAdapter.RevViewHolder>{
private ArrayList<VcsRevModel> revModels;
public RevAdapter(ArrayList<VcsRevModel> revModels) {
this.revModels = revModels;
}
public RevAdapter() {
}
public void setRevModels(ArrayList<VcsRevModel> revModels) {
this.revModels = revModels;
}
@NonNull
@Override
public RevAdapter.RevViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
return null;
}
@Override
public void onBindViewHolder(@NonNull RevAdapter.RevViewHolder holder, int position) {
}
@Override
public int getItemCount() {
return 0;
}
class RevViewHolder extends RecyclerView.ViewHolder {
public RevViewHolder(@NonNull View itemView) {
super(itemView);
}
}
}