diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt index b7d7ae70..21c0f3be 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt @@ -478,7 +478,7 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener, Camera } private fun initVideoButtons() { - shutter.setImageResource(R.drawable.ic_video_rec) + shutter.setImageResource(R.drawable.ic_video_rec_animated) setupPreviewImage(false) mPreview?.checkFlashlight() selectVideoTab() @@ -659,7 +659,7 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener, Camera override fun onVideoRecordingStarted() { camera_mode_tab.beInvisible() - shutter.setImageResource(R.drawable.ic_video_stop) + shutter.isSelected = true toggle_camera.beInvisible() change_resolution.isEnabled = false video_rec_curr_timer.beVisible() @@ -667,7 +667,7 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener, Camera override fun onVideoRecordingStopped() { camera_mode_tab.beVisible() - shutter.setImageResource(R.drawable.ic_video_rec) + shutter.isSelected = false video_rec_curr_timer.text = 0.getFormattedDuration() video_rec_curr_timer.beGone() change_resolution.isEnabled = true @@ -797,11 +797,11 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener, Camera fun setRecordingState(isRecording: Boolean) { runOnUiThread { if (isRecording) { - shutter.setImageResource(R.drawable.ic_video_stop) + shutter.isSelected = true toggle_camera.beInvisible() showTimer() } else { - shutter.setImageResource(R.drawable.ic_video_rec) + shutter.isSelected = false hideTimer() } } diff --git a/app/src/main/res/drawable-hdpi/ic_video_rec.png b/app/src/main/res/drawable-hdpi/ic_video_rec.png deleted file mode 100644 index 3555237b..00000000 Binary files a/app/src/main/res/drawable-hdpi/ic_video_rec.png and /dev/null differ diff --git a/app/src/main/res/drawable-hdpi/ic_video_stop.png b/app/src/main/res/drawable-hdpi/ic_video_stop.png deleted file mode 100644 index 72847bb3..00000000 Binary files a/app/src/main/res/drawable-hdpi/ic_video_stop.png and /dev/null differ diff --git a/app/src/main/res/drawable-xhdpi/ic_video_rec.png b/app/src/main/res/drawable-xhdpi/ic_video_rec.png deleted file mode 100644 index 6cebd9be..00000000 Binary files a/app/src/main/res/drawable-xhdpi/ic_video_rec.png and /dev/null differ diff --git a/app/src/main/res/drawable-xhdpi/ic_video_stop.png b/app/src/main/res/drawable-xhdpi/ic_video_stop.png deleted file mode 100644 index 4726160d..00000000 Binary files a/app/src/main/res/drawable-xhdpi/ic_video_stop.png and /dev/null differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_video_rec.png b/app/src/main/res/drawable-xxhdpi/ic_video_rec.png deleted file mode 100644 index b833e67c..00000000 Binary files a/app/src/main/res/drawable-xxhdpi/ic_video_rec.png and /dev/null differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_video_stop.png b/app/src/main/res/drawable-xxhdpi/ic_video_stop.png deleted file mode 100644 index c6896893..00000000 Binary files a/app/src/main/res/drawable-xxhdpi/ic_video_stop.png and /dev/null differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_video_rec.png b/app/src/main/res/drawable-xxxhdpi/ic_video_rec.png deleted file mode 100644 index e53f62fa..00000000 Binary files a/app/src/main/res/drawable-xxxhdpi/ic_video_rec.png and /dev/null differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_video_stop.png b/app/src/main/res/drawable-xxxhdpi/ic_video_stop.png deleted file mode 100644 index c3670ced..00000000 Binary files a/app/src/main/res/drawable-xxxhdpi/ic_video_stop.png and /dev/null differ diff --git a/app/src/main/res/drawable/ic_video_rec.xml b/app/src/main/res/drawable/ic_video_rec.xml new file mode 100644 index 00000000..d7945cad --- /dev/null +++ b/app/src/main/res/drawable/ic_video_rec.xml @@ -0,0 +1,26 @@ + + + + + + + + + diff --git a/app/src/main/res/drawable/ic_video_rec_animated.xml b/app/src/main/res/drawable/ic_video_rec_animated.xml new file mode 100644 index 00000000..2a2dc593 --- /dev/null +++ b/app/src/main/res/drawable/ic_video_rec_animated.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/video_rec_pressed_to_unpressed.xml b/app/src/main/res/drawable/video_rec_pressed_to_unpressed.xml new file mode 100644 index 00000000..57c77ad9 --- /dev/null +++ b/app/src/main/res/drawable/video_rec_pressed_to_unpressed.xml @@ -0,0 +1,17 @@ + + + + + + + + + diff --git a/app/src/main/res/drawable/video_rec_start_to_stop.xml b/app/src/main/res/drawable/video_rec_start_to_stop.xml new file mode 100644 index 00000000..bc3efbe4 --- /dev/null +++ b/app/src/main/res/drawable/video_rec_start_to_stop.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/video_rec_stop_to_start.xml b/app/src/main/res/drawable/video_rec_stop_to_start.xml new file mode 100644 index 00000000..aa68124e --- /dev/null +++ b/app/src/main/res/drawable/video_rec_stop_to_start.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/video_rec_unpressed_to_pressed.xml b/app/src/main/res/drawable/video_rec_unpressed_to_pressed.xml new file mode 100644 index 00000000..41d27b14 --- /dev/null +++ b/app/src/main/res/drawable/video_rec_unpressed_to_pressed.xml @@ -0,0 +1,17 @@ + + + + + + + + +