I have a Main Activity that has a textbox. As you can see in the code. I want to change the id of a textbox on click of a button. can this happen ?
<TextView
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginTop="10dp"
android:textAlignment="center"
android:textSize="18sp"
android:text="0"
android:id="@+id/test">
</TextView>
send.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//How can i chane a Textbox ID?
}
});