How to print the data which is coming from the edittext?

前端 未结 1 1938
小蘑菇
小蘑菇 2021-01-26 10:06
final ViewGroup layout6 = (ViewGroup) LayoutInflater.from(
                           Menus.this).inflate(
                           R.layout.beefkabobsandwhichdialog,          


        
相关标签:
1条回答
  • 2021-01-26 10:18

    Your dialog's content is not set with layout6. You have a second builder6.setView() in there. That is why Android cannot find the EditText's ID. Also, maybe you can have more descriptive variable names. :)

    0 讨论(0)
提交回复
热议问题