I'm attempting to resolve a previous issue with setting fill parameters:
Thumbnail does not fill_parent as expected
however when I attempt to implement the fix provided in the answer I don't think I've implemented it correctly. When I attempt to do so I get an error regarding the inflation argument stating: The method inflate(int, ViewGroup, boolean) in the type LayoutInflater is not applicable for the arguments (int, int, boolean) however I'm not sure the exact parameter I should use to resolve this in order to get the ImageView to fill correctly.
JAVA:
@Override
public View getView(int position, View convertView, ViewGroup parent) {
if(convertView == null){
convertView = mInflater.inflate(R.layout.activity_main, R.layout.list_item_user_video, false);
}
UrlImageView thumb = (UrlImageView) convertView.findViewById(R.id.userVideoThumbImageView);
TextView title = (TextView) convertView.findViewById(R.id.userVideoTitleTextView);
final Video video = videos.get(position);
thumb.setImageDrawable(video.getThumbUrl());
title.setText(video.getTitle());
return convertView;
}
ERROR:
The method inflate(int, ViewGroup, boolean) in the type LayoutInflater is not applicable for the arguments (int, int, boolean)
ERROR LOCATION:
convertView = mInflater.inflate(R.layout.activity_main, R.layout.list_item_user_video, false);