Giter Site home page Giter Site logo

fueled / flowr Goto Github PK

View Code? Open in Web Editor NEW
121.0 20.0 7.0 284 KB

FlowR is a wrapper class around the Fragment Manager.

License: Apache License 2.0

Java 100.00%
fragments android android-library fragment-transactions fragment navigation deep-linking

flowr's People

Contributors

bansawbanchee avatar husseinala avatar ravidsrk avatar v3n3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flowr's Issues

Remove boolean arguments from flowr

@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.

Missing implementations

We are missing an implementation for the databinding unit com.fueled.flowr.sample.databinding.ActivityMainBinding in the sample project

All setCustomTransactionAnimation

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);

clearStack has performance impact

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

Add events to show/hide fragments

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"

Open source name

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?

Rewrite in Kotlin

Hello, this is just a note to remember that we should rewrite the lib in kotlin when we get the time.

Navigate to a Specific Fragment

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?

Kotlin gradle compatibility

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

Problem with Stacked Fragment

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.

Navigation Drawer Sample

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.

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.