fueled / flowr Goto Github PK
View Code? Open in Web Editor NEWFlowR is a wrapper class around the Fragment Manager.
License: Apache License 2.0
FlowR is a wrapper class around the Fragment Manager.
License: Apache License 2.0
@husseinala Currently, we have methods like clearBackStack(true)
and skipBackStack(true)
.
Instead, we can just have clearBackStack()
, skipBackStack()
and have the default behaviour as false
. This way, we can avoid the unnecessary boolean arguments.
Currently, flowr
provides entry and exit custom transitions by default which causes us to use noTransactionAnimation()
a lot. Instead we could switch the default behaviour. Thoughts @husseinala?
We are missing an implementation for the databinding unit com.fueled.flowr.sample.databinding.ActivityMainBinding in the sample project
Please can you add also overloaded method
public abstract FragmentTransaction setCustomAnimations(@AnimRes int enter,
@AnimRes int exit);
public abstract FragmentTransaction setCustomAnimations(@AnimRes int enter, @AnimRes int exit, @AnimRes int popEnter, @AnimRes int popExit);
all in the title, i notice clearStack has a performance intact and cause a delay on display especially noticeable when using component like BottomNavigation. I will work on it
hello
thank you for your work.
can you please add events to fragments called when fragment is show/hide ?
for example when new fragment displayed , fire event in old fragment "onHide()"
when back button pressed and fragment onDestroy called , fire event on backstack fragment "onShow"
Let try to find a cool name for the open sourcing.
I think defrag
sounds cool because it's short for defragmentation
> de fragment ation
.
Any other candidate?
Hello, this is just a note to remember that we should rewrite the lib in kotlin when we get the time.
Please can you add setInitialSavedState like setData method?
Thank you
Is there a means of navigating to a specific fragment in the backstack?
Say, for example, you have fragments A-Z. You've opened fragments A, B, C, and D. You could go back to B by calling close(2);
This works well enough, but what if you have an unknown number of fragments in the backstack? Like if you're sitting at fragment Q or S, and you want to go back to fragment B, is there any method you can call that would pop fragments off the backstack until you reach fragment B?
With Kotlin in Gradle is not needed to use "annotationProcessor" but simple "kapt"
With yout lastest version 1.4.0 when I try to use kapt with
kapt 'com.github.fueled.flowr:flowr-compiler:1.4.0'
I got an exception:
Error:Execution failed for task ':myproject:javaPreCompileMainDebug'.
Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration.
- flowr-compiler-1.4.0.jar (com.github.fueled.flowr:flowr-compiler:1.4.0)
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future.
See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.
Please can you investigate to solve this problem?
I cannot mix kapt and annotaionProcessor into my gradle because it cause a problem with Parceler library.
Thank you
When you use a fragments with
.skipBackStack(false)
and .clearBackStack(false)
the previous fragment will not replaced and stay active back to the current fragment.
This fragment need to be hidden otherwise with Toolbar and menu we have many problems.
If you create a simple activity with a toolbar and call supportInvalidateOptionsMenu
each you create a new fragment to update the toolbar menu, the event onCreateOptionsMenu
will be called for each stacked fragment.
Sorry for my english.
What would be nice is a sample of using the drawer. I've pretty much been winging it and looking at the FlowrFragment class to get an understanding of how it works.
I am still not sure how it works entirely or if I am even doing it right.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.