Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public View getView(int position, View convertView, ViewGroup parent)
  2. {
  3. // Check if the existing view is being reused, otherwise inflate the view
  4.  
  5. View listItemView = convertView;
  6. if(listItemView == null) {
  7. listItemView = LayoutInflater.from(getContext()).inflate(
  8. R.layout.list_item, **parent**, **false**);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement