Giter VIP home page Giter VIP logo

Comments (7)

konmik avatar konmik commented on August 21, 2024

Nucleus has no relation to design, at all. :)

I do not understand why are you asking this.

The example is just an example of using Nucleus, not how to build your entire application with all possible android components.

from nucleus.

IgorGanapolsky avatar IgorGanapolsky commented on August 21, 2024

@konmik It would be nice to look at a sample app and say "aha, this is something I can use or build on top of". As it is, it looks ugly and outdated. Also, the tabs in the sample are an illusion, as they aren't real Toolbar tabs, and they are extremely slow in performance.

from nucleus.

konmik avatar konmik commented on August 21, 2024

Slow tabs? What do you mean? How simple views can be slow? 8-) They are not slow. I just decided to actually switch them AFTER the response from the server arrives. This is not because I do not use Toolbar, this is intentional behavior. You could do the same with Toolbar, I think.

P.S. Toolbar is outdated from the beginning. It is just a buggy cover around simple views, it gives no any advantages over LinearLayout. I've tried Toolbar a couple of times - found three bugs, used two workarounds for simple tasks. However, it is much more reliable than ActionBar, so I understand why people prefer it now. :D

P.P.S. I think, there can not be an example that someone can use to build his application on top of. Every application is different, every developer has a different set of preferred technologies and libraries. We're in Android area have an exploding growth of technologies right now. Everything I will name a "template" will become obsolete a couple of months later.

from nucleus.

IgorGanapolsky avatar IgorGanapolsky commented on August 21, 2024

I understand your points. By 'slow' I mean click the [fake] tab in your app, and wait 2 seconds for it to switch. That is unacceptable from a UI standpoint, and will subconsciously convince the user that there is something wrong with the app.

from nucleus.

rharter avatar rharter commented on August 21, 2024

@IgorGanapolsky To answer your question, normally when using tabs with a toolbar, you would use something like Fragments for the contents of each tab.

While the sample doesn't specifically show using Nucleus with Fragments, I think it's fairly simple to extrapolate the use of NucleusActivity to NucleusFragment, then you can simply use it exactly like the sample.

If you're using plain old Views as your tab contents, simply use NucleusLayout as your parent class.

@konmik is right that how to use tabs is outside the scope of a simple example. If you want more information on that, check out this article, and simply replace the Fragment implementations they use with Presenter driven ones from Nucleus.

from nucleus.

konmik avatar konmik commented on August 21, 2024

@IgorGanapolsky the example is not intended to impress an end user or to shock a developer with tremendous complexity. A developer, however, should understand why the "lag" is happening.

from nucleus.

IgorGanapolsky avatar IgorGanapolsky commented on August 21, 2024

@konmik There should never be a lag when going from tab to tab. I have never seen this in any Android app (and i've been doing Android for 5 years). So I'm sorry, but I disagree that bad functionality in a demo app serves a useful purpose.

from nucleus.

Related Issues (20)

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.