Giter VIP home page Giter VIP logo

Comments (17)

dangquanuet avatar dangquanuet commented on August 19, 2024

Do you have action from main to splash in navigation graph?

from the-movie-db-kotlin.

jamalbaharun avatar jamalbaharun commented on August 19, 2024

image
yes its my navigation graph, and this is my code to navigation from main to login

image

its error the occure
image

can you help me?

from the-movie-db-kotlin.

dangquanuet avatar dangquanuet commented on August 19, 2024

Can you try replace
view?.let { navigate }
with
findNavController().navigate(MainFragmentDirections.mainToLogin())

from the-movie-db-kotlin.

jamalbaharun avatar jamalbaharun commented on August 19, 2024

it still happen and the error still the same

image

where is the wrong?

from the-movie-db-kotlin.

dangquanuet avatar dangquanuet commented on August 19, 2024

@jamalbaharun can you show me the code action main_to_login in nav graph?

from the-movie-db-kotlin.

jamalbaharun avatar jamalbaharun commented on August 19, 2024

image

image

@dangquanuet

from the-movie-db-kotlin.

jamalbaharun avatar jamalbaharun commented on August 19, 2024

can u give me and example from your project? so i can replicate in my project @dangquanuet :D

from the-movie-db-kotlin.

dangquanuet avatar dangquanuet commented on August 19, 2024

with above info, i can not see what wrong or tell you how to fix? Can you provide more info or source code?

from the-movie-db-kotlin.

jamalbaharun avatar jamalbaharun commented on August 19, 2024

do you want a full source code? i will sent u the full source code to your email. please give me your email @dangquanuet

from the-movie-db-kotlin.

dangquanuet avatar dangquanuet commented on August 19, 2024

my email is [email protected]

from the-movie-db-kotlin.

jamalbaharun avatar jamalbaharun commented on August 19, 2024

before that i experiment with you project and still encunter that error, i navigate from main to splash like this

image

image

and error like this

image

can you explain why?
@dangquanuet

from the-movie-db-kotlin.

dangquanuet avatar dangquanuet commented on August 19, 2024

I think setupNavHost is wrong,
because my project is structured with 3 tabs in main fragment, and i use KeepStateNavigator to keep my tab state.
But in your project, i think you do not need to configure like that, just follow steps from android guide at https://developer.android.com/guide/navigation/navigation-getting-started

from the-movie-db-kotlin.

dangquanuet avatar dangquanuet commented on August 19, 2024

navigation basic sample project
https://github.com/googlesamples/android-architecture-components/tree/master/NavigationBasicSample

from the-movie-db-kotlin.

jamalbaharun avatar jamalbaharun commented on August 19, 2024

thanks a lot for your advice, realy apperciate that @dangquanuet

from the-movie-db-kotlin.

jamalbaharun avatar jamalbaharun commented on August 19, 2024

do your have any recomend libarry for event bus? @dangquanuet

from the-movie-db-kotlin.

dangquanuet avatar dangquanuet commented on August 19, 2024

It's okay, if you need to use, just use it :)

from the-movie-db-kotlin.

hashimTahir avatar hashimTahir commented on August 19, 2024

Hello @dangquanuet
i was going through this app, i have couple of questions, or maybe they are issues, Didn't want to open new issues without asking first.
1->The MainActivity graph has splashfragment as its start destination. which then leads to pagingMovie fragment and popular movies fragment. There are other fragments there including movielistPager and moviePager. but they are not connected to anything.

image

2-> One can favorite the movie by opening the detail page and clicking floating action button. but there is no option to view the favorite movies.

3->Shouldn't there be a search option to search the movies.

4-> If i connect the navigation, to pager fragments, it only shows insta like cards and no tabs. Shouldn't the splash lead to the pager as main landing page with popular, top rated and favourite tabs.?
If so, then may i add or fix some or all of those features.

from the-movie-db-kotlin.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.