Skip to content

Commit c189f41

Browse files
authored
feat(ui): swap camera and image preview buttons (#159)
Refs: #157
1 parent 6600c57 commit c189f41

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Changed
9+
- Swapped positions of camera switch and image preview buttons ([#157])
810

911
## [1.2.0] - 2025-09-09
1012
### Added
@@ -48,6 +50,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4850

4951
[#20]: https://github.com/FossifyOrg/Camera/issues/20
5052
[#97]: https://github.com/FossifyOrg/Camera/issues/97
53+
[#157]: https://github.com/FossifyOrg/Camera/issues/157
5154

5255
[Unreleased]: https://github.com/FossifyOrg/Camera/compare/1.2.0...HEAD
5356
[1.2.0]: https://github.com/FossifyOrg/Camera/compare/1.1.0...1.2.0

app/src/main/res/layout/activity_main.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,17 @@
114114

115115

116116
<ImageView
117-
android:id="@+id/toggle_camera"
117+
android:id="@+id/last_photo_video_preview"
118118
android:layout_width="@dimen/icon_size"
119119
android:layout_height="@dimen/icon_size"
120-
android:contentDescription="@string/toggle_camera"
121-
android:padding="@dimen/normal_margin"
122-
android:src="@drawable/ic_camera_front_vector"
120+
android:contentDescription="@string/view_last_media"
121+
android:padding="@dimen/medium_margin"
123122
app:layout_constraintBottom_toBottomOf="@id/shutter"
124123
app:layout_constraintEnd_toStartOf="@id/shutter"
125124
app:layout_constraintHorizontal_chainStyle="spread"
126125
app:layout_constraintStart_toStartOf="parent"
127-
app:layout_constraintTop_toTopOf="@id/shutter" />
126+
app:layout_constraintTop_toTopOf="@id/shutter"
127+
tools:src="@tools:sample/backgrounds/scenic" />
128128

129129
<ImageView
130130
android:id="@+id/shutter"
@@ -139,15 +139,15 @@
139139
app:layout_constraintVertical_bias="1" />
140140

141141
<ImageView
142-
android:id="@+id/last_photo_video_preview"
142+
android:id="@+id/toggle_camera"
143143
android:layout_width="@dimen/icon_size"
144144
android:layout_height="@dimen/icon_size"
145-
android:contentDescription="@string/view_last_media"
146-
android:padding="@dimen/medium_margin"
145+
android:contentDescription="@string/toggle_camera"
146+
android:padding="@dimen/normal_margin"
147+
android:src="@drawable/ic_camera_front_vector"
147148
app:layout_constraintBottom_toBottomOf="@id/shutter"
148149
app:layout_constraintEnd_toEndOf="parent"
149150
app:layout_constraintStart_toEndOf="@id/shutter"
150-
app:layout_constraintTop_toTopOf="@id/shutter"
151-
tools:src="@tools:sample/backgrounds/scenic" />
151+
app:layout_constraintTop_toTopOf="@id/shutter" />
152152

153153
</androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)