skip to Main Content

I’m creating an android chat. In Telegram Android app, when I touch on reply, a layout appears and I want to how to do the same thing. I tried to the same with an extra constraint layout and make it visible or invisible when necessary.

enter image description here
What is the best way to do this?

2

Answers


  1. Chosen as BEST ANSWER

    I achived this with add view. By adding constraint layout into Linearlayout. Anyone with better and best practice, please share your answer.

    LinearLayout item = findViewById(R.id.reply_layout);
    View child = getLayoutInflater().inflate(R.layout.reply_layout, null);
    item.addView(child);
    

Please signup or login to give your own answer.
Back To Top
Search