Sistemata gestione della commessa quando viene creato un collo di reso da cliente.
This commit is contained in:
parent
2123b196b8
commit
84c7c6ac95
2
.idea/runConfigurations/app.xml
generated
2
.idea/runConfigurations/app.xml
generated
@ -1,5 +1,5 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
<component name="ProjectRunConfigurationManager">
|
||||||
<configuration default="false" name="app" type="AndroidRunConfigurationType" factoryName="Android App">
|
<configuration default="false" name="app" type="AndroidRunConfigurationType" factoryName="Android App" activateToolWindowBeforeRun="false">
|
||||||
<module name="app" />
|
<module name="app" />
|
||||||
<option name="DEPLOY" value="true" />
|
<option name="DEPLOY" value="true" />
|
||||||
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" />
|
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" />
|
||||||
|
|||||||
@ -282,47 +282,6 @@ public class PickingResiActivity extends BaseActivity implements IOnColloClosedC
|
|||||||
.setCanPartitaMagBeChanged(false)
|
.setCanPartitaMagBeChanged(false)
|
||||||
.setMaxQta(qtaDaEvadere);
|
.setMaxQta(qtaDaEvadere);
|
||||||
|
|
||||||
// if(item.getTempPickData() != null) {
|
|
||||||
// PickingObjectDTO.PickData tmpPickData = item.getTempPickData();
|
|
||||||
//
|
|
||||||
// if(!UtilityString.isNullOrEmpty(tmpPickData.getBatchLot())) {
|
|
||||||
// dto.setBatchLot(tmpPickData.getBatchLot());
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if(tmpPickData.getDataScad() != null){
|
|
||||||
// dto.setDataScad(tmpPickData.getDataScad());
|
|
||||||
// dto.setShouldAskDataScad(true);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// boolean useQtaDaEvadere;
|
|
||||||
//
|
|
||||||
// if(tmpPickData.getQtaTot() != null) {
|
|
||||||
// useQtaDaEvadere = qtaDaEvadere.floatValue() < tmpPickData.getQtaTot().floatValue() && item.getMtbAart().isFlagQtaCnfFissa();
|
|
||||||
// if(useQtaDaEvadere){
|
|
||||||
// dto.setQtaTot(qtaDaEvadere);
|
|
||||||
// dto.setMaxQta(qtaDaEvadere);
|
|
||||||
// } else {
|
|
||||||
// dto.setQtaTot(tmpPickData.getQtaTot());
|
|
||||||
// dto.setMaxQta(tmpPickData.getQtaTot());
|
|
||||||
// dto.setQtaCnf(tmpPickData.getQtaTot());
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// if (tmpPickData.getQtaCnf() != null && useQtaDaEvadere) {
|
|
||||||
// dto.setQtaCnf(tmpPickData.getQtaCnf());
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// if(dto.getQtaTot() != null && dto.getQtaTot().floatValue() > 0 && dto.getQtaCnf() != null && dto.getQtaCnf().floatValue() > 0) {
|
|
||||||
// dto.setNumCnf(dto.getQtaTot().divide(dto.getQtaCnf()).intValue());
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// dto.setCanPartitaMagBeChanged(false);
|
|
||||||
// dto.setCanDataScadBeChanged(false);
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
|
|
||||||
DialogInputQuantity.makeBase(this, dto, false, (quantityDTO, closeUL) -> {
|
DialogInputQuantity.makeBase(this, dto, false, (quantityDTO, closeUL) -> {
|
||||||
onOrdineRowDispatched(item, quantityDTO, closeUL);
|
onOrdineRowDispatched(item, quantityDTO, closeUL);
|
||||||
@ -351,7 +310,8 @@ public class PickingResiActivity extends BaseActivity implements IOnColloClosedC
|
|||||||
.setSerDoc(item.getSerDoc())
|
.setSerDoc(item.getSerDoc())
|
||||||
.setNumDoc(item.getNumDoc())
|
.setNumDoc(item.getNumDoc())
|
||||||
.setDataDoc(item.getDataDocS())
|
.setDataDoc(item.getDataDocS())
|
||||||
.setIdRigaDoc(item.getIdRiga());
|
.setIdRigaDoc(item.getIdRiga())
|
||||||
|
.setCodJcom(item.getCodJcom());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -36,9 +36,9 @@ public class UltimeConsegneMainListAdapter extends SectionedRecyclerViewAdapter<
|
|||||||
|
|
||||||
private RunnableArgs<DocumentoResoDTO> mOnSelectionChanged;
|
private RunnableArgs<DocumentoResoDTO> mOnSelectionChanged;
|
||||||
|
|
||||||
private TextDrawable.IShapeBuilder smallIconBuilder;
|
// private TextDrawable.IShapeBuilder smallIconBuilder;
|
||||||
private TextDrawable.IShapeBuilder mediumIconBuilder;
|
// private TextDrawable.IShapeBuilder mediumIconBuilder;
|
||||||
private TextDrawable.IShapeBuilder largeIconBuilder;
|
// private TextDrawable.IShapeBuilder largeIconBuilder;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getSectionTitle(int position) {
|
public String getSectionTitle(int position) {
|
||||||
@ -95,34 +95,34 @@ public class UltimeConsegneMainListAdapter extends SectionedRecyclerViewAdapter<
|
|||||||
for(int i = 0; i < count; i++) this.mSectionTitleItems.add(String.valueOf(x.charAt(0)));
|
for(int i = 0; i < count; i++) this.mSectionTitleItems.add(String.valueOf(x.charAt(0)));
|
||||||
});
|
});
|
||||||
|
|
||||||
long count = Stream.of(dataset)
|
// long count = Stream.of(dataset)
|
||||||
.filter(x -> UtilityString.isNullOrEmpty(x.getRagSoc()))
|
// .filter(x -> UtilityString.isNullOrEmpty(x.getRagSoc()))
|
||||||
.count();
|
// .count();
|
||||||
|
|
||||||
|
|
||||||
smallIconBuilder = TextDrawable.builder()
|
// smallIconBuilder = TextDrawable.builder()
|
||||||
.beginConfig()
|
// .beginConfig()
|
||||||
.width(40)
|
// .width(40)
|
||||||
.height(40)
|
// .height(40)
|
||||||
.fontSize(24)
|
// .fontSize(24)
|
||||||
.useFont(ResourcesCompat.getFont(mContext, R.font.google_sans_regular))
|
// .useFont(ResourcesCompat.getFont(mContext, R.font.google_sans_regular))
|
||||||
.endConfig();
|
// .endConfig();
|
||||||
|
//
|
||||||
mediumIconBuilder = TextDrawable.builder()
|
// mediumIconBuilder = TextDrawable.builder()
|
||||||
.beginConfig()
|
// .beginConfig()
|
||||||
.width(40)
|
// .width(40)
|
||||||
.height(40)
|
// .height(40)
|
||||||
.fontSize(20)
|
// .fontSize(20)
|
||||||
.useFont(ResourcesCompat.getFont(mContext, R.font.google_sans_regular))
|
// .useFont(ResourcesCompat.getFont(mContext, R.font.google_sans_regular))
|
||||||
.endConfig();
|
// .endConfig();
|
||||||
|
//
|
||||||
largeIconBuilder = TextDrawable.builder()
|
// largeIconBuilder = TextDrawable.builder()
|
||||||
.beginConfig()
|
// .beginConfig()
|
||||||
.width(40)
|
// .width(40)
|
||||||
.height(40)
|
// .height(40)
|
||||||
.fontSize(16)
|
// .fontSize(16)
|
||||||
.useFont(ResourcesCompat.getFont(mContext, R.font.google_sans_regular))
|
// .useFont(ResourcesCompat.getFont(mContext, R.font.google_sans_regular))
|
||||||
.endConfig();
|
// .endConfig();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,15 +151,17 @@ public class UltimeConsegneMainListAdapter extends SectionedRecyclerViewAdapter<
|
|||||||
holder.mBinding.subDescriptionMain.setText(String.format(mContext.getText(R.string.shipped_on).toString(), UtilityDate.formatDate(consegna.getDataInizTraspD(), UtilityDate.COMMONS_DATE_FORMATS.DMY_HUMAN)));
|
holder.mBinding.subDescriptionMain.setText(String.format(mContext.getText(R.string.shipped_on).toString(), UtilityDate.formatDate(consegna.getDataInizTraspD(), UtilityDate.COMMONS_DATE_FORMATS.DMY_HUMAN)));
|
||||||
}
|
}
|
||||||
|
|
||||||
String numDoc = "" + consegna.getNumDoc();
|
holder.mBinding.badge1.setText(String.valueOf(consegna.getNumDoc()));
|
||||||
|
|
||||||
if(numDoc.length() <= 2) {
|
// String numDoc = "" + consegna.getNumDoc();
|
||||||
holder.mBinding.startIcon.setImageDrawable(smallIconBuilder.buildRound(numDoc, ContextCompat.getColor(mContext, R.color.colorPrimary)));
|
|
||||||
} else if(numDoc.length() == 3) {
|
// if(numDoc.length() <= 2) {
|
||||||
holder.mBinding.startIcon.setImageDrawable(mediumIconBuilder.buildRound(numDoc, ContextCompat.getColor(mContext, R.color.colorPrimary)));
|
// holder.mBinding.startIcon.setImageDrawable(smallIconBuilder.buildRound(numDoc, ContextCompat.getColor(mContext, R.color.colorPrimary)));
|
||||||
} else if(numDoc.length() == 4) {
|
// } else if(numDoc.length() == 3) {
|
||||||
holder.mBinding.startIcon.setImageDrawable(largeIconBuilder.buildRound(numDoc, ContextCompat.getColor(mContext, R.color.colorPrimary)));
|
// holder.mBinding.startIcon.setImageDrawable(mediumIconBuilder.buildRound(numDoc, ContextCompat.getColor(mContext, R.color.colorPrimary)));
|
||||||
}
|
// } else if(numDoc.length() == 4) {
|
||||||
|
// holder.mBinding.startIcon.setImageDrawable(largeIconBuilder.buildRound(numDoc, ContextCompat.getColor(mContext, R.color.colorPrimary)));
|
||||||
|
// }
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Calendar calendarNow = UtilityDate.getCalendarInstance();
|
Calendar calendarNow = UtilityDate.getCalendarInstance();
|
||||||
|
|||||||
@ -72,6 +72,8 @@ public class VersamentoMerceViewModel {
|
|||||||
((IPoppableActivity)mContext).pop();
|
((IPoppableActivity)mContext).pop();
|
||||||
} else if((mtbColt.getGestioneEnum() == GestioneEnum.ACQUISTO || mtbColt.getGestioneEnum() == GestioneEnum.LAVORAZIONE) && mtbColt.getSegno().equals(+1)){
|
} else if((mtbColt.getGestioneEnum() == GestioneEnum.ACQUISTO || mtbColt.getGestioneEnum() == GestioneEnum.LAVORAZIONE) && mtbColt.getSegno().equals(+1)){
|
||||||
setMtbColt(mtbColt);
|
setMtbColt(mtbColt);
|
||||||
|
} else if(mtbColt.getGestioneEnum() == GestioneEnum.VENDITA && mtbColt.getSegno().equals(+1)){
|
||||||
|
setMtbColt(mtbColt);
|
||||||
} else {
|
} else {
|
||||||
DialogSimpleMessageHelper.makeWarningDialog(mContext,
|
DialogSimpleMessageHelper.makeWarningDialog(mContext,
|
||||||
new SpannableString(Html.fromHtml("Sono accettate solamente UL di <b>Acquisto</b> o <b>Lavorazione</b> di <b>CARICO</b>")),
|
new SpannableString(Html.fromHtml("Sono accettate solamente UL di <b>Acquisto</b> o <b>Lavorazione</b> di <b>CARICO</b>")),
|
||||||
@ -305,6 +307,10 @@ public class VersamentoMerceViewModel {
|
|||||||
.setDataColloRif(cloneMtbColr.getDataColloS());
|
.setDataColloRif(cloneMtbColr.getDataColloS());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(sourceMtbColt.getGestioneEnum() == GestioneEnum.VENDITA && sourceMtbColt.getSegno() == +1){
|
||||||
|
cloneMtbColr.setCodJcom(null);
|
||||||
|
}
|
||||||
|
|
||||||
cloneMtbColr
|
cloneMtbColr
|
||||||
.setGestione((String) null)
|
.setGestione((String) null)
|
||||||
.setSerCollo(null)
|
.setSerCollo(null)
|
||||||
|
|||||||
@ -9,43 +9,23 @@
|
|||||||
android:orientation="vertical" android:layout_width="match_parent"
|
android:orientation="vertical" android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<androidx.cardview.widget.CardView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="6dp"
|
|
||||||
android:layout_marginEnd="6dp"
|
|
||||||
android:layout_marginTop="12dp"
|
|
||||||
android:layout_marginBottom="8dp"
|
|
||||||
app:cardElevation="2dp"
|
|
||||||
app:cardCornerRadius="4dp">
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingStart="8dp"
|
|
||||||
android:paddingEnd="8dp"
|
|
||||||
android:paddingTop="8dp"
|
|
||||||
android:paddingBottom="8dp"
|
|
||||||
android:background="@color/colorAccent">
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/title"
|
android:id="@+id/title"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
style="@style/AppTheme.NewMaterial.Text.ListDivider"
|
style="@style/AppTheme.NewMaterial.Text.ListDivider"
|
||||||
|
android:layout_marginStart="14dp"
|
||||||
|
android:layout_marginEnd="14dp"
|
||||||
|
android:layout_marginTop="14dp"
|
||||||
android:textAllCaps="true"
|
android:textAllCaps="true"
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@color/colorAccent"
|
||||||
tools:text="Title here"/>
|
tools:text="Title here"/>
|
||||||
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
</androidx.cardview.widget.CardView>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</layout>
|
</layout>
|
||||||
@ -8,31 +8,36 @@
|
|||||||
type="it.integry.integrywmsnative.core.rest.model.DocumentoResoDTO" />
|
type="it.integry.integrywmsnative.core.rest.model.DocumentoResoDTO" />
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
<LinearLayout
|
<RelativeLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="4dp"
|
android:layout_marginTop="4dp"
|
||||||
android:layout_marginStart="4dp"
|
android:layout_marginStart="12dp"
|
||||||
android:layout_marginBottom="4dp"
|
android:layout_marginBottom="4dp"
|
||||||
android:paddingStart="8dp"
|
android:paddingStart="8dp"
|
||||||
android:paddingEnd="8dp"
|
android:paddingEnd="8dp"
|
||||||
android:paddingTop="8dp"
|
android:paddingTop="8dp"
|
||||||
android:paddingBottom="8dp"
|
android:paddingBottom="8dp"
|
||||||
android:orientation="horizontal"
|
|
||||||
android:background="@drawable/bg_checked_layout"
|
android:background="@drawable/bg_checked_layout"
|
||||||
app:backgroundTintResID="@{consegna.selected.get() ? R.color.bg_checked_layout : android.R.color.transparent}" >
|
app:backgroundTintResID="@{consegna.selected.get() ? R.color.bg_checked_layout : android.R.color.transparent}" >
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/start_icon"
|
|
||||||
android:layout_width="40dp"
|
|
||||||
android:layout_height="40dp" />
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:id="@+id/badge1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="8dp">
|
tools:text="BADGE 1"
|
||||||
|
android:background="@drawable/badge1_round_corner"
|
||||||
|
android:textColor="@android:color/white"
|
||||||
|
android:paddingTop="2dp"
|
||||||
|
android:paddingBottom="2dp"
|
||||||
|
android:paddingLeft="6dp"
|
||||||
|
android:paddingRight="6dp"
|
||||||
|
android:textStyle="bold"/>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/description_main"
|
android:id="@+id/description_main"
|
||||||
@ -42,6 +47,8 @@
|
|||||||
style="@android:style/TextAppearance.Small"
|
style="@android:style/TextAppearance.Small"
|
||||||
android:layout_marginEnd="4dp"
|
android:layout_marginEnd="4dp"
|
||||||
android:layout_toStartOf="@id/date"
|
android:layout_toStartOf="@id/date"
|
||||||
|
android:layout_toEndOf="@id/badge1"
|
||||||
|
android:layout_marginStart="4dp"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
tools:text="TITLE"/>
|
tools:text="TITLE"/>
|
||||||
@ -58,15 +65,15 @@
|
|||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/sub_description_main"
|
android:id="@+id/sub_description_main"
|
||||||
|
style="@android:style/TextAppearance.Small"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
style="@android:style/TextAppearance.Small"
|
android:layout_below="@id/description_main"
|
||||||
android:layout_marginTop="4dp"
|
android:layout_marginTop="4dp"
|
||||||
android:layout_marginEnd="4dp"
|
android:layout_marginEnd="4dp"
|
||||||
android:layout_toStartOf="@id/compilato_da"
|
android:layout_toStartOf="@id/compilato_da"
|
||||||
android:layout_below="@id/description_main"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
|
android:singleLine="true"
|
||||||
tools:text="SUB TITLE" />
|
tools:text="SUB TITLE" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
@ -81,6 +88,5 @@
|
|||||||
tools:text="Nome Cognome"/>
|
tools:text="Nome Cognome"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</layout>
|
</layout>
|
||||||
@ -9,43 +9,22 @@
|
|||||||
android:orientation="vertical" android:layout_width="match_parent"
|
android:orientation="vertical" android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<androidx.cardview.widget.CardView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="6dp"
|
|
||||||
android:layout_marginEnd="6dp"
|
|
||||||
android:layout_marginTop="12dp"
|
|
||||||
android:layout_marginBottom="8dp"
|
|
||||||
app:cardElevation="2dp"
|
|
||||||
app:cardCornerRadius="4dp">
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingStart="8dp"
|
|
||||||
android:paddingEnd="8dp"
|
|
||||||
android:paddingTop="8dp"
|
|
||||||
android:paddingBottom="8dp"
|
|
||||||
android:background="@color/colorAccent">
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/title"
|
android:id="@+id/title"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
style="@style/AppTheme.NewMaterial.Text.ListDivider"
|
style="@style/AppTheme.NewMaterial.Text.ListDivider"
|
||||||
|
android:layout_marginStart="14dp"
|
||||||
|
android:layout_marginEnd="14dp"
|
||||||
|
android:layout_marginTop="14dp"
|
||||||
android:textAllCaps="true"
|
android:textAllCaps="true"
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@color/colorAccent"
|
||||||
tools:text="Title here"/>
|
tools:text="Title here"/>
|
||||||
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
</androidx.cardview.widget.CardView>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</layout>
|
</layout>
|
||||||
@ -8,7 +8,7 @@
|
|||||||
type="it.integry.integrywmsnative.core.rest.model.DocumentoResoDTO" />
|
type="it.integry.integrywmsnative.core.rest.model.DocumentoResoDTO" />
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
<LinearLayout
|
<RelativeLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -20,20 +20,16 @@
|
|||||||
android:paddingEnd="8dp"
|
android:paddingEnd="8dp"
|
||||||
android:paddingTop="8dp"
|
android:paddingTop="8dp"
|
||||||
android:paddingBottom="8dp"
|
android:paddingBottom="8dp"
|
||||||
android:orientation="horizontal"
|
|
||||||
android:background="@drawable/bg_checked_layout"
|
android:background="@drawable/bg_checked_layout"
|
||||||
app:backgroundTintResID="@{consegna.selected.get() ? R.color.bg_checked_layout : android.R.color.transparent}" >
|
app:backgroundTintResID="@{consegna.selected.get() ? R.color.bg_checked_layout : android.R.color.transparent}" >
|
||||||
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content">
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/badge1"
|
android:id="@+id/badge1"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="BADGE 1"
|
tools:text="BADGE 1"
|
||||||
android:background="@drawable/badge1_round_corner"
|
android:background="@drawable/badge1_round_corner"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:paddingTop="2dp"
|
android:paddingTop="2dp"
|
||||||
@ -61,6 +57,8 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
style="@style/AppTheme.NewMaterial.Text"
|
style="@style/AppTheme.NewMaterial.Text"
|
||||||
|
android:layout_toEndOf="@id/badge1"
|
||||||
|
android:textAlignment="textEnd"
|
||||||
android:textColor="@color/colorPrimaryGray"
|
android:textColor="@color/colorPrimaryGray"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
@ -78,6 +76,5 @@
|
|||||||
tools:text="Nome Cognome"/>
|
tools:text="Nome Cognome"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</layout>
|
</layout>
|
||||||
Loading…
x
Reference in New Issue
Block a user