Code Monkey home page Code Monkey logo

android's Introduction

android's People

Contributors

aidewoode avatar grigoriym avatar

Stargazers

 avatar  avatar  avatar danim avatar Soheil Khanalipoor avatar  avatar ilio avatar Steve Kellock avatar BrandgrandReal avatar

Watchers

Kartikey Tanna avatar  avatar OpenApk avatar

Forkers

grigoriym

android's Issues

Optimize the bottom navigation

Right now I just use ViewFlipper to switch the view on bottom navigation based on this issue hotwired/turbo-android#189. But it has some problems, for example it will render all view at once including home page, and library page when after lunched the app. And also ViewFlipper seems isn't the proper way to handle bottom navigation. So I need to find a better way to switch view for bottom navigation.

Add widgets

Idk just seems like it's lacking and should be easy

Multiple requests occur after configuration changes (rotate device)

I have my own Turbo Native android app, that I was using the ViewFlipper for to handle bottom tab navigation. However, I noticed the same issues you brought up in #12. I saw your new implementation using supportFragmentManager and tried to implement in my app as well, but I discovered a new issue. I decided to run black candy locally to see if the same issue exists and it did. Here is what I am seeing:

  1. Launch the app and sign in
  2. Click the Library tab, observe the Rails logs show a single request to /library
  3. Rotate the device (I'm using the emulator)
  4. Observe the Rails logs now show a request for / and /library
  5. Rotate the device again
  6. Observe multiple requests to /library - each subsequent device rotation will increase the number of requests to /library every time.

I was able to debug to the point where I saw that in the MainActivity the libraryNavFragment is coming back as null after a device rotation, and therefore we call delegate.registerNavHostFragment(R.id.library_container) again, but the old "nav host fragment" must still be hanging around and executed somehow. I don't understand enough about Android and Turbo Native to have any good solutions. Do you have any ideas?

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.