Am stuck with a pretty simple issue in myapp . i have a custom dialog which has **EditText** and whenever softkeyboard opensup i want to show header/a another layout on dialog layout(see picture with three textviews ). if he clicks on done. hidethesoftkeyboard along with header.

```
        ettagmsg = (EditText) dialog.findViewById(R.id.etFlyTagName);

```

popup header

```
        LinearLayout layheader = (LinearLayout)findViewById(R.layout.header_buttons);

```

![enter image description here](https://i.stack.imgur.com/3x3XC.png)