Skip to content

Commit

Permalink
Adding information about initial position.
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Åkerfeldt <patrik.akerfeldt@gmail.com>
  • Loading branch information
pakerfeldt committed Aug 5, 2011
1 parent 7572ed9 commit 01e2336
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ To be able to use the more convenient `app:sidebuffer` attribute, the applicatio

ViewFlow viewFlow = (ViewFlow) findViewById(R.id.viewflow);
viewFlow.setAdapter(myAdapter);

Setting a different initial position (0 being default) is as easy as:

viewFlow.setAdapter(myAdapter, 8);

You could also use `setSelection(...)` immediately after calling `setAdapter(myAdapter)` but that might load unnecessary views giving you a decrease in performance.

### Listen on screen change events

Expand Down

0 comments on commit 01e2336

Please sign in to comment.