How to get values from dynamically created EditText fields?

后端 未结 2 854
半阙折子戏
半阙折子戏 2021-01-07 11:07

I am little confused with following scenario:

I have an add button which I use it to add a number of EditText fields, when I tap on the save button I sh

2条回答
  •  误落风尘
    2021-01-07 12:02

    btn_no_of.setOnClickListener(new View.OnClickListener() {
    
            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
    
                String str1=edittext1.gettext.tostring();
                                String str2=edittext2.gettext.tostring();
    
            }
        });
    

提交回复
热议问题