use of com.secupwn.aimsicd.adapters.holders.ViewTableNameSpinnerHolder in project Android-IMSI-Catcher-Detector by CellularPrivacy.
the class DbViewerSpinnerAdapter method getView.
@Override
public View getView(int pPosition, View pConvertView, ViewGroup pParent) {
View lView = pConvertView;
ViewTableNameSpinnerHolder lHolder;
if (lView == null || (lView.getId() != R.id.item_root_layout && !(lView.getTag() instanceof ViewTableNameSpinnerHolder))) {
lView = ((LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.item_spinner_db_viewer, pParent, false);
lHolder = setViewHolderToView(lView);
} else {
lHolder = (ViewTableNameSpinnerHolder) lView.getTag();
}
StatesDbViewer lEntry = mDataList.get(pPosition);
lHolder.name.setText(lEntry.getDisplayName(getContext()));
return lView;
}
use of com.secupwn.aimsicd.adapters.holders.ViewTableNameSpinnerHolder in project Android-IMSI-Catcher-Detector by CellularPrivacy.
the class DbViewerSpinnerAdapter method setViewHolderToView.
private ViewTableNameSpinnerHolder setViewHolderToView(View pView) {
ViewTableNameSpinnerHolder lHolder;
lHolder = new ViewTableNameSpinnerHolder();
lHolder.name = (TextView) pView.findViewById(R.id.item_name);
pView.setTag(lHolder);
return lHolder;
}
Aggregations