use of com.android.camera.ui.RotateLayout in project android_packages_apps_Camera by CyanogenMod.
the class VideoModule method setOrientationIndicator.
private void setOrientationIndicator(int orientation, boolean animation) {
Rotatable[] indicators = { mBgLearningMessageRotater, mReviewDoneButton, mReviewPlayButton };
for (Rotatable indicator : indicators) {
if (indicator != null)
indicator.setOrientation(orientation, animation);
}
if (mGestures != null) {
mGestures.setOrientation(orientation);
}
// icon.
if (mReviewCancelButton instanceof RotateLayout) {
mReviewCancelButton.setOrientation(orientation, animation);
}
// the width is not enough.
if (mLabelsLinearLayout != null) {
if (((orientation / 90) & 1) == 0) {
mLabelsLinearLayout.setOrientation(LinearLayout.VERTICAL);
} else {
mLabelsLinearLayout.setOrientation(LinearLayout.HORIZONTAL);
}
}
mRecordingTimeRect.setOrientation(0, animation);
}
Aggregations