Exception when focusing a EditText in a PopupWindow running on Device

后端 未结 7 2055
别那么骄傲
别那么骄傲 2021-02-12 22:38

I\'m developing a PopUp window for Android, and it\'s working, I added a EditText and a Button on that, when running on ADV this work properly, while running on device, when I f

7条回答
  •  野的像风
    2021-02-12 23:28

    EditText text = new EditText(activity);
    text.setText("Dont touch, this crash!");
    

    this actually is the cause of exception..

    when we bind the EditText to some text it falls out on click when virtual keyboard appears..

    But the same code works fine when we do not bind the EditText

    EditText text = new EditText(activity);
    

    Although I am facing the same error, and not able to sort out till now....

    Just putting efforts here to focus on problem creater line...

    Can any body suggest why itz behaving such and how to fix this issue..

    Thankx

提交回复
热议问题