leandroBorgesFerreira / LoadingButtonAndroid

A button to substitute the ProgressDialog
MIT License
1.95k stars 214 forks source link

Not showing up inside fragment #44

Open zulkarnainshah opened 6 years ago

zulkarnainshah commented 6 years ago

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.

leandroBorgesFerreira commented 6 years ago

Hi @zulkarnainshah. I am going to check it.

leandroBorgesFerreira commented 6 years ago

Hi @zulkarnainshah. I just tested in my computer and it work just fine inside a fragment. I believe the problem is in your code

shakir915 commented 6 years ago

When I reference the button in java code using findViewById , the button does't show up. when i remove findViewById , the button become visible

leandroBorgesFerreira commented 6 years ago

@ShakirEmstell I will try to reproduce this. Could you provide the code with the error in a public repository?