Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding information about initial position.

Signed-off-by: Patrik Åkerfeldt <patrik.akerfeldt@gmail.com>
  • Loading branch information...
commit 01e23367f412b771b8fbab8ff410789fbbbfd5e3 1 parent 7572ed9
@pakerfeldt pakerfeldt authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.md
View
6 README.md
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.