Comments (7)
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.
@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.
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.
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.
@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.
@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.
@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)
- Best practice for normal case. (get support.) HOT 3
- Wondering about multiple Presenter endpoint calls (Question) HOT 2
- How to get onComplete using restartable methods? HOT 1
- How could i force restartableFirst.onError with mockito? HOT 1
- RxJava latest version not used. HOT 1
- Console error saving file HOT 1
- Activity method called every time HOT 2
- (Question) Don't keep activieties option HOT 1
- Confusion about restartables and the Activity lifecycle HOT 3
- Does Nucleus support native Fragments? HOT 2
- Throwing VerifyError in < API 21 HOT 1
- Question regarding getView() and reference the View in the presenter. HOT 11
- Nucleus with Dagger 2 HOT 3
- NucleusActionBarActivity with support library 26 HOT 13
- Help with injecting Presenter when using AndroidInjector HOT 3
- Calling setPresenter in OnCreate HOT 2
- clear the delivery cache
- Crashes when starting a new activity using kotlin
- upgrade a new version for androidx, please
- getView() deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nucleus.