Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switching between view mode and edit mode in Android?

What is the best practice to switch between View and Edit Mode in Android? As example, I provided a screenshot of the Google Calendar application.

Should theses screen combined in one view? Or should one use two different Activities?

View vs. Edit mode

like image 624
Martin Böschen Avatar asked Sep 20 '25 02:09

Martin Böschen


1 Answers

There is no general good practice in this case. The choise depends on the overall number and type of differences between the two screens.

If there are major differences in layouts for example, use 2 Activities for better support later.

If only some view properties differ in the two modes, use 1 activity with some logic that handles the property values.

Make your decision based on the time you will need to support, scale and edit each view later on.

like image 199
Krasimir Stoev Avatar answered Sep 22 '25 16:09

Krasimir Stoev