GithubHelp home page GithubHelp logo

f22labs / instalikefragmenttransaction Goto Github PK

View Code? Open in Web Editor NEW
205.0 205.0 54.0 153 KB

Easy Bottom Tab Navigation with back stack history

Home Page: https://blog.f22labs.com/instagram-like-bottom-tab-fragment-transaction-android-389976fb8759

License: Other

Java 100.00%

instalikefragmenttransaction's People

Contributors

chandruf22 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

instalikefragmenttransaction's Issues

FragmentTransaction: sharedElements not working

// transition animation
View view1 = view.findViewById(R.id.tv_title);
List<Pair<View, String>> val = new ArrayList<>();
val.add(Pair.create(view1, Utils.getTransitionName(view1)));
FragNavTransactionOptions transaction = FragNavTransactionOptions
.newBuilder()
.sharedElements(val)
.build();

if (mFragmentNavigation != null) {
mFragmentNavigation.pushFragment(MessageDetailsFragment.newInstance(1, bundle), transaction);
}

disappears view

I used this library but when I press hardware back button, the previous View disappears and onCreateView function is called again.?

Short lags while changing tabs

When I try to change the tab, pages with more views take longer time to load( like 200 - 500 miliseconds). Is there a fix?
It feels like it's making the fragment over and over each time.

Backstack problem

1- select search fragment work
2- and select news fragment work
3- and again select search fragment it's work
4- Now press back first press back not working and second press back it's back to Home fragment but it's should back to news fragment in first press back and in second press it's back to Home.

FragmentTransaction is not working well.

@Override
    public void pushFragment(Fragment fragment) {
        if (mNavController != null) {
            FragNavTransactionOptions transaction = FragNavTransactionOptions
                    .newBuilder()
                    .customAnimations(
                            R.anim.enter_from_right,
                            R.anim.exit_to_left,
                            R.anim.enter_from_left,
                            R.anim.exit_to_right)
                    .build();
            mNavController.pushFragment(fragment, transaction);
        }
    }

This is my code block and it's working nicely but the problem is popFragment().
popFragment has no transaction effect when I try to press back button.

I tried;

 mNavController.popFragment();
 mNavController.popFragment(transaction);

// And both of them is not working

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.