Layout filters and other dialogs
This commit is contained in:
parent
f68691df6b
commit
16a565fc51
@ -471,12 +471,12 @@ public class RettificaGiacenzeFragment extends BaseFragment implements ITitledFr
|
|||||||
null,
|
null,
|
||||||
R.string.button_ignore_print,
|
R.string.button_ignore_print,
|
||||||
onComplete)
|
onComplete)
|
||||||
.show(getActivity().getSupportFragmentManager(), "tag");
|
.show(requireActivity().getSupportFragmentManager(), "tag");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLUPositionChangeRequest(RunnableArgss<Boolean, MtbDepoPosizione> onComplete) {
|
public void onLUPositionChangeRequest(RunnableArgss<Boolean, MtbDepoPosizione> onComplete) {
|
||||||
new DialogYesNoView(requireActivity(), "Posiziona UL", "Vuoi cambiare la posizione della UL corrente?", result -> {
|
new DialogYesNoView(null, "Vuoi cambiare la posizione della UL corrente?", result -> {
|
||||||
switch (result) {
|
switch (result) {
|
||||||
case YES:
|
case YES:
|
||||||
DialogAskPositionOfLU.makeBase(getActivity(), false, (status, mtbDepoPosizione) -> {
|
DialogAskPositionOfLU.makeBase(getActivity(), false, (status, mtbDepoPosizione) -> {
|
||||||
@ -496,7 +496,7 @@ public class RettificaGiacenzeFragment extends BaseFragment implements ITitledFr
|
|||||||
onComplete.run(false, null);
|
onComplete.run(false, null);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}).show();
|
}).show(requireActivity().getSupportFragmentManager(), "tag");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -862,7 +862,7 @@ public class SpedizioneActivity extends BaseActivity implements SpedizioneViewMo
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLUPositionChangeRequest(RunnableArgss<Boolean, MtbDepoPosizione> onComplete) {
|
public void onLUPositionChangeRequest(RunnableArgss<Boolean, MtbDepoPosizione> onComplete) {
|
||||||
new DialogYesNoView(this, "Posiziona UL", "Vuoi cambiare la posizione della UL corrente?", result -> {
|
new DialogYesNoView(null, "Vuoi cambiare la posizione della UL corrente?", result -> {
|
||||||
switch (result) {
|
switch (result) {
|
||||||
case YES:
|
case YES:
|
||||||
DialogAskPositionOfLU.makeBase(this, false, (status, mtbDepoPosizione) -> {
|
DialogAskPositionOfLU.makeBase(this, false, (status, mtbDepoPosizione) -> {
|
||||||
@ -878,7 +878,7 @@ public class SpedizioneActivity extends BaseActivity implements SpedizioneViewMo
|
|||||||
onComplete.run(false, null);
|
onComplete.run(false, null);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}).show();
|
}).show(getSupportFragmentManager(), "tag");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void askShouldPrintPackingList(PrintOrderCloseDTO printOrderCloseDTO, RunnableArgs<PrintOrderCloseDTO> onComplete) {
|
public void askShouldPrintPackingList(PrintOrderCloseDTO printOrderCloseDTO, RunnableArgs<PrintOrderCloseDTO> onComplete) {
|
||||||
|
|||||||
@ -1,15 +1,12 @@
|
|||||||
package it.integry.integrywmsnative.view.dialogs.base;
|
package it.integry.integrywmsnative.view.dialogs.base;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.app.Dialog;
|
||||||
import android.content.res.ColorStateList;
|
import android.content.res.ColorStateList;
|
||||||
import android.graphics.Color;
|
|
||||||
import android.graphics.drawable.ColorDrawable;
|
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.text.Spanned;
|
import android.text.Spanned;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
|
||||||
import android.widget.RelativeLayout;
|
import android.widget.RelativeLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
@ -19,7 +16,8 @@ import androidx.annotation.StringRes;
|
|||||||
import androidx.appcompat.widget.LinearLayoutCompat;
|
import androidx.appcompat.widget.LinearLayoutCompat;
|
||||||
import androidx.core.content.ContextCompat;
|
import androidx.core.content.ContextCompat;
|
||||||
import androidx.core.content.res.ResourcesCompat;
|
import androidx.core.content.res.ResourcesCompat;
|
||||||
import androidx.databinding.DataBindingUtil;
|
|
||||||
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
@ -66,7 +64,8 @@ public class DialogSimpleMessageView extends BaseDialogFragment {
|
|||||||
private final HashMap<String, String> mHashmapContent;
|
private final HashMap<String, String> mHashmapContent;
|
||||||
private final Runnable mOnPositiveClick;
|
private final Runnable mOnPositiveClick;
|
||||||
private final Runnable mOnNegativeClick;
|
private final Runnable mOnNegativeClick;
|
||||||
private final @StringRes Integer mRNeutralButtonString;
|
private final @StringRes
|
||||||
|
Integer mRNeutralButtonString;
|
||||||
private final Runnable mOnNeutralClick;
|
private final Runnable mOnNeutralClick;
|
||||||
|
|
||||||
|
|
||||||
@ -76,13 +75,12 @@ public class DialogSimpleMessageView extends BaseDialogFragment {
|
|||||||
|
|
||||||
|
|
||||||
private DialogBaseBinding mBindings;
|
private DialogBaseBinding mBindings;
|
||||||
private Context mContext;
|
|
||||||
|
|
||||||
public static DialogSimpleMessageView newInstance(@NonNull TYPE type, @NonNull String titleText, @NonNull Spanned messageText, HashMap<String, String> hashmapContent , Runnable onPositiveClick, Runnable onNegativeClick, @StringRes Integer rNeutralButtonString, Runnable onNeutralClick) {
|
public static DialogSimpleMessageView newInstance(@NonNull TYPE type, @NonNull String titleText, @NonNull Spanned messageText, HashMap<String, String> hashmapContent, Runnable onPositiveClick, Runnable onNegativeClick, @StringRes Integer rNeutralButtonString, Runnable onNeutralClick) {
|
||||||
return new DialogSimpleMessageView(type, titleText, messageText, hashmapContent, onPositiveClick, onNegativeClick, rNeutralButtonString, onNeutralClick);
|
return new DialogSimpleMessageView(type, titleText, messageText, hashmapContent, onPositiveClick, onNegativeClick, rNeutralButtonString, onNeutralClick);
|
||||||
}
|
}
|
||||||
|
|
||||||
private DialogSimpleMessageView(@NonNull TYPE type, @NonNull String titleText, @NonNull Spanned messageText, HashMap<String, String> hashmapContent , Runnable onPositiveClick, Runnable onNegativeClick, @StringRes Integer rNeutralButtonString, Runnable onNeutralClick) {
|
private DialogSimpleMessageView(@NonNull TYPE type, @NonNull String titleText, @NonNull Spanned messageText, HashMap<String, String> hashmapContent, Runnable onPositiveClick, Runnable onNegativeClick, @StringRes Integer rNeutralButtonString, Runnable onNeutralClick) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.mType = type;
|
this.mType = type;
|
||||||
@ -99,57 +97,79 @@ public class DialogSimpleMessageView extends BaseDialogFragment {
|
|||||||
public void onStart() {
|
public void onStart() {
|
||||||
super.onStart();
|
super.onStart();
|
||||||
|
|
||||||
UtilityDialog.setTo90PercentWidth(this.mContext, this);
|
UtilityDialog.setTo90PercentWidth(this.requireContext(), this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
|
||||||
this.mContext = getActivity();
|
mBindings = DialogBaseBinding.inflate(LayoutInflater.from(requireContext()), null, false);
|
||||||
|
|
||||||
mBindings = DataBindingUtil.inflate(inflater, R.layout.dialog_base, container, false);
|
|
||||||
|
|
||||||
mBindings.setView(this);
|
mBindings.setView(this);
|
||||||
mBindings.setLifecycleOwner(this);
|
mBindings.setLifecycleOwner(this);
|
||||||
|
|
||||||
getDialog().setCanceledOnTouchOutside(false);
|
this.initContent();
|
||||||
getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
|
|
||||||
|
|
||||||
|
var alertDialogBuilder = new MaterialAlertDialogBuilder(requireContext())
|
||||||
|
.setView(mBindings.getRoot())
|
||||||
|
.setCancelable(false);
|
||||||
|
|
||||||
|
if (isPositiveVisible())
|
||||||
|
alertDialogBuilder.setPositiveButton(getPositiveButtonText(), (dialog, which) -> {
|
||||||
|
this.mOnPositiveClick.run();
|
||||||
|
});
|
||||||
|
|
||||||
|
if (isNeutralVisible())
|
||||||
|
alertDialogBuilder.setNeutralButton(getNeutralButtonText(), (dialog, which) -> {
|
||||||
|
this.mOnNeutralClick.run();
|
||||||
|
});
|
||||||
|
|
||||||
|
if (isNegativeVisible())
|
||||||
|
alertDialogBuilder.setNegativeButton(getNegativeButtonText(), (dialog, which) -> {
|
||||||
|
this.mOnNegativeClick.run();
|
||||||
|
});
|
||||||
|
|
||||||
|
var alertDialog = alertDialogBuilder.create();
|
||||||
|
alertDialog.setCanceledOnTouchOutside(false);
|
||||||
|
return alertDialog;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void initContent() {
|
||||||
int colorBackgroundTitle = -1;
|
int colorBackgroundTitle = -1;
|
||||||
Drawable titleIconRes = null;
|
Drawable titleIconRes = null;
|
||||||
|
|
||||||
switch (mType) {
|
switch (mType) {
|
||||||
case INFO:
|
case INFO:
|
||||||
colorBackgroundTitle = ContextCompat.getColor(mContext, R.color.light_blue_300);
|
colorBackgroundTitle = ContextCompat.getColor(requireContext(), R.color.colorPrimary);
|
||||||
titleIconRes = ResourcesCompat.getDrawable(mContext.getResources(), R.drawable.ic_info_78dp, null);
|
titleIconRes = ResourcesCompat.getDrawable(requireContext().getResources(), R.drawable.ic_info_78dp, null);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SUCCESS:
|
case SUCCESS:
|
||||||
colorBackgroundTitle = ContextCompat.getColor(mContext, R.color.green_300);
|
colorBackgroundTitle = ContextCompat.getColor(requireContext(), R.color.green_300);
|
||||||
titleIconRes = ResourcesCompat.getDrawable(mContext.getResources(), R.drawable.ic_done_white_24dp, null);
|
titleIconRes = ResourcesCompat.getDrawable(requireContext().getResources(), R.drawable.ic_done_white_24dp, null);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WARNING:
|
case WARNING:
|
||||||
colorBackgroundTitle = ContextCompat.getColor(mContext, R.color.yellow_600);
|
colorBackgroundTitle = ContextCompat.getColor(requireContext(), R.color.yellow_600);
|
||||||
titleIconRes = ResourcesCompat.getDrawable(mContext.getResources(), R.drawable.ic_warning_white_24dp, null);
|
titleIconRes = ResourcesCompat.getDrawable(requireContext().getResources(), R.drawable.ic_warning_white_24dp, null);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ERROR:
|
case ERROR:
|
||||||
colorBackgroundTitle = ContextCompat.getColor(mContext, R.color.red_300);
|
colorBackgroundTitle = ContextCompat.getColor(requireContext(), R.color.red_300);
|
||||||
titleIconRes = ResourcesCompat.getDrawable(mContext.getResources(), R.drawable.ic_mood_bad_24dp, null);
|
titleIconRes = ResourcesCompat.getDrawable(requireContext().getResources(), R.drawable.ic_mood_bad_24dp, null);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.positiveButtonText = mContext.getText(R.string.ok).toString();
|
this.positiveButtonText = requireContext().getText(R.string.ok).toString();
|
||||||
this.negativeButtonText = mContext.getText(R.string.no).toString();
|
this.negativeButtonText = requireContext().getText(R.string.no).toString();
|
||||||
|
|
||||||
//Title VIEW
|
//Title VIEW
|
||||||
mBindings.titleText.setText(mTitleText);
|
mBindings.titleText.setText(mTitleText);
|
||||||
ColorStateList colorStateList = ColorStateList.valueOf(Color.WHITE);
|
ColorStateList colorStateList = ColorStateList.valueOf(colorBackgroundTitle);
|
||||||
mBindings.titleIcon.setImageTintList(colorStateList);
|
mBindings.titleIcon.setImageTintList(colorStateList);
|
||||||
mBindings.titleIcon.setImageDrawable(titleIconRes);
|
mBindings.titleIcon.setImageDrawable(titleIconRes);
|
||||||
|
|
||||||
mBindings.titleContainer.setBackgroundColor(colorBackgroundTitle);
|
// mBindings.titleContainer.setBackgroundColor(colorBackgroundTitle);
|
||||||
|
|
||||||
//Content View
|
//Content View
|
||||||
mBindings.descriptionText.setText(mMessageText);
|
mBindings.descriptionText.setText(mMessageText);
|
||||||
@ -161,15 +181,15 @@ public class DialogSimpleMessageView extends BaseDialogFragment {
|
|||||||
String currentKey = mHashmapContent.keySet().toArray()[i].toString();
|
String currentKey = mHashmapContent.keySet().toArray()[i].toString();
|
||||||
String currentValue = mHashmapContent.get(currentKey);
|
String currentValue = mHashmapContent.get(currentKey);
|
||||||
|
|
||||||
RelativeLayout singleMapContent = (RelativeLayout) inflater.inflate(R.layout.dialog_custom_content_hashmap_viewmodel, hashMapContainer);
|
RelativeLayout singleMapContent = (RelativeLayout) LayoutInflater.from(requireContext()).inflate(R.layout.dialog_custom_content_hashmap_viewmodel, hashMapContainer);
|
||||||
((TextView) singleMapContent.findViewById(R.id.dialog_content_hashmap_key)).setText(currentKey);
|
((TextView) singleMapContent.findViewById(R.id.dialog_content_hashmap_key)).setText(currentKey);
|
||||||
((TextView) singleMapContent.findViewById(R.id.dialog_content_hashmap_value)).setText(currentValue);
|
((TextView) singleMapContent.findViewById(R.id.dialog_content_hashmap_value)).setText(currentValue);
|
||||||
|
|
||||||
hashMapContainer.addView(singleMapContent);
|
hashMapContainer.addView(singleMapContent);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
hashMapContainer.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return mBindings.getRoot();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -191,7 +211,7 @@ public class DialogSimpleMessageView extends BaseDialogFragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getNeutralButtonText() {
|
public String getNeutralButtonText() {
|
||||||
return mRNeutralButtonString != null && mRNeutralButtonString != -1 ? mContext.getText(mRNeutralButtonString).toString() : null;
|
return mRNeutralButtonString != null && mRNeutralButtonString != -1 ? requireContext().getText(mRNeutralButtonString).toString() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNegativeButtonText() {
|
public String getNegativeButtonText() {
|
||||||
@ -200,17 +220,17 @@ public class DialogSimpleMessageView extends BaseDialogFragment {
|
|||||||
|
|
||||||
public void onPositiveClick() {
|
public void onPositiveClick() {
|
||||||
dismiss();
|
dismiss();
|
||||||
if(mOnPositiveClick != null) mOnPositiveClick.run();
|
if (mOnPositiveClick != null) mOnPositiveClick.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onNeutralClick() {
|
public void onNeutralClick() {
|
||||||
dismiss();
|
dismiss();
|
||||||
if(mOnNeutralClick != null) mOnNeutralClick.run();
|
if (mOnNeutralClick != null) mOnNeutralClick.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onNegativeClick() {
|
public void onNegativeClick() {
|
||||||
dismiss();
|
dismiss();
|
||||||
if(mOnNegativeClick != null) mOnNegativeClick.run();
|
if (mOnNegativeClick != null) mOnNegativeClick.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static DialogSimpleMessageView makeInfoDialog(String titleText, Spanned messageText, HashMap<String, String> hashmapContent, Runnable onPositiveClick) {
|
public static DialogSimpleMessageView makeInfoDialog(String titleText, Spanned messageText, HashMap<String, String> hashmapContent, Runnable onPositiveClick) {
|
||||||
|
|||||||
@ -22,14 +22,14 @@ import it.integry.integrywmsnative.databinding.DialogBasketLuBinding;
|
|||||||
import it.integry.integrywmsnative.view.dialogs.basket_lu.pages.page1.DialogBasketLU_Page1_ViewModel;
|
import it.integry.integrywmsnative.view.dialogs.basket_lu.pages.page1.DialogBasketLU_Page1_ViewModel;
|
||||||
import it.integry.integrywmsnative.view.dialogs.basket_lu.pages.page2.DialogBasketLU_Page2_ViewModel;
|
import it.integry.integrywmsnative.view.dialogs.basket_lu.pages.page2.DialogBasketLU_Page2_ViewModel;
|
||||||
|
|
||||||
public class DialogBasketLU extends BaseDialogFragment {
|
public class DialogBasketLUView extends BaseDialogFragment {
|
||||||
|
|
||||||
private final RunnableArgs<MtbColt> mOnComplete;
|
private final RunnableArgs<MtbColt> mOnComplete;
|
||||||
private DialogBasketLuBinding mBindings;
|
private DialogBasketLuBinding mBindings;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public DialogBasketLU(RunnableArgs<MtbColt> onComplete) {
|
public DialogBasketLUView(RunnableArgs<MtbColt> onComplete) {
|
||||||
mOnComplete = onComplete;
|
mOnComplete = onComplete;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ import it.integry.integrywmsnative.core.expansion.RunnableArgss;
|
|||||||
import it.integry.integrywmsnative.core.model.MtbColt;
|
import it.integry.integrywmsnative.core.model.MtbColt;
|
||||||
import it.integry.integrywmsnative.databinding.DialogScanOrCreateLuBinding;
|
import it.integry.integrywmsnative.databinding.DialogScanOrCreateLuBinding;
|
||||||
import it.integry.integrywmsnative.view.dialogs.base.DialogSimpleMessageView;
|
import it.integry.integrywmsnative.view.dialogs.base.DialogSimpleMessageView;
|
||||||
import it.integry.integrywmsnative.view.dialogs.basket_lu.DialogBasketLU;
|
import it.integry.integrywmsnative.view.dialogs.basket_lu.DialogBasketLUView;
|
||||||
|
|
||||||
public class DialogScanOrCreateLUView extends BaseDialogFragment implements DialogScanOrCreateLUViewModel.Listener {
|
public class DialogScanOrCreateLUView extends BaseDialogFragment implements DialogScanOrCreateLUViewModel.Listener {
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ public class DialogScanOrCreateLUView extends BaseDialogFragment implements Dial
|
|||||||
});
|
});
|
||||||
|
|
||||||
mBindings.viewBasket.setOnClickListener(v -> {
|
mBindings.viewBasket.setOnClickListener(v -> {
|
||||||
new DialogBasketLU(mtbColt -> {
|
new DialogBasketLUView(mtbColt -> {
|
||||||
onLUOpened(mtbColt, false);
|
onLUOpened(mtbColt, false);
|
||||||
}).show(requireActivity().getSupportFragmentManager(), "tag");
|
}).show(requireActivity().getSupportFragmentManager(), "tag");
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,68 +1,67 @@
|
|||||||
package it.integry.integrywmsnative.view.dialogs.yes_no;
|
package it.integry.integrywmsnative.view.dialogs.yes_no;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.app.Dialog;
|
||||||
|
import android.os.Bundle;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
|
import android.view.View;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
import androidx.annotation.Nullable;
|
||||||
|
import androidx.fragment.app.DialogFragment;
|
||||||
|
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
||||||
|
|
||||||
|
import it.integry.integrywmsnative.R;
|
||||||
import it.integry.integrywmsnative.core.expansion.RunnableArgs;
|
import it.integry.integrywmsnative.core.expansion.RunnableArgs;
|
||||||
|
import it.integry.integrywmsnative.core.utility.UtilityString;
|
||||||
import it.integry.integrywmsnative.databinding.DialogYesNoBinding;
|
import it.integry.integrywmsnative.databinding.DialogYesNoBinding;
|
||||||
import it.integry.integrywmsnative.view.dialogs.DialogConsts;
|
import it.integry.integrywmsnative.view.dialogs.DialogConsts;
|
||||||
|
|
||||||
public class DialogYesNoView extends MaterialAlertDialogBuilder {
|
public class DialogYesNoView extends DialogFragment {
|
||||||
|
|
||||||
|
private final String title;
|
||||||
|
private final String description;
|
||||||
|
private final RunnableArgs<DialogConsts.Results> onDialogDismiss;
|
||||||
|
|
||||||
|
public DialogYesNoView(final String title, final String description, RunnableArgs<DialogConsts.Results> onDialogDismiss) {
|
||||||
|
super();
|
||||||
|
|
||||||
public DialogYesNoView(Context context, final String title, final String description, RunnableArgs<DialogConsts.Results> onDialogDismiss) {
|
this.title = title;
|
||||||
super(context);
|
this.description = description;
|
||||||
|
this.onDialogDismiss = onDialogDismiss;
|
||||||
var binding = DialogYesNoBinding.inflate(LayoutInflater.from(context));
|
|
||||||
// binding.setView(this);
|
|
||||||
|
|
||||||
binding.executePendingBindings();
|
|
||||||
|
|
||||||
// this.qtaResidua.set(qtaResidua);
|
|
||||||
|
|
||||||
this.setTitle(title);
|
|
||||||
this.setMessage(description);
|
|
||||||
// this.setView(binding.getRoot());
|
|
||||||
|
|
||||||
this.setPositiveButton("Ok", (dialog, which) -> {
|
|
||||||
if (onDialogDismiss != null) onDialogDismiss.run(DialogConsts.Results.YES);
|
|
||||||
});
|
|
||||||
|
|
||||||
this.setNegativeButton("Annulla", (dialog, which) -> {
|
|
||||||
if (onDialogDismiss != null) onDialogDismiss.run(DialogConsts.Results.NO);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// private DialogYesNo(Context context, String title, String description, RunnableArgs<DialogConsts.Results> onDialogDismiss) {
|
|
||||||
// LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
@NonNull
|
||||||
// DialogYesNoBinding bindings = DataBindingUtil.inflate(inflater, R.layout.dialog_yes_no, null, false);
|
@Override
|
||||||
//
|
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
|
||||||
// currentDialog = new Dialog(context);
|
var binding = DialogYesNoBinding.inflate(LayoutInflater.from(requireContext()));
|
||||||
//
|
binding.executePendingBindings();
|
||||||
// currentDialog.setContentView(bindings.getRoot());
|
|
||||||
//
|
if(UtilityString.isNullOrEmpty(title)) {
|
||||||
// currentDialog.setCancelable(false);
|
binding.titleText.setVisibility(View.GONE);
|
||||||
// currentDialog.setCanceledOnTouchOutside(false);
|
binding.descriptionText.setTextAppearance(requireContext(), R.style.TextAppearance_Material3_BodyLarge);
|
||||||
// currentDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
|
} else {
|
||||||
//
|
binding.titleText.setText(title);
|
||||||
// bindings.titleText.setText(title);
|
binding.titleText.setVisibility(View.VISIBLE);
|
||||||
// bindings.descriptionText.setText(description);
|
binding.descriptionText.setTextAppearance(requireContext(), R.style.TextAppearance_Material3_BodyMedium);
|
||||||
//
|
}
|
||||||
// bindings.buttonYes.setOnClickListener(v -> {
|
|
||||||
// onDialogDismiss.run(DialogConsts.Results.YES);
|
binding.descriptionText.setText(description);
|
||||||
// currentDialog.dismiss();
|
|
||||||
// });
|
|
||||||
//
|
|
||||||
// bindings.buttonNo.setOnClickListener(v -> {
|
|
||||||
// onDialogDismiss.run(DialogConsts.Results.NO);
|
|
||||||
// currentDialog.dismiss();
|
|
||||||
// });
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
|
var alertDialog = new MaterialAlertDialogBuilder(requireContext())
|
||||||
|
.setView(binding.getRoot())
|
||||||
|
.setCancelable(false)
|
||||||
|
.setPositiveButton("Ok", (dialog, which) -> {
|
||||||
|
if (onDialogDismiss != null) onDialogDismiss.run(DialogConsts.Results.YES);
|
||||||
|
})
|
||||||
|
.setNegativeButton("Annulla", (dialog, which) -> {
|
||||||
|
if (onDialogDismiss != null) onDialogDismiss.run(DialogConsts.Results.NO);
|
||||||
|
})
|
||||||
|
.create();
|
||||||
|
|
||||||
|
alertDialog.setCanceledOnTouchOutside(false);
|
||||||
|
return alertDialog;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,262 +17,243 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:orientation="vertical"
|
|
||||||
app:cardCornerRadius="12dp"
|
app:cardCornerRadius="12dp"
|
||||||
app:cardElevation="0dp">
|
app:cardElevation="0dp">
|
||||||
|
|
||||||
<androidx.appcompat.widget.LinearLayoutCompat
|
<androidx.appcompat.widget.LinearLayoutCompat
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical"
|
||||||
|
android:paddingHorizontal="16dp"
|
||||||
|
android:paddingVertical="16dp">
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/title_container"
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:id="@id/title_icon"
|
||||||
|
style="@style/MaterialAlertDialog.Material3.Title.Icon.CenterStacked"
|
||||||
|
android:layout_width="36dp"
|
||||||
|
android:layout_height="36dp"
|
||||||
|
android:src="@drawable/ic_error_white_24dp"
|
||||||
|
app:tint="?colorPrimary" />
|
||||||
|
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:id="@+id/title_text"
|
||||||
|
style="@style/MaterialAlertDialog.Material3.Title.Text.CenterStacked"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@color/green_300"
|
android:gravity="center_horizontal"
|
||||||
android:gravity="center_horizontal">
|
tools:text="Title here" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/title_icon"
|
android:id="@+id/description_text"
|
||||||
android:layout_width="wrap_content"
|
style="@style/MaterialAlertDialog.Material3.Body.Text.CenterStacked"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_margin="24dp"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/ic_error_white_24dp" />
|
android:layout_marginTop="16dp"
|
||||||
|
tools:text="Description here" />
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.LinearLayoutCompat
|
<androidx.appcompat.widget.LinearLayoutCompat
|
||||||
android:id="@+id/base_buttons_layout"
|
android:id="@+id/dialog_content_hashmap"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="24dp"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingStart="16dp"
|
android:paddingHorizontal="12dp" />
|
||||||
android:paddingTop="24dp"
|
|
||||||
android:paddingEnd="16dp"
|
|
||||||
android:paddingBottom="16dp">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/title_text"
|
|
||||||
style="@style/TextViewMaterial.Dialog.HeadlineText"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center_horizontal"
|
|
||||||
tools:text="Title here" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/description_text"
|
|
||||||
style="@style/TextViewMaterial"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="16dp"
|
|
||||||
android:layout_marginBottom="16dp"
|
|
||||||
android:gravity="left"
|
|
||||||
tools:text="Description here" />
|
|
||||||
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.LinearLayoutCompat
|
<!-- <androidx.constraintlayout.widget.ConstraintLayout-->
|
||||||
android:id="@+id/dialog_content_hashmap"
|
<!-- android:layout_width="match_parent"-->
|
||||||
android:layout_width="match_parent"
|
<!-- android:layout_height="wrap_content"-->
|
||||||
android:layout_height="wrap_content"
|
<!-- android:layout_marginTop="8dp"-->
|
||||||
android:layout_marginTop="12dp"
|
<!-- android:visibility="@{view.negativeVisible && !view.neutralVisible ? View.VISIBLE : View.GONE}">-->
|
||||||
android:orientation="vertical"
|
|
||||||
android:paddingLeft="12dp"
|
<!-- <androidx.constraintlayout.widget.Guideline-->
|
||||||
android:paddingRight="12dp">
|
<!-- android:id="@+id/center_guideline"-->
|
||||||
|
<!-- android:layout_width="wrap_content"-->
|
||||||
|
<!-- android:layout_height="wrap_content"-->
|
||||||
|
<!-- android:orientation="vertical"-->
|
||||||
|
<!-- app:layout_constraintGuide_percent="0.5" />-->
|
||||||
|
|
||||||
|
|
||||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
<!-- <com.google.android.material.button.MaterialButton-->
|
||||||
|
<!-- style="@style/Widget.Material3.Button.OutlinedButton"-->
|
||||||
|
<!-- android:layout_width="0dp"-->
|
||||||
|
<!-- android:layout_height="wrap_content"-->
|
||||||
|
<!-- android:layout_marginLeft="8dp"-->
|
||||||
|
<!-- android:layout_marginRight="8dp"-->
|
||||||
|
<!-- android:onClick="@{() -> view.onNegativeClick()}"-->
|
||||||
|
<!-- android:text="@{view.negativeButtonText}"-->
|
||||||
|
<!-- tools:text="Neutral"-->
|
||||||
|
<!-- app:layout_constraintEnd_toStartOf="@id/center_guideline"-->
|
||||||
|
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
||||||
|
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
||||||
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<!-- <com.google.android.material.button.MaterialButton-->
|
||||||
android:layout_width="match_parent"
|
<!-- style="@style/Widget.Material3.Button.UnelevatedButton"-->
|
||||||
android:layout_height="wrap_content"
|
<!-- android:layout_width="0dp"-->
|
||||||
android:layout_marginTop="8dp"
|
<!-- android:layout_height="wrap_content"-->
|
||||||
android:visibility="@{view.negativeVisible && !view.neutralVisible ? View.VISIBLE : View.GONE}">
|
<!-- android:layout_marginLeft="8dp"-->
|
||||||
|
<!-- android:layout_marginRight="8dp"-->
|
||||||
<androidx.constraintlayout.widget.Guideline
|
<!-- android:onClick="@{() -> view.onPositiveClick()}"-->
|
||||||
android:id="@+id/center_guideline"
|
<!-- android:text="@{view.positiveButtonText}"-->
|
||||||
android:layout_width="wrap_content"
|
<!-- tools:text="Positive"-->
|
||||||
android:layout_height="wrap_content"
|
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
||||||
android:orientation="vertical"
|
<!-- app:layout_constraintStart_toStartOf="@id/center_guideline"-->
|
||||||
app:layout_constraintGuide_percent="0.5" />
|
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
|
||||||
style="@style/Button.PrimaryOutline"
|
|
||||||
android:layout_width="0dp"
|
<!-- <androidx.constraintlayout.widget.ConstraintLayout-->
|
||||||
android:layout_height="wrap_content"
|
<!-- android:layout_width="match_parent"-->
|
||||||
android:layout_marginLeft="8dp"
|
<!-- android:layout_height="wrap_content"-->
|
||||||
android:layout_marginRight="8dp"
|
<!-- android:layout_marginTop="8dp"-->
|
||||||
android:onClick="@{() -> view.onNegativeClick()}"
|
<!-- android:visibility="@{!view.negativeVisible && !view.neutralVisible ? View.VISIBLE : View.GONE}">-->
|
||||||
android:text="@{view.negativeButtonText}"
|
|
||||||
app:layout_constraintEnd_toStartOf="@id/center_guideline"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:strokeColor="@color/colorPrimary" />
|
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<!-- <androidx.constraintlayout.widget.Guideline-->
|
||||||
style="@style/Button.PrimaryFull"
|
<!-- android:id="@+id/ok_left_buttons_guideline"-->
|
||||||
android:layout_width="0dp"
|
<!-- android:layout_width="0dp"-->
|
||||||
android:layout_height="wrap_content"
|
<!-- android:layout_height="wrap_content"-->
|
||||||
android:layout_marginLeft="8dp"
|
<!-- android:orientation="vertical"-->
|
||||||
android:layout_marginRight="8dp"
|
<!-- app:layout_constraintGuide_percent="0.25" />-->
|
||||||
android:onClick="@{() -> view.onPositiveClick()}"
|
|
||||||
android:text="@{view.positiveButtonText}"
|
<!-- <androidx.constraintlayout.widget.Guideline-->
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
<!-- android:id="@+id/ok_right_buttons_guideline"-->
|
||||||
app:layout_constraintStart_toStartOf="@id/center_guideline"
|
<!-- android:layout_width="0dp"-->
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
<!-- android:layout_height="wrap_content"-->
|
||||||
|
<!-- android:orientation="vertical"-->
|
||||||
|
<!-- app:layout_constraintGuide_percent="0.75" />-->
|
||||||
|
|
||||||
|
<!-- <com.google.android.material.button.MaterialButton-->
|
||||||
|
<!-- style="@style/Widget.Material3.Button.UnelevatedButton"-->
|
||||||
|
<!-- android:layout_width="0dp"-->
|
||||||
|
<!-- android:layout_height="wrap_content"-->
|
||||||
|
<!-- android:layout_marginLeft="8dp"-->
|
||||||
|
<!-- android:layout_marginRight="8dp"-->
|
||||||
|
<!-- tools:text="Positive"-->
|
||||||
|
<!-- android:onClick="@{() -> view.onPositiveClick()}"-->
|
||||||
|
<!-- android:text="@{view.positiveButtonText}"-->
|
||||||
|
<!-- app:layout_constraintEnd_toEndOf="@id/ok_right_buttons_guideline"-->
|
||||||
|
<!-- app:layout_constraintStart_toStartOf="@id/ok_left_buttons_guideline"-->
|
||||||
|
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<!-- <androidx.constraintlayout.widget.ConstraintLayout-->
|
||||||
android:layout_width="match_parent"
|
<!-- android:layout_width="match_parent"-->
|
||||||
android:layout_height="wrap_content"
|
<!-- android:layout_height="wrap_content"-->
|
||||||
android:layout_marginTop="8dp"
|
<!-- android:layout_marginTop="8dp"-->
|
||||||
android:visibility="@{!view.negativeVisible && !view.neutralVisible ? View.VISIBLE : View.GONE}">
|
<!-- android:visibility="@{view.negativeVisible && view.neutralVisible ? View.VISIBLE : View.GONE}">-->
|
||||||
|
|
||||||
|
<!-- <androidx.constraintlayout.widget.Guideline-->
|
||||||
|
<!-- android:id="@+id/left_buttons_guideline"-->
|
||||||
|
<!-- android:layout_width="wrap_content"-->
|
||||||
|
<!-- android:layout_height="wrap_content"-->
|
||||||
|
<!-- android:orientation="vertical"-->
|
||||||
|
<!-- app:layout_constraintGuide_percent="0.33" />-->
|
||||||
|
|
||||||
|
<!-- <androidx.constraintlayout.widget.Guideline-->
|
||||||
|
<!-- android:id="@+id/right_buttons_guideline"-->
|
||||||
|
<!-- android:layout_width="wrap_content"-->
|
||||||
|
<!-- android:layout_height="wrap_content"-->
|
||||||
|
<!-- android:orientation="vertical"-->
|
||||||
|
<!-- app:layout_constraintGuide_percent="0.66" />-->
|
||||||
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.Guideline
|
<!-- <com.google.android.material.button.MaterialButton-->
|
||||||
android:id="@+id/ok_left_buttons_guideline"
|
<!-- style="@style/Button.DangerFull"-->
|
||||||
android:layout_width="0dp"
|
<!-- android:layout_width="0dp"-->
|
||||||
android:layout_height="wrap_content"
|
<!-- android:layout_height="wrap_content"-->
|
||||||
android:orientation="vertical"
|
<!-- android:layout_marginLeft="8dp"-->
|
||||||
app:layout_constraintGuide_percent="0.25" />
|
<!-- android:layout_marginRight="8dp"-->
|
||||||
|
<!-- tools:text="Negative"-->
|
||||||
<androidx.constraintlayout.widget.Guideline
|
<!-- android:onClick="@{() -> view.onNegativeClick()}"-->
|
||||||
android:id="@+id/ok_right_buttons_guideline"
|
<!-- android:text="@{view.negativeButtonText}"-->
|
||||||
android:layout_width="0dp"
|
<!-- app:layout_constraintEnd_toStartOf="@id/left_buttons_guideline"-->
|
||||||
android:layout_height="wrap_content"
|
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
||||||
android:orientation="vertical"
|
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
||||||
app:layout_constraintGuide_percent="0.75" />
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
|
||||||
style="@style/Button.PrimaryFull"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginLeft="8dp"
|
|
||||||
android:layout_marginRight="8dp"
|
|
||||||
|
|
||||||
android:onClick="@{() -> view.onPositiveClick()}"
|
|
||||||
android:text="@{view.positiveButtonText}"
|
|
||||||
app:layout_constraintEnd_toEndOf="@id/ok_right_buttons_guideline"
|
|
||||||
app:layout_constraintStart_toStartOf="@id/ok_left_buttons_guideline"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
<!-- <com.google.android.material.button.MaterialButton-->
|
||||||
|
<!-- style="@style/Widget.Material3.Button.OutlinedButton"-->
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<!-- android:layout_width="0dp"-->
|
||||||
android:layout_width="match_parent"
|
<!-- android:layout_height="wrap_content"-->
|
||||||
android:layout_height="wrap_content"
|
<!-- android:layout_marginLeft="8dp"-->
|
||||||
android:layout_marginTop="8dp"
|
<!-- android:layout_marginRight="8dp"-->
|
||||||
android:visibility="@{view.negativeVisible && view.neutralVisible ? View.VISIBLE : View.GONE}">
|
<!-- tools:text="Neutral"-->
|
||||||
|
<!-- android:onClick="@{() -> view.onNeutralClick()}"-->
|
||||||
<androidx.constraintlayout.widget.Guideline
|
<!-- android:text="@{view.neutralButtonText}"-->
|
||||||
android:id="@+id/left_buttons_guideline"
|
<!-- app:layout_constraintEnd_toStartOf="@id/right_buttons_guideline"-->
|
||||||
android:layout_width="wrap_content"
|
<!-- app:layout_constraintStart_toStartOf="@id/left_buttons_guideline"-->
|
||||||
android:layout_height="wrap_content"
|
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
||||||
android:orientation="vertical"
|
<!-- app:strokeColor="@color/colorPrimary" />-->
|
||||||
app:layout_constraintGuide_percent="0.33" />
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.Guideline
|
|
||||||
android:id="@+id/right_buttons_guideline"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="vertical"
|
|
||||||
app:layout_constraintGuide_percent="0.66" />
|
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<!-- <com.google.android.material.button.MaterialButton-->
|
||||||
style="@style/Button.DangerFull"
|
<!-- style="@style/Widget.Material3.Button.UnelevatedButton"-->
|
||||||
android:layout_width="0dp"
|
<!-- android:layout_width="0dp"-->
|
||||||
android:layout_height="wrap_content"
|
<!-- android:layout_height="wrap_content"-->
|
||||||
android:layout_marginLeft="8dp"
|
<!-- android:layout_marginLeft="8dp"-->
|
||||||
android:layout_marginRight="8dp"
|
<!-- android:layout_marginRight="8dp"-->
|
||||||
android:onClick="@{() -> view.onNegativeClick()}"
|
<!-- tools:text="Positive"-->
|
||||||
android:text="@{view.negativeButtonText}"
|
<!-- android:onClick="@{() -> view.onPositiveClick()}"-->
|
||||||
app:layout_constraintEnd_toStartOf="@id/left_buttons_guideline"
|
<!-- android:text="@{view.positiveButtonText}"-->
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
<!-- app:layout_constraintStart_toStartOf="@id/right_buttons_guideline"-->
|
||||||
|
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
|
||||||
style="@style/Button.PrimaryOutline"
|
|
||||||
android:layout_width="0dp"
|
<!-- <androidx.constraintlayout.widget.ConstraintLayout-->
|
||||||
android:layout_height="wrap_content"
|
<!-- android:layout_width="match_parent"-->
|
||||||
android:layout_marginLeft="8dp"
|
<!-- android:layout_height="wrap_content"-->
|
||||||
android:layout_marginRight="8dp"
|
<!-- android:layout_marginTop="8dp"-->
|
||||||
android:onClick="@{() -> view.onNeutralClick()}"
|
<!-- android:visibility="@{!view.negativeVisible && view.neutralVisible ? View.VISIBLE : View.GONE}">-->
|
||||||
android:text="@{view.neutralButtonText}"
|
|
||||||
app:layout_constraintEnd_toStartOf="@id/right_buttons_guideline"
|
<!-- <androidx.constraintlayout.widget.Guideline-->
|
||||||
app:layout_constraintStart_toStartOf="@id/left_buttons_guideline"
|
<!-- android:id="@+id/center_guideline2"-->
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
<!-- android:layout_width="wrap_content"-->
|
||||||
app:strokeColor="@color/colorPrimary" />
|
<!-- android:layout_height="wrap_content"-->
|
||||||
|
<!-- android:orientation="vertical"-->
|
||||||
|
<!-- app:layout_constraintGuide_percent="0.5" />-->
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<!-- <com.google.android.material.button.MaterialButton-->
|
||||||
style="@style/Button.PrimaryFull"
|
<!-- style="@style/Widget.Material3.Button.OutlinedButton"-->
|
||||||
android:layout_width="0dp"
|
<!-- android:layout_width="0dp"-->
|
||||||
android:layout_height="wrap_content"
|
<!-- android:layout_height="wrap_content"-->
|
||||||
android:layout_marginLeft="8dp"
|
<!-- android:layout_marginLeft="8dp"-->
|
||||||
android:layout_marginRight="8dp"
|
<!-- android:layout_marginRight="8dp"-->
|
||||||
android:onClick="@{() -> view.onPositiveClick()}"
|
<!-- tools:text="Neutral"-->
|
||||||
android:text="@{view.positiveButtonText}"
|
<!-- android:onClick="@{() -> view.onNeutralClick()}"-->
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
<!-- android:text="@{view.neutralButtonText}"-->
|
||||||
app:layout_constraintStart_toStartOf="@id/right_buttons_guideline"
|
<!-- app:layout_constraintEnd_toStartOf="@id/center_guideline2"-->
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
||||||
|
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
||||||
|
<!-- app:strokeColor="@color/colorPrimary" />-->
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
<!-- <com.google.android.material.button.MaterialButton-->
|
||||||
|
<!-- style="@style/Widget.Material3.Button.UnelevatedButton"-->
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<!-- android:layout_width="0dp"-->
|
||||||
android:layout_width="match_parent"
|
<!-- android:layout_height="wrap_content"-->
|
||||||
android:layout_height="wrap_content"
|
<!-- android:layout_marginLeft="8dp"-->
|
||||||
android:layout_marginTop="8dp"
|
<!-- android:layout_marginRight="8dp"-->
|
||||||
android:visibility="@{!view.negativeVisible && view.neutralVisible ? View.VISIBLE : View.GONE}">
|
<!-- tools:text="Positive"-->
|
||||||
|
<!-- android:onClick="@{() -> view.onPositiveClick()}"-->
|
||||||
<androidx.constraintlayout.widget.Guideline
|
<!-- android:text="@{view.positiveButtonText}"-->
|
||||||
android:id="@+id/center_guideline2"
|
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
||||||
android:layout_width="wrap_content"
|
<!-- app:layout_constraintStart_toStartOf="@id/center_guideline2"-->
|
||||||
android:layout_height="wrap_content"
|
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
||||||
android:orientation="vertical"
|
|
||||||
app:layout_constraintGuide_percent="0.5" />
|
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
|
||||||
style="@style/Button.PrimaryOutline"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginLeft="8dp"
|
|
||||||
android:layout_marginRight="8dp"
|
|
||||||
android:onClick="@{() -> view.onNeutralClick()}"
|
|
||||||
android:text="@{view.neutralButtonText}"
|
|
||||||
app:layout_constraintEnd_toStartOf="@id/center_guideline2"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:strokeColor="@color/colorPrimary" />
|
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
|
||||||
style="@style/Button.PrimaryFull"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginLeft="8dp"
|
|
||||||
android:layout_marginRight="8dp"
|
|
||||||
android:onClick="@{() -> view.onPositiveClick()}"
|
|
||||||
android:text="@{view.positiveButtonText}"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="@id/center_guideline2"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
||||||
|
|
||||||
|
|
||||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||||
|
|
||||||
|
|||||||
@ -8,101 +8,42 @@
|
|||||||
app:cardCornerRadius="12dp"
|
app:cardCornerRadius="12dp"
|
||||||
app:cardElevation="0dp">
|
app:cardElevation="0dp">
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
|
<androidx.appcompat.widget.LinearLayoutCompat
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical"
|
||||||
|
android:paddingHorizontal="16dp"
|
||||||
|
android:paddingVertical="16dp">
|
||||||
|
|
||||||
<RelativeLayout
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
style="@style/MaterialAlertDialog.Material3.Title.Icon.CenterStacked"
|
||||||
|
android:layout_width="36dp"
|
||||||
|
android:layout_height="36dp"
|
||||||
|
android:src="@drawable/ic_error_white_24dp"
|
||||||
|
app:tint="?colorPrimary" />
|
||||||
|
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:id="@+id/title_text"
|
||||||
|
style="@style/MaterialAlertDialog.Material3.Title.Text.CenterStacked"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@color/green_300"
|
android:gravity="center_horizontal"
|
||||||
android:gravity="center_horizontal">
|
android:layout_marginBottom="16dp"
|
||||||
|
android:text="Title here" />
|
||||||
<ImageView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:src="@drawable/ic_error_white_24dp"
|
|
||||||
android:layout_margin="24dp"/>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
<LinearLayout
|
android:id="@+id/description_text"
|
||||||
|
style="@style/TextAppearance.Material3.BodyMedium"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:gravity="center_horizontal"
|
||||||
android:paddingTop="24dp"
|
android:text="Description here" />
|
||||||
android:paddingLeft="24dp"
|
|
||||||
android:paddingRight="24dp">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/title_text"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/TextViewMaterial.Dialog.HeadlineText"
|
|
||||||
android:text="Title here"
|
|
||||||
android:gravity="center_horizontal"/>
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/description_text"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/TextViewMaterial"
|
|
||||||
android:text="Description here"
|
|
||||||
android:gravity="left"
|
|
||||||
android:layout_marginTop="16dp"
|
|
||||||
android:layout_marginBottom="16dp" />
|
|
||||||
|
|
||||||
|
|
||||||
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="8dp">
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.Guideline
|
|
||||||
android:id="@+id/center_buttons_guideline"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="vertical"
|
|
||||||
app:layout_constraintGuide_percent="0.5"/>
|
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
|
||||||
android:id="@+id/button_no"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/Button.PrimaryOutline"
|
|
||||||
android:layout_marginLeft="8dp"
|
|
||||||
android:layout_marginRight="8dp"
|
|
||||||
app:strokeColor="@color/colorPrimary"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintEnd_toStartOf="@id/center_buttons_guideline"
|
|
||||||
android:text="@string/no"/>
|
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
|
||||||
android:id="@+id/button_yes"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/Button.PrimaryFull"
|
|
||||||
android:layout_marginLeft="8dp"
|
|
||||||
android:layout_marginRight="8dp"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="@id/center_buttons_guideline"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
android:text="@string/yes"/>
|
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
|
|
||||||
</androidx.cardview.widget.CardView>
|
</androidx.cardview.widget.CardView>
|
||||||
|
|||||||
@ -91,20 +91,20 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHeight_max="300dp"
|
app:layout_constraintHeight_max="280dp"
|
||||||
app:layout_constraintHeight_min="200dp"
|
app:layout_constraintHeight_min="200dp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
tools:listitem="@layout/layout_filter_gruppo_merc__list_item" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/save_btn"
|
android:id="@+id/save_btn"
|
||||||
style="@style/Button.PrimaryFull"
|
style="@style/Widget.Material3.Button.UnelevatedButton"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="16dp"
|
android:layout_marginHorizontal="16dp"
|
||||||
android:layout_marginEnd="16dp"
|
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_marginBottom="8dp"
|
||||||
android:text="@string/confirm"
|
android:text="@string/confirm"
|
||||||
app:singleClick="@{() -> view.onConfirm()}" />
|
app:singleClick="@{() -> view.onConfirm()}" />
|
||||||
|
|||||||
@ -16,21 +16,21 @@
|
|||||||
<androidx.appcompat.widget.LinearLayoutCompat
|
<androidx.appcompat.widget.LinearLayoutCompat
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
|
||||||
android:padding="8dp"
|
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:clickable="@{item.enabled}"
|
android:clickable="@{item.enabled}"
|
||||||
android:onClick="@{() -> item.selected.toggle()}">
|
android:onClick="@{() -> item.selected.toggle()}"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingHorizontal="8dp">
|
||||||
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatCheckBox
|
<CheckBox
|
||||||
android:id="@+id/checkbox"
|
android:id="@+id/checkbox"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="36dp"
|
||||||
android:background="@android:color/transparent"
|
android:clickable="false"
|
||||||
android:enabled="@{item.enabled}"
|
android:enabled="@{item.enabled}"
|
||||||
app:checked="@{item.selected}"
|
app:checked="@{item.selected}" />
|
||||||
android:clickable="false"/>
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.LinearLayoutCompat
|
<androidx.appcompat.widget.LinearLayoutCompat
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
style="@style/AppTheme.NewMaterial.Text.Small"
|
style="@style/TextAppearance.Material3.BodyMedium"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:enabled="@{item.enabled}"
|
android:enabled="@{item.enabled}"
|
||||||
@ -51,7 +51,7 @@
|
|||||||
android:clickable="false" />
|
android:clickable="false" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
style="@style/AppTheme.NewMaterial.Text.Small"
|
style="@style/TextAppearance.Material3.BodyMedium"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text=" - "
|
android:text=" - "
|
||||||
@ -61,7 +61,7 @@
|
|||||||
android:clickable="false" />
|
android:clickable="false" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
style="@style/AppTheme.NewMaterial.Text.Small"
|
style="@style/TextAppearance.Material3.BodyMedium"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:enabled="@{item.enabled}"
|
android:enabled="@{item.enabled}"
|
||||||
|
|||||||
@ -25,8 +25,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="16dp"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:layout_marginEnd="16dp"
|
android:layout_marginEnd="16dp">
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.LinearLayoutCompat
|
<androidx.appcompat.widget.LinearLayoutCompat
|
||||||
@ -91,20 +90,20 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHeight_max="300dp"
|
app:layout_constraintHeight_max="280dp"
|
||||||
app:layout_constraintHeight_min="200dp"
|
app:layout_constraintHeight_min="200dp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
tools:listitem="@layout/layout_filter_numero_ordine__list_item" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/save_btn"
|
android:id="@+id/save_btn"
|
||||||
style="@style/Button.PrimaryFull"
|
style="@style/Widget.Material3.Button.UnelevatedButton"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="16dp"
|
android:layout_marginHorizontal="16dp"
|
||||||
android:layout_marginEnd="16dp"
|
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_marginBottom="8dp"
|
||||||
android:text="@string/confirm"
|
android:text="@string/confirm"
|
||||||
app:singleClick="@{() -> view.onConfirm()}" />
|
app:singleClick="@{() -> view.onConfirm()}" />
|
||||||
|
|||||||
@ -5,7 +5,9 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools">
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<import type="it.integry.integrywmsnative.core.utility.UtilityString" />
|
<import type="it.integry.integrywmsnative.core.utility.UtilityString" />
|
||||||
|
|
||||||
<import type="android.view.View" />
|
<import type="android.view.View" />
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
@ -16,42 +18,34 @@
|
|||||||
<androidx.appcompat.widget.LinearLayoutCompat
|
<androidx.appcompat.widget.LinearLayoutCompat
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
|
||||||
android:padding="8dp"
|
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:clickable="@{item.enabled}"
|
android:clickable="@{item.enabled}"
|
||||||
android:onClick="@{() -> item.selected.toggle()}">
|
android:onClick="@{() -> item.selected.toggle()}"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingHorizontal="8dp">
|
||||||
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatCheckBox
|
<CheckBox
|
||||||
android:id="@+id/checkbox"
|
android:id="@+id/checkbox"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="36dp"
|
||||||
android:background="@android:color/transparent"
|
android:clickable="false"
|
||||||
android:enabled="@{item.enabled}"
|
android:enabled="@{item.enabled}"
|
||||||
app:checked="@{item.selected}"
|
app:checked="@{item.selected}" />
|
||||||
android:clickable="false"/>
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.LinearLayoutCompat
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
style="@style/TextAppearance.Material3.BodyMedium"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:clickable="false"
|
||||||
|
android:enabled="@{item.enabled}"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:clickable="false">
|
android:text="@{item.originalModel.toString()}"
|
||||||
|
tools:text="01" />
|
||||||
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
|
||||||
style="@style/AppTheme.NewMaterial.Text.Small"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:enabled="@{item.enabled}"
|
|
||||||
android:text="@{item.originalModel.toString()}"
|
|
||||||
tools:text="01"
|
|
||||||
android:clickable="false" />
|
|
||||||
|
|
||||||
|
|
||||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
||||||
|
|
||||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||||
|
|
||||||
</layout>
|
</layout>
|
||||||
@ -33,7 +33,7 @@
|
|||||||
<item name="iconTint">@color/red_400</item>
|
<item name="iconTint">@color/red_400</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Button.DangerFull" parent="Widget.MaterialComponents.Button.UnelevatedButton">
|
<style name="Button.DangerFull" parent="Widget.Material3.Button.UnelevatedButton">
|
||||||
<!-- <item name="fontFamily">@font/product_sans_regular</item> <!– target android sdk versions < 26 and > 14 if theme other than AppCompat –>-->
|
<!-- <item name="fontFamily">@font/product_sans_regular</item> <!– target android sdk versions < 26 and > 14 if theme other than AppCompat –>-->
|
||||||
<!-- <item name="android:textStyle">bold</item>-->
|
<!-- <item name="android:textStyle">bold</item>-->
|
||||||
<!-- <item name="android:textAllCaps">false</item>-->
|
<!-- <item name="android:textAllCaps">false</item>-->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user