Skip to content

Toolbar hiding fragment #35

Description

@DerkSchooltink

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions