I have some items in a RecyclerView that I'm displaying in a couple of different Fragments within my app. The items have a Comment button. When the user taps the button, I'd like to show an EditText and a Button at the bottom of the screen so they can enter their comment and press "Send".
I'm thinking I should programmatically create a new ConstraintLayout, add it to the bottom of my current ConstraintLayout, and then create a new EditText and new Button to put inside.
I need to be able to use this comment input mechanism from a couple of different places within my app.
Is this a good approach?