53 lines
1.8 KiB
Java
53 lines
1.8 KiB
Java
package com.scb.phone.view.fragment;
|
|
|
|
import android.os.Bundle;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.LinearLayout;
|
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import com.scb.phone.R;
|
|
import java.util.List;
|
|
import o.AbstractC12009eqC;
|
|
import o.C6583cXR;
|
|
import o.eCA;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public abstract class BaseHeaderAndFooterFragment<T> extends BaseFragment {
|
|
private AbstractC12009eqC<T> c;
|
|
|
|
@BindView
|
|
RecyclerView recyclerView;
|
|
|
|
protected abstract AbstractC12009eqC<T> avh_(LayoutInflater layoutInflater, ViewGroup viewGroup);
|
|
|
|
protected int d() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
View inflate = layoutInflater.inflate(R.layout.2131559461, viewGroup, false);
|
|
ButterKnife.c(this, inflate);
|
|
AbstractC12009eqC<T> avh_ = avh_(layoutInflater, viewGroup);
|
|
this.c = avh_;
|
|
this.recyclerView.setAdapter(avh_);
|
|
getContext();
|
|
LinearLayoutManager linearLayoutManager = new LinearLayoutManager();
|
|
linearLayoutManager.e(1);
|
|
this.recyclerView.setLayoutManager(linearLayoutManager);
|
|
this.recyclerView.setLayoutParams(new LinearLayout.LayoutParams(-1, -1));
|
|
this.recyclerView.d(new eCA(C6583cXR.VQ_(d(), getResources())), -1);
|
|
return inflate;
|
|
}
|
|
|
|
public final void e(List<T> list) {
|
|
AbstractC12009eqC<T> abstractC12009eqC = this.c;
|
|
abstractC12009eqC.d = list;
|
|
abstractC12009eqC.notifyDataSetChanged();
|
|
}
|
|
}
|