Android Studio Arctic Fox Essentials - Kotlin Edition by Smyth Neil;

Android Studio Arctic Fox Essentials - Kotlin Edition by Smyth Neil;

Author:Smyth, Neil;
Language: eng
Format: epub
Publisher: Payload Media
Published: 2021-08-25T18:13:05+00:00


Figure 48-12

Click within the circle and drag the resulting line to the secondFragment destination:

Figure 48-13

Release the line to establish the action connection between the origin and destination at which point the line will change into an arrow as shown in Figure 48-14:

Figure 48-14

An action connection may be deleted at any time by selecting it and pressing the keyboard Delete key. With the arrow selected, review the properties available within the Attributes tool window and change the ID to mainToSecond. This is the ID by which the action will be referenced within the code. Switch the editor to Code mode and note that the action is now included within the XML:

<?xml version="1.0" encoding="utf-8"?>

<navigation xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:app="http://schemas.android.com/apk/res-auto"

xmlns:tools="http://schemas.android.com/tools"

android:id="@+id/navigation_graph"

app:startDestination="@id/mainFragment">



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.