<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Waelmessaadi on Medium]]></title>
        <description><![CDATA[Stories by Waelmessaadi on Medium]]></description>
        <link>https://medium.com/@waelmessaadi16?source=rss-3d0aabcd0d3a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Waelmessaadi on Medium</title>
            <link>https://medium.com/@waelmessaadi16?source=rss-3d0aabcd0d3a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 23 May 2026 16:03:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@waelmessaadi16/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Navigation Component Android Java]]></title>
            <link>https://medium.com/@waelmessaadi16/navigation-component-android-java-a4741a1dff12?source=rss-3d0aabcd0d3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4741a1dff12</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[navigation-component]]></category>
            <dc:creator><![CDATA[Waelmessaadi]]></dc:creator>
            <pubDate>Sun, 11 Jul 2021 07:56:02 GMT</pubDate>
            <atom:updated>2021-07-11T07:56:02.375Z</atom:updated>
            <content:encoded><![CDATA[<p>To include Navigation support in your project, add the following dependencies to your app’s build.gradle file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*sgjtcPOhwqJAVka0q8MgJw.png" /><figcaption>image 1 . dependencies(build.gradle)</figcaption></figure><h3>1. Create a navigation graph</h3><p>Navigation occurs between your app’s <em>destinations</em> — that is, anywhere in your app to which users can navigate. These destinations are connected via <em>actions</em>.</p><p>A <em>navigation graph</em> is a resource file that contains all of your destinations and actions. The graph represents all of your app’s navigation paths.</p><p>Figure 1 shows a visual representation of a navigation graph for a sample app containing six destinations connected by five actions. Each destination is represented by a preview thumbnail, and connecting actions are represented by arrows that show how users can navigate from one destination to another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K39Yeuk5yv_F-zbGDB0ktw.png" /><figcaption>image 2 . A navigation graph that shows previews of six different destinations that are connected via five actions.</figcaption></figure><ol><li><em>Destinations</em> are the different content areas in your app.</li><li><em>Actions</em> are logical connections between your destinations that represent paths that users can take.</li></ol><p>To add a navigation graph to your project, do the following:</p><ol><li>In the Project window, right-click on the res directory and select <strong>New &gt; Android Resource File</strong>. The <strong>New Resource File</strong> dialog appears.</li><li>Type a name in the <strong>File name</strong> field, such as “nav_graph”.</li><li>Select <strong>Navigation</strong> from the <strong>Resource type</strong> drop-down list, and then click <strong>OK</strong>.</li></ol><p>When you add your first navigation graph, Android Studio creates a navigation resource directory within the res directory. This directory contains your navigation graph resource file (nav_graph.xml, for example).</p><h3>2. Navigation Editor</h3><p>After adding a graph, Android Studio opens the graph in the <em>Navigation Editor</em>. In the Navigation Editor, you can visually edit navigation graphs or directly edit the underlying XML.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wovEqdpYjr-DtFCB6xgtZw.png" /><figcaption>image 3 . The Navigation Editor</figcaption></figure><ol><li><strong>Destinations panel</strong>: Lists your navigation host and all destinations currently in the <strong>Graph Editor</strong>.</li><li><strong>Graph Editor</strong>: Contains a visual representation of your navigation graph. You can switch between <strong>Design</strong> view and the underlying XML representation in the <strong>Text</strong> view.</li><li><strong>Attributes</strong>: Shows attributes for the currently-selected item in the navigation graph.</li></ol><p>Click the <strong>Text</strong> tab to see the corresponding XML, which should look similar to the following snippet:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*sGce0W8Ol3qYhPpv1d8VwQ.png" /></figure><p>The &lt;navigation&gt; element is the root element of a navigation graph. As you add destinations and connecting actions to your graph, you can see the corresponding &lt;destination&gt; and &lt;action&gt; elements here as child elements. If you have <a href="https://developer.android.com/guide/navigation/navigation-nested-graphs">nested graphs</a>, they appear as child &lt;navigation&gt; elements.</p><p>Link to rest of tuto : <a href="https://developer.android.com/guide/navigation/navigation-getting-started">https://developer.android.com/guide/navigation/navigation-getting-started</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4741a1dff12" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>