I am developing an application in which i am creating an Edittext programmatically as :
EditText edText = new EditText(this);
edText.setId(1);
edText .setLayoutParams(new TableLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT,0f));
edText .setInputType(InputType.TYPE_CLASS_NUMBER);
edText.setHint("dsgsdgsgs");
tableLayout.addView(edText);
Here I am setting the id of the Edit text as "1" by the line edText.setId(1);
in integer.
But what i need is - I want to set the ID in character as for example:
edText.setId("edittext_hello");
So that i can access it via that id. How can i achieve this task please help.