Coder Social home page Coder Social logo

Comments (4)

roughike avatar roughike commented on May 18, 2024

What does your XML / Java look like?

from bottombar.

roughike avatar roughike commented on May 18, 2024

And are you using the version 1.1.5? I think this bug was introduced a couple versions before that, but I just might've fixed it again in 1.1.5.

from bottombar.

NickM-27 avatar NickM-27 commented on May 18, 2024

This was on 1.1.5

here is the code:

@Override
    protected void onCreate(Bundle savedInstanceState) {
        activateTheme(getSharedPreferences("Settings", 0).getInt("theme", 0));
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

appBar = BottomBar.attach(this, savedInstanceState);
        appBar.noNavBarGoodness();


        if (findViewById(R.id.main_container) != null) {

            MainAppFragment mainAppFragment = new MainAppFragment();
            mainAppFragment.setArguments(getIntent().getExtras());

            HelpFragment helpFragment = new HelpFragment();
            helpFragment.setArguments(getIntent().getExtras());

            SubscriptionFragment subscriptionFragment = new SubscriptionFragment();
            subscriptionFragment.setArguments(getIntent().getExtras());

            AboutFragment aboutFragment = new AboutFragment();
            aboutFragment.setArguments(getIntent().getExtras());

            appBar.setFragmentItems(getSupportFragmentManager(), R.id.main_container,
                    new BottomBarFragment(mainAppFragment, R.drawable.ic_home, "Home"),
                    new BottomBarFragment(helpFragment, R.drawable.ic_help, "Help"),
                    new BottomBarFragment(subscriptionFragment, R.drawable.ic_card_giftcard, "Subscription"),
                    new BottomBarFragment(aboutFragment, R.drawable.ic_info, "About"));


//Here is the layout

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main_container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".ui.MainActivity">

</LinearLayout>

from bottombar.

NickM-27 avatar NickM-27 commented on May 18, 2024

Update: Updated to 1.1.7 and all is good now

from bottombar.

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.