Openaphid Flipview Implementation

667 Views Asked by At

Im having trouble in using this library. I want to implement it in our capstone project (Students Handbook in Android). I've only manage to import the library in my Android studio. I cant figure out what to do next.

I've already search for tutorials but I only got this. I believe that this tutorials lacks information I need. Can anyone help me how would I apply this library to our application?

1

There are 1 best solutions below

5
Stephen Vinouze On

If you managed to import the library successfully, then to make this component work its pretty much like using a ListView. Just instantiate your view, add it to your ViewGroup and bind it with your adapter (say ArrayAdapter) that will contain your pages.

FlipViewController flipView = new FlipViewController(yourContext, FlipViewController.HORIZONTAL);
yourContainer.addView(flipView);

yourAdapter.addAll(yourItems);
flipView.setAdapter(yourAdapter);