vincentv
01/29/2017, 10:33 PMval ft = fragmentManager.beginTransaction()
ft.add(R.id.container, myFragment())
ft.hide(this)
ft.addToBackStack(null)
ft.commit()
myFragment basically creates a blank fragment with background color set to red
.
The fragment appears, but it is blank. All I see is grey and not the red background that I have set it to in myFragment(). Any help would be appreciated. Thank you!