列表的条目偏左显示怎么办?
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view=mInflater.inflate(R.layout.item_music_layout,parent,false);
//View view=LayoutInflater.from(parent.getContext()).inflate(R.layout.item_music_layout,parent,false);
ViewHolder viewHolder=new ViewHolder(view);
return viewHolder;
}
这个加载没写错呀!
蜂之谷
相关分类