TonicArtos / SuperSLiM

A layout manager for the RecyclerView with interchangeable linear, grid, and staggered displays of views, all with configurable section headers including the sticky variety as specified in the material design docs.
http://tonicartos.nz
2.12k stars 296 forks source link

Change from LinearSLM to GridSLM #96

Closed andersonkxiass closed 9 years ago

andersonkxiass commented 9 years ago

I'm using 0.4.13 version and should like in runtime change from LinearSLM to GridSLM. The following code is deprecated:

GridSLM.LayoutParams params = new GridSLM.LayoutParams(view.getLayoutParams()); params.setNumColumns(5); view.setLayoutParams(params);

how should I do it now?

andersonkxiass commented 9 years ago

Sorry for this issue I saw that you updated the example code to use this way:

final GridSLM.LayoutParams lp = GridSLM.LayoutParams.from(itemView.getLayoutParams());

TonicArtos commented 9 years ago

Sorry, I should have been more detailed in my release notes, and added an explanation in the Java doc.

andersonkxiass commented 9 years ago

Thanks for this great library. I take the opportunity to say that I would like much of contribute someway. I have written a example code and also i will help answer questions at the stackoverflow.