首页 > TAG信息列表 > LinearViewHolder

用RecyclerView实现瀑布流

首先建立一个 PbRecyclerViewActivity.java文件: 1 public class PbRecyclerViewActivity extends AppCompatActivity { 2 private RecyclerView RVpb; 3 @Override 4 protected void onCreate(Bundle savedInstanceState) { 5 super.onCreate(savedIns

用RecyclerView实现水平滚动和网格视图

建立RecyclerViewActivity.java文件 1 public class RecyclerViewActivity extends AppCompatActivity { 2 private Button BtnLinear; 3 private Button BtnShuiping; 4 private Button BtnGrid; 5 @Override 6 protected void onCreate(Bundle saved

RecyclerView

首先用RecyclerView实现列表视图 建立RecyclerViewActivity.java文件: 1 public class RecyclerViewActivity extends AppCompatActivity { 2 private Button BtnLinear; 3 @Override 4 protected void onCreate(Bundle savedInstanceState) { 5 super.o