Open zulkarnainshah opened 6 years ago
Hi @zulkarnainshah. I am going to check it.
Hi @zulkarnainshah. I just tested in my computer and it work just fine inside a fragment. I believe the problem is in your code
When I reference the button in java code using findViewById , the button does't show up. when i remove findViewById , the button become visible
@ShakirEmstell I will try to reproduce this. Could you provide the code with the error in a public repository?
I put the button xml inside a FrameLayout since I am using fragments. It shows up in the Android Studio Preview window but doesn't show up in emulator or actual device. However when I move this to activity layout file with a CoordinatorLayout parent, it shows up there.