Android popup won't dismiss

view full story

http://stackoverflow.com – I am trying to implement popup in my application but it won't dismiss, why? Popup is supposed to open when I click on Plus button and it does. Then is is supposed to close when I click on Cancel button in popup layout but it doesn't, why? Popup layout (tempo_popup.xml): <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <EditText android:id="@+id/editText1" android:layout_width="m (HowTos)