use of com.google.android.material.bottomsheet.BottomSheetDialog in project android-client by GenesisVision.
the class ConfirmFundWithdrawBottomSheetFragment method setupDialog.
@SuppressLint("RestrictedApi")
@Override
public void setupDialog(Dialog dialog, int style) {
super.setupDialog(dialog, style);
getDialog().setOnShowListener(dialog1 -> {
BottomSheetDialog d = (BottomSheetDialog) dialog1;
View bottomSheetInternal = d.findViewById(com.google.android.material.R.id.design_bottom_sheet);
if (bottomSheetInternal != null) {
BottomSheetBehavior.from(bottomSheetInternal).setState(BottomSheetBehavior.STATE_EXPANDED);
}
});
View contentView = View.inflate(getContext(), R.layout.fragment_bottomsheet_confirm_fund_withdraw, null);
dialog.setContentView(contentView);
ButterKnife.bind(this, contentView);
GenesisVisionApplication.getComponent().inject(this);
setFonts();
fundLogo.setLevelBackground(R.attr.colorTextPrimary);
cancelButton.setEmpty();
cancelButton.setTextColorByAttrId(R.attr.colorCard);
updateView();
}
use of com.google.android.material.bottomsheet.BottomSheetDialog in project android-client by GenesisVision.
the class ConfirmWalletWithdrawBottomSheetFragment method setupDialog.
@SuppressLint("RestrictedApi")
@Override
public void setupDialog(Dialog dialog, int style) {
super.setupDialog(dialog, style);
getDialog().setOnShowListener(dialog1 -> {
BottomSheetDialog d = (BottomSheetDialog) dialog1;
View bottomSheetInternal = d.findViewById(com.google.android.material.R.id.design_bottom_sheet);
if (bottomSheetInternal != null) {
BottomSheetBehavior.from(bottomSheetInternal).setState(BottomSheetBehavior.STATE_EXPANDED);
}
});
View contentView = View.inflate(getContext(), R.layout.fragment_bottomsheet_confirm_wallet_withdraw, null);
dialog.setContentView(contentView);
ButterKnife.bind(this, contentView);
GenesisVisionApplication.getComponent().inject(this);
EventBus.getDefault().register(this);
setFonts();
cancelButton.setEmpty();
cancelButton.setTextColorByAttrId(R.attr.colorCard);
updateView();
subscribeToUser();
}
use of com.google.android.material.bottomsheet.BottomSheetDialog in project android-client by GenesisVision.
the class FundHistoryDetailsBottomSheetFragment method setupDialog.
@SuppressLint("RestrictedApi")
@Override
public void setupDialog(Dialog dialog, int style) {
super.setupDialog(dialog, style);
getDialog().setOnShowListener(dialog1 -> {
BottomSheetDialog d = (BottomSheetDialog) dialog1;
View bottomSheetInternal = d.findViewById(com.google.android.material.R.id.design_bottom_sheet);
if (bottomSheetInternal != null) {
BottomSheetBehavior.from(bottomSheetInternal).setState(BottomSheetBehavior.STATE_EXPANDED);
}
});
View contentView = View.inflate(getContext(), R.layout.fragment_bottomsheet_fund_history_details, null);
dialog.setContentView(contentView);
ButterKnife.bind(this, contentView);
initRecyclerView();
updateView();
}
use of com.google.android.material.bottomsheet.BottomSheetDialog in project android-client by GenesisVision.
the class DateRangeBottomSheetFragment method setupDialog.
@SuppressLint("RestrictedApi")
@Override
public void setupDialog(Dialog dialog, int style) {
super.setupDialog(dialog, style);
getDialog().setOnShowListener(dialog1 -> {
BottomSheetDialog d = (BottomSheetDialog) dialog1;
View bottomSheetInternal = d.findViewById(com.google.android.material.R.id.design_bottom_sheet);
if (bottomSheetInternal != null) {
BottomSheetBehavior.from(bottomSheetInternal).setState(BottomSheetBehavior.STATE_EXPANDED);
}
});
View contentView = View.inflate(getContext(), R.layout.fragment_bottomsheet_date_range, null);
dialog.setContentView(contentView);
ButterKnife.bind(this, contentView);
setFonts();
initOptions();
updateView();
}
use of com.google.android.material.bottomsheet.BottomSheetDialog in project AmazeFileManager by TeamAmaze.
the class CloudSheetFragment method onCreateDialog.
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
BottomSheetDialog dialog = (BottomSheetDialog) super.onCreateDialog(savedInstanceState);
dialog.setOnShowListener(dialog1 -> {
BottomSheetDialog d = (BottomSheetDialog) dialog1;
FrameLayout bottomSheet = (FrameLayout) d.findViewById(com.google.android.material.R.id.design_bottom_sheet);
BottomSheetBehavior.from(bottomSheet).setState(BottomSheetBehavior.STATE_EXPANDED);
});
return dialog;
}
Aggregations