I have a “model” or entity, say, a User. I need

  • show all users
  • be able to edit one
  • be able to add new
  • be able to remove one

How to do crud operations yourself - I know.

I'm curious, are there any ready-made or semi-ready solutions or templates for displaying (layouts, controls) of all this?

Of course, I can do everything manually - take 4 activity, add to one list view (list of all), to another textview and editView (edit), etc. But surely something must be ready / half-cooked. For example, in Rails this is called scaffolding and is generated automatically.

Android 4.3 and up.

    1 answer 1

    Here 4 activations are not needed. I personally see 2 screenshots, the first screen, it’s the main one, displays the item list, by long tap on item - deleting a long-tapped entity from the list (you can specify via dialog), tap - open a screen to edit item () edit screen), on the main screen I would add a FAB button to add a new item (new screen), by clicking on which a screen similar to the edit screen will open, but only empty, in fact it will be one screen , the difference can be passed through the bundle in the intent. So everything is very standard for Android))

    And yes, how do you realize these two screens - either 2 activations or 1 activations and 2 fragments - this is your business.