Skip to content

Instantly share code, notes, and snippets.

@hjiee
Last active September 21, 2019 00:41
Show Gist options
  • Save hjiee/8b885e7fd7bad73d29d1e0114ccf800a to your computer and use it in GitHub Desktop.
Save hjiee/8b885e7fd7bad73d29d1e0114ccf800a to your computer and use it in GitHub Desktop.
@Nullable
public View getView(int position, @Nullable View view, @Nullable ViewGroup parent) {
View convertView = view;
if (view == null) {
convertView = LayoutInflater.from(this.context).inflate(this.layoutResId, parent, false);
}
if (convertView != null) {
TextView var10000 = (TextView)convertView.findViewById(id.tv_item);
if (var10000 != null) {
var10000.setText((CharSequence)this.items.get(position));
}
}
return convertView;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment