Java Code Examples for com.handmark.pulltorefresh.library.PullToRefreshBase.Orientation#HORIZONTAL

The following examples show how to use com.handmark.pulltorefresh.library.PullToRefreshBase.Orientation#HORIZONTAL . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FlipLoadingLayout.java    From SweetMusicPlayer with Apache License 2.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 2
Source File: FlipLoadingLayout.java    From FacebookNewsfeedSample-Android with Apache License 2.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 3
Source File: FlipLoadingLayout.java    From effective_android_sample with Apache License 2.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 4
Source File: FlipLoadingLayout.java    From zen4android with MIT License 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 5
Source File: FlipLoadingLayout_foot.java    From handmarkPulltorefreshLibrary with Apache License 2.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
	case PULL_FROM_END:
		if (mScrollDirection == Orientation.HORIZONTAL) {
			angle = 90f;
		} else {
			angle = 180f;
		}
		break;

	case PULL_FROM_START:
		if (mScrollDirection == Orientation.HORIZONTAL) {
			angle = 270f;
		}
		break;

	default:
		break;
	}

	return angle;
}
 
Example 6
Source File: FlipLoadingLayout.java    From handmarkPulltorefreshLibrary with Apache License 2.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
	case PULL_FROM_END:
		if (mScrollDirection == Orientation.HORIZONTAL) {
			angle = 90f;
		} else {
			angle = 180f;
		}
		break;

	case PULL_FROM_START:
		if (mScrollDirection == Orientation.HORIZONTAL) {
			angle = 270f;
		}
		break;

	default:
		break;
	}

	return angle;
}
 
Example 7
Source File: FlipLoadingLayout.java    From PullToRefresh-PinnedSection-ListView with MIT License 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 8
Source File: FlipLoadingLayout.java    From iSCAU-Android with GNU General Public License v3.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 9
Source File: FlipLoadingLayout.java    From bmob-android-demo-paging with GNU General Public License v3.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 10
Source File: FlipLoadingLayout.java    From ONE-Unofficial with Apache License 2.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 11
Source File: FlipLoadingLayout.java    From Social with Apache License 2.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 12
Source File: FlipLoadingLayout.java    From PullToRefreshLibrary with Apache License 2.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 13
Source File: FlipLoadingLayout.java    From GifAssistant with Apache License 2.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 14
Source File: FlipLoadingLayout.java    From LbaizxfPulltoRefresh with Apache License 2.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 15
Source File: FlipLoadingLayout.java    From FanXin-based-HuanXin with GNU General Public License v2.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 16
Source File: FlipLoadingLayout.java    From BigApp_Discuz_Android with Apache License 2.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 17
Source File: FlipLoadingLayout.java    From sctalk with Apache License 2.0 6 votes vote down vote up
private float getDrawableRotationAngle() {
	float angle = 0f;
	switch (mMode) {
		case PULL_FROM_END:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 90f;
			} else {
				angle = 180f;
			}
			break;

		case PULL_FROM_START:
			if (mScrollDirection == Orientation.HORIZONTAL) {
				angle = 270f;
			}
			break;

		default:
			break;
	}

	return angle;
}
 
Example 18
Source File: FlipLoadingLayout.java    From BigApp_WordPress_Android with Apache License 2.0 5 votes vote down vote up
private float getDrawableRotationAngle()
{
    float angle = 0f;
    switch (mMode)
    {
        case PULL_FROM_END:
            if (mScrollDirection == Orientation.HORIZONTAL)
            {
                angle = 90f;
            } else
            {
                angle = 180f;
            }
            break;

        case PULL_FROM_START:
            if (mScrollDirection == Orientation.HORIZONTAL)
            {
                angle = 270f;
            }
            break;

        default:
            break;
    }

    return angle;
}
 
Example 19
Source File: FlipLoadingLayoutFooter.java    From BigApp_WordPress_Android with Apache License 2.0 5 votes vote down vote up
private float getDrawableRotationAngle()
{
    float angle = 0f;
    switch (mMode)
    {
        case PULL_FROM_END:
            if (mScrollDirection == Orientation.HORIZONTAL)
            {
                angle = 90f;
            } else
            {
                angle = 180f;
            }
            break;

        case PULL_FROM_START:
            if (mScrollDirection == Orientation.HORIZONTAL)
            {
                angle = 270f;
            }
            break;

        default:
            break;
    }

    return angle;
}