I'm new to Android, and I used the Navigation Editor tool in Android Studio to implement application navigation between actions. I was mistaken in connection with the link, because I set its direction just the opposite. I was ready to change it, but I could not. I am trying to select a link and press the delete key, but it does not work. I searched in all my application files to find something in the code that represents this link, but I did not find anything. I deleted the .navigation directory and opened the Navigation Editor tool, but it doesnβt work either. The Android documentation ( https://sites.google.com/a/android.com/tools/navigation-editor ) doesn't help me at all.
So, I want to know how to remove a transition link in the Navigation Editor tool or in some application file in Android Studio.
Thanks in advance.
UPDATE: SOLVING! When you make the transition in the navigation editor tool in Android Studio, it creates some lines of code that set the listener in the onCreate method for this operation. To remove a transition, simply delete these lines. You still cannot do this from the Navigation Editor tool. For instance:
findViewById(R.id.rl_main).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(MainActivity2.this, MainActivity.class)); } });
source share