@Test public void shouldHideUnderlineAndDisableLine(){ viewHolder.populate(viewModel); assertNull(viewHolder.etIssued.getBackground()); assertNull(viewHolder.etRequested.getBackground()); assertNull(viewHolder.etPositiveAdjustment.getBackground()); assertNull(viewHolder.etNegativeAdjustment.getBackground()); assertNull(viewHolder.etReceived.getBackground()); assertNull(viewHolder.etDocumentNo.getBackground()); assertFalse(viewHolder.etIssued.isEnabled()); assertFalse(viewHolder.etRequested.isEnabled()); assertFalse(viewHolder.etPositiveAdjustment.isEnabled()); assertFalse(viewHolder.etNegativeAdjustment.isEnabled()); assertFalse(viewHolder.etReceived.isEnabled()); assertFalse(viewHolder.etDocumentNo.isEnabled()); }
public void populate(final StockMovementViewModel model) { txMovementDate.setText(model.getMovementDate()); etDocumentNo.setText(model.getDocumentNo()); etReceived.setText(model.getReceived()); etNegativeAdjustment.setText(model.getNegativeAdjustment()); etPositiveAdjustment.setText(model.getPositiveAdjustment()); etIssued.setText(model.getIssued()); etRequested.setText(model.getRequested()); txStockExistence.setText(model.getStockExistence()); txReason.setText(model.getReason().getDescription()); txSignature.setText(model.getSignature()); setItemViewTextColor(model); }
StockMovementItemHistoryViewHolder extends BaseViewHolder { public void populate(final StockMovementViewModel model) { txMovementDate.setText(model.getMovementDate()); etDocumentNo.setText(model.getDocumentNo()); etReceived.setText(model.getReceived()); etNegativeAdjustment.setText(model.getNegativeAdjustment()); etPositiveAdjustment.setText(model.getPositiveAdjustment()); etIssued.setText(model.getIssued()); etRequested.setText(model.getRequested()); txStockExistence.setText(model.getStockExistence()); txReason.setText(model.getReason().getDescription()); txSignature.setText(model.getSignature()); setItemViewTextColor(model); } }
StockMovementItemHistoryViewHolder extends BaseViewHolder { public void populate(final StockMovementViewModel model) { txMovementDate.setText(model.getMovementDate()); etDocumentNo.setText(model.getDocumentNo()); etReceived.setText(model.getReceived()); etNegativeAdjustment.setText(model.getNegativeAdjustment()); etPositiveAdjustment.setText(model.getPositiveAdjustment()); etIssued.setText(model.getIssued()); etRequested.setText(model.getRequested()); txStockExistence.setText(model.getStockExistence()); txReason.setText(model.getReason().getDescription()); txSignature.setText(model.getSignature()); setItemViewTextColor(model); } StockMovementItemHistoryViewHolder(View itemView); }
StockMovementItemHistoryViewHolder extends BaseViewHolder { public void populate(final StockMovementViewModel model) { txMovementDate.setText(model.getMovementDate()); etDocumentNo.setText(model.getDocumentNo()); etReceived.setText(model.getReceived()); etNegativeAdjustment.setText(model.getNegativeAdjustment()); etPositiveAdjustment.setText(model.getPositiveAdjustment()); etIssued.setText(model.getIssued()); etRequested.setText(model.getRequested()); txStockExistence.setText(model.getStockExistence()); txReason.setText(model.getReason().getDescription()); txSignature.setText(model.getSignature()); setItemViewTextColor(model); } StockMovementItemHistoryViewHolder(View itemView); void populate(final StockMovementViewModel model); }
StockMovementItemHistoryViewHolder extends BaseViewHolder { public void populate(final StockMovementViewModel model) { txMovementDate.setText(model.getMovementDate()); etDocumentNo.setText(model.getDocumentNo()); etReceived.setText(model.getReceived()); etNegativeAdjustment.setText(model.getNegativeAdjustment()); etPositiveAdjustment.setText(model.getPositiveAdjustment()); etIssued.setText(model.getIssued()); etRequested.setText(model.getRequested()); txStockExistence.setText(model.getStockExistence()); txReason.setText(model.getReason().getDescription()); txSignature.setText(model.getSignature()); setItemViewTextColor(model); } StockMovementItemHistoryViewHolder(View itemView); void populate(final StockMovementViewModel model);  }