Browse Source
Nested navigation using global actions
Nested navigation using global actions
Using a workaround for including global actions. This may change in the future releases of Navigation librenovate/org.robolectric-robolectric-4.x
Ammar Githam
4 years ago
8 changed files with 159 additions and 98 deletions
-
2app/src/main/java/awais/instagrabber/fragments/HashTagFragment.java
-
2app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageThreadFragment.java
-
98app/src/main/java/awais/instagrabber/fragments/main/FeedFragment.java
-
25app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java
-
24app/src/main/res/navigation/direct_messages_nav_graph.xml
-
50app/src/main/res/navigation/feed_nav_graph.xml
-
25app/src/main/res/navigation/hashtag_nav_graph.xml
-
31app/src/main/res/navigation/profile_nav_graph.xml
@ -0,0 +1,25 @@ |
|||||
|
<?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/hashtag_nav_graph" |
||||
|
app:startDestination="@id/hashTagFragment"> |
||||
|
<fragment |
||||
|
android:id="@+id/hashTagFragment" |
||||
|
android:name="awais.instagrabber.fragments.HashTagFragment" |
||||
|
android:label="" |
||||
|
tools:layout="@layout/fragment_hashtag"> |
||||
|
<argument |
||||
|
android:name="hashtag" |
||||
|
app:argType="string" |
||||
|
app:nullable="false" /> |
||||
|
</fragment> |
||||
|
<action |
||||
|
android:id="@+id/action_global_hashTagFragment" |
||||
|
app:destination="@id/hashTagFragment"> |
||||
|
<argument |
||||
|
android:name="hashtag" |
||||
|
app:argType="string" |
||||
|
app:nullable="false" /> |
||||
|
</action> |
||||
|
</navigation> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue