Hy everybody.
I need to verify if the content of a string is null or not. If the string is != null I make a performClick in a imageButton. This click make a inflate of layout in another layout. Then I need to write text in the editText that was inflated, but I can't. Is not possible to do a inflation and write text in editText inflated simultaneously.
Here is my code
if(sApelido != ""){
inflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
b = (LinearLayout)inflater.inflate(R.layout.socio_form_structured_name,null);
lLayout = (LinearLayout)findViewById(R.id.main_layout_id7);
lLayout = (LinearLayout)findViewById(R.layout.socio_form_structured_name);
lLayout.addView(b);
apelido.setText(null); //Write in one of the editText's that was inflated
apelido.setText(sApelido); //apelido is a editText that belongs to LinearLayout b
}
I don't know if you understand my question Thanks for your help.