Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbar hiding fragment #35

Open
DerkSchooltink opened this issue May 9, 2018 · 1 comment
Open

Toolbar hiding fragment #35

DerkSchooltink opened this issue May 9, 2018 · 1 comment

Comments

@DerkSchooltink
Copy link

DerkSchooltink commented May 9, 2018

I was wondering if it's at all possible to hide the toolbar of the fragment activity in code. I could write my own implementation of the xml layout of the fragment, but that requires a lot of work.

This is how I'm currently starting the fragment:

private fun imageGalleryInitializer(): ImageGalleryFragment {
            val fragment = ImageGalleryFragment()
            val images = 

            val bundle = Bundle().apply {
                putStringArrayList(ImageGalleryFragment.KEY_IMAGES, ArrayList(images))
                putString(ImageGalleryFragment.KEY_TITLE, "Unsplash Images")
            }

            fragment.arguments = bundle

            return fragment
}

If I could give as parameter in putString() some sort of value to hide the toolbar, that would be the ideal situation. Let me know if this is at all possible!

@DerkSchooltink
Copy link
Author

I've written my own implementation from a fork of your repository. I've also submitted the pullrequest.

You can find the PQ here: #36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant