<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="testEditText " type="id"/>
</resources>
final EditText testEditText = new EditText(getActivity());
testEditText.setId(R.id.testEditText);
I created a edittext dynamically but i cannot set text into it from another function.
EditText testEditText= (EditText) v.findViewById(R.id.testEditText);
i tried to initialize it but it always return null.
Is there any way i can set and get value of testedittext from different function