Source:
<code>public SignupBottomSheetDialog(@NonNull final Context context, @NonNull final SignupSheetListener signupSheetListener) { super(context); final View layout = LayoutInflater.from(context).inflate(R.layout.signup_bottom_sheet_dialog, null); Button termsOfServiceText = layout.findViewById(R.id.signup_tos); termsOfServiceText.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { signupSheetListener.onSignupSheetTermsOfServiceClicked(); } }); termsOfServiceText.setText(Html.fromHtml(String.format( context.getResources().getString(R.string.signup_terms_of_service_text), "<u>", "</u>"))); Button signupWithEmailButton = layout.findViewById(R.id.signup_email); signupWithEmailButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { signupSheetListener.onSignupSheetEmailClicked(); } }); Button signupWithGoogleButton = layout.findViewById(R.id.signup_google); signupWithGoogleButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { signupSheetListener.onSignupSheetGoogleClicked(); } }); setOnCancelListener(new OnCancelListener() { @Override public void onCancel(DialogInterface dialog) { signupSheetListener.onSignupSheetCanceled(); } }); setContentView(layout); <START> setTitle(R.string.signup_title); <END> final BottomSheetBehavior behavior = BottomSheetBehavior.from((View) layout.getParent()); setOnShowListener(new OnShowListener() { @Override public void onShow(DialogInterface dialog) { behavior.setPeekHeight(layout.getHeight()); } }); }</code><technical_language>R.string.sign_up. "Sign for WordPress" is incorrect anyway. missing ".com"</technical_language>

Target:
public SignupBottomSheetDialog(@NonNull final Context context, @NonNull final SignupSheetListener signupSheetListener) { super(context); final View layout = LayoutInflater.from(context).inflate(R.layout.signup_bottom_sheet_dialog, null); Button termsOfServiceText = layout.findViewById(R.id.signup_tos); termsOfServiceText.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { signupSheetListener.onSignupSheetTermsOfServiceClicked(); } }); termsOfServiceText.setText(Html.fromHtml(String.format( context.getResources().getString(R.string.signup_terms_of_service_text), "<u>", "</u>"))); Button signupWithEmailButton = layout.findViewById(R.id.signup_email); signupWithEmailButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { signupSheetListener.onSignupSheetEmailClicked(); } }); Button signupWithGoogleButton = layout.findViewById(R.id.signup_google); signupWithGoogleButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { signupSheetListener.onSignupSheetGoogleClicked(); } }); setOnCancelListener(new OnCancelListener() { @Override public void onCancel(DialogInterface dialog) { signupSheetListener.onSignupSheetCanceled(); } }); setContentView(layout); setTitle(R.string.sign_up); final BottomSheetBehavior behavior = BottomSheetBehavior.from((View) layout.getParent()); setOnShowListener(new OnShowListener() { @Override public void onShow(DialogInterface dialog) { behavior.setPeekHeight(layout.getHeight()); } }); }