New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some issue while implementing #18
Comments
In constructor, we have to pass Activity, not Context. So just pass
getActivity() in constructor. It'll solve problem.
…On Mon 9 Dec, 2019, 2:27 PM mathuadi3, ***@***.***> wrote:
I tried this, but i am facing some issue with this. I called it in the on
click listener of my button, but it is not taking this,
getApplicationContext etc in the builder argument. I have attached a
screenshot of the same. I also tried to call in activity fragment but the
same issue there. if i pass getApplicationContext, it shows the class has
been called in Protected state. Please help!
BottomSheetMaterialDialog dialog=new
BottomSheetMaterialDialog.Builder(getActivity().getApplicationContext());
[image: Screenshot (8)]
<https://user-images.githubusercontent.com/37552855/70421553-fddd3680-1a8f-11ea-98e1-ebf898541573.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#18?email_source=notifications&email_token=AEVWFOCNOTUAIWVOTHJCD3LQXYB77A5CNFSM4JYFRZX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H7AEDQA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEVWFOH7DO7NPLQ3WU5TSKLQXYB77ANCNFSM4JYFRZXQ>
.
|
Doesnt solve. SAme issue. I am implementing it in a fragment of tab layout |
What is actually error by IDE. Please provide that with it.
…On Mon 9 Dec, 2019, 2:52 PM mathuadi3, ***@***.***> wrote:
In constructor, we have to pass Activity, not Context. So just pass
getActivity() in constructor. It'll solve problem.
… <#m_6522857794173506903_>
On Mon 9 Dec, 2019, 2:27 PM mathuadi3, *@*.***> wrote: I tried this, but
i am facing some issue with this. I called it in the on click listener of
my button, but it is not taking this, getApplicationContext etc in the
builder argument. I have attached a screenshot of the same. I also tried to
call in activity fragment but the same issue there. if i pass
getApplicationContext, it shows the class has been called in Protected
state. Please help! BottomSheetMaterialDialog dialog=new
BottomSheetMaterialDialog.Builder(getActivity().getApplicationContext());
[image: Screenshot (8)]
https://user-images.githubusercontent.com/37552855/70421553-fddd3680-1a8f-11ea-98e1-ebf898541573.png
— You are receiving this because you are subscribed to this thread. Reply
to this email directly, view it on GitHub <#18
<#18>?email_source=notifications&email_token=AEVWFOCNOTUAIWVOTHJCD3LQXYB77A5CNFSM4JYFRZX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H7AEDQA>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEVWFOH7DO7NPLQ3WU5TSKLQXYB77ANCNFSM4JYFRZXQ
.
Doesnt solve. SAme issue. I am implementing it in a fragment of tab layout
[image: Screenshot (9)]
<https://user-images.githubusercontent.com/37552855/70423455-84dfde00-1a93-11ea-9a4b-a25fc32f50cc.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#18?email_source=notifications&email_token=AEVWFOG6WHAUPRYE3ESIDM3QXYE55A5CNFSM4JYFRZX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGINQRQ#issuecomment-563140678>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEVWFOCNFHSU356LO32S5FTQXYE55ANCNFSM4JYFRZXQ>
.
|
Hi, @mathuadi3 Thanks for reporting that. I just checked it and It'll be fixed in next version 2.0. |
Thanks for acknowledging the issue, hope you fix it soon as this is really
a nice dialog implementation
…On Tue, 10 Dec, 2019, 10:03 Shreyas Patil, ***@***.***> wrote:
Hi, @mathuadi3 <https://github.com/mathuadi3> Thanks for reporting that.
I just checked it and It'll be fixed in next version 2.0.
BottomSheetMaterialDialog constructor accepts AppCompatActivity So we
can't use it currently. But you can use MaterialDialog till next release.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18?email_source=notifications&email_token=AI6QFV3ZOKVGDFWR5IVYB6DQX4LZVA5CNFSM4JYFRZX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGNH2SQ#issuecomment-563772746>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI6QFV6B2ZBKCQ6FNY3VP6LQX4LZVANCNFSM4JYFRZXQ>
.
|
This issue is fixed and implemented in |
Thanks so much. What dependency should i use now? Also can it be used in a
tab fragment too now? As it has fragment activity?
…On Tue, 10 Dec, 2019, 11:45 Shreyas Patil, ***@***.***> wrote:
This issue is fixed and implemented in v2.0. Thank you!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18?email_source=notifications&email_token=AI6QFV364UW5XWCMUYVSAJLQX4XXTA5CNFSM4JYFRZX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGOCQMQ#issuecomment-563882034>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI6QFV25SLSBYYZH4UGQ73TQX4XXTANCNFSM4JYFRZXQ>
.
|
Yes, you can use it. Just ensure to pass dependencies {
// Material Dialog Library
implementation 'com.shreyaspatil:MaterialDialog:2.0'
// Material Design Library
implementation 'com.google.android.material:material:1.0.0'
// Lottie Animation Library
implementation 'com.airbnb.android:lottie:3.3.6'
} |
I tried this, but i am facing some issue with this. I called it in the on click listener of my button, but it is not taking this, getApplicationContext etc in the builder argument. I have attached a screenshot of the same. I also tried to call in activity fragment but the same issue there. if i pass getApplicationContext, it shows the class has been called in Protected state. Please help!
BottomSheetMaterialDialog dialog=new BottomSheetMaterialDialog.Builder(getActivity().getApplicationContext());
The text was updated successfully, but these errors were encountered: