Hi I've a list view with custom list adapter(list_item.xml). I have multiple layout folder to support multiple screen size. I found out when I inflate using LayoutInflater, its always taking the view from main "layout" folder. I've a phone with screen size "427x320". This is my code
private LayoutInflater mInflater;
public ListAdapter(Context context, MenuPage menuPage, Activity activity) { // Cache the LayoutInflate to avoid asking for a new one each time. mInflater = LayoutInflater.from(context); }
public View getView(final int position, View convertView, ViewGroup parent) { convertView = mInflater.inflate(R.layout.list_item, null);
}
I want the layout inflater to pick the list_item.xml from "layout-427x320" folder and not "layout" folder
Rajesh