LayoutInflater.from(HomeActivity.this).inflate(R.layout.item_home, parent,false));
当为parent item 布局有效,但是只会有一条数据,需要在item中把高度设置为wrap_content 就可以显示多条数据了
wrap_content
wrap_content
LayoutInflater.from(HomeActivity.this).inflate(R.layout.item_home, parent,false));
当为parent item 布局有效,但是只会有一条数据,需要在item中把高度设置为wrap_content 就可以显示多条数据了
wrap_content
wrap_content