Allow or Prevent Scrolling in Android StackView
<p>I have a StackView widget that I can set to scroll through the items automatically using the following xml code:</p>

<pre><code>&lt;app-widget provider&gt; ...
...
android:autoAdvanceViewId="@id/stack_view"
&lt;/app-widget provider&gt;
</code></pre>

<p>I know if I remove this line it will disable the automatic scrolling. What I would like to do is utilize the shared preferences I set up when the widget is added to the screen to provide an option for the user to enable or disable the automatic scrolling. Is this possible? if so how would I go about making changes to the app-widget provider inside the code?</p>

<p>Thanks!</p>
