1
0
mirror of https://github.com/akaessens/NoFbEventScraper synced 2025-06-05 23:29:13 +02:00

vertical scrolling for cards

This commit is contained in:
akaessens
2020-09-19 12:19:25 +02:00
parent fecf4ae4e8
commit 3c73ea2d77
3 changed files with 53 additions and 10 deletions

View File

@ -93,11 +93,11 @@ public class MainActivity extends AppCompatActivity {
events = createEventList();
adapter = new EventAdapter(events);
recycler_view.setAdapter(adapter);
linear_layout_manager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);
linear_layout_manager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false);
recycler_view.setLayoutManager(linear_layout_manager);
recycler_view.setHasFixedSize(true);
SnapHelper snap_helper = new LinearSnapHelper();
snap_helper.attachToRecyclerView(recycler_view);
//recycler_view.setHasFixedSize(true);
//SnapHelper snap_helper = new LinearSnapHelper();
//snap_helper.attachToRecyclerView(recycler_view);
/*