On Android using Turbolinks 5, I am not getting the classic Turbolinks transition (without any intervening white page and with horizontal progress bar on top). So I think I need my own progressView but I may be wrong
I have this in my MainActivity.java
progressView = new ProgressBar(turbolinksView.getContext());
TurbolinksSession.getDefault(this)
.activity(this)
.adapter(this)
.view(turbolinksView)
.progressView(progressView, R.id.indeterminateBar, 300)
.visit(location);
and this in my activity_main.xml
<ProgressBar
android:id="@+id/indeterminateBar"
android:layout_width="wrap_content"
style="@android:style/Widget.ProgressBar.Horizontal"
android:layout_height="wrap_content"
/>
gradle settings are
compileSdkVersion 26
minSdkVersion 19
targetSdkVersion 22
when I run the above I get IllegalArgumentException "A progress indicator view must be provided in your custom progressView."
so I tried
.progressView(progressView, progressView.getId(), 300)
but I still get IllegalArgumentException "A progress indicator view must be provided in your custom progressView."
Obviously I am unable to instantiate the right progressView
, my question is what how do I get/create the right progressView
??
Apologies in advance for cross posting the question from Turbolinks-Android the only reason I posted it here too is I have been stuck on it for days
It is here. Your
progressView
should be some Layout likeFrameLayout
and it has to containR.id.indeterminateBar
inside. So it would be something like: