This repository was archived by the owner on Jul 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
viewflow-example/res/layout
viewflow/src/org/taptwo/android/widget Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
android:id=" @+id/viewflowindic"
12
12
android:layout_gravity=" center_horizontal"
13
13
app:inactiveType=" fill"
14
- app:fadeOut=" 1 " />
14
+ app:fadeOut=" 1000 " />
15
15
<org .taptwo.android.widget.ViewFlow
16
16
android:id=" @+id/viewflow" android : layout_width =" fill_parent"
17
17
android:layout_height=" fill_parent" app : sidebuffer =" 3" ></org .taptwo.android.widget.ViewFlow>
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ public void setStrokeColor(int color) {
315
315
* Resets the fade out timer to 0. Creating a new one if needed
316
316
*/
317
317
private void resetTimer () {
318
- // Only set the timer if we have a timeout of at least 1 second
318
+ // Only set the timer if we have a timeout of at least 1 millisecond
319
319
if (fadeOutTime > 0 ) {
320
320
// Check if we need to create a new timer
321
321
if (timer == null || timer ._run == false ) {
@@ -347,8 +347,8 @@ public void resetTimer() {
347
347
protected Void doInBackground (Void ... arg0 ) {
348
348
while (_run ) {
349
349
try {
350
- // Wait for a second
351
- Thread .sleep (1000 );
350
+ // Wait for a millisecond
351
+ Thread .sleep (1 );
352
352
// Increment the timer
353
353
timer ++;
354
354
You can’t perform that action at this time.
0 commit comments