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!
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:
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!