private View inflateItemView ( @ Nullable final ViewGroup parent ) { LayoutInflater layoutInflater = LayoutInflater . from ( context ) ; View view = layoutInflater . inflate ( style == Style . GRID ? R . layout . grid_item : R . layout . list_item , parent , false ) ; ItemViewHolder viewHolder = new ItemViewHolder ( ) ; viewHolder . iconImageView = view . findViewById ( android . R . id . icon ) ; viewHolder . titleTextView = view . findViewById ( android . R . id . title ) ; view . setTag ( viewHolder ) ; return view ; }
Inflates the view which is used to visualize an item .