feat: refs#6413 refactorUbicador
This commit is contained in:
parent
136d2de399
commit
884d6abdd9
|
@ -11,6 +11,7 @@ import es.verdnatura.presentation.common.OnOutQuantityHistoricItemClickListener
|
|||
import es.verdnatura.presentation.view.feature.historicoarticulo.model.ItemHistoricoVO
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Date
|
||||
import java.util.Locale
|
||||
|
||||
class HistoricoAdapter(
|
||||
private val items: List<ItemHistoricoVO>,
|
||||
|
@ -38,7 +39,7 @@ class HistoricoAdapter(
|
|||
binding.apply {
|
||||
this.item = item
|
||||
|
||||
val sdf = SimpleDateFormat(res.getString(R.string.dateFormat))
|
||||
val sdf = SimpleDateFormat(res.getString(R.string.dateFormat), Locale.getDefault())
|
||||
val currentDate = sdf.format(Date())
|
||||
|
||||
historicoDate.setBackgroundColor(
|
||||
|
|
|
@ -26,25 +26,23 @@
|
|||
android:paddingBottom="@dimen/pasilleros_margin_main_menu">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/itemfk_text"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="@color/verdnatura_white"
|
||||
android:textSize="@dimen/h5"
|
||||
android:textStyle="bold"
|
||||
tool:text="45532" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/itemfk_text"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="@color/verdnatura_white"
|
||||
android:textSize="@dimen/h5"
|
||||
android:textStyle="bold"
|
||||
tool:text="45532" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/item_image_width"
|
||||
android:layout_height="@dimen/item_image_width"
|
||||
android:contentDescription="@string/trash"
|
||||
android:src="@drawable/ic_delete_black_24dp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/deleteItem"
|
||||
android:layout_width="@dimen/item_image_width"
|
||||
android:layout_height="@dimen/item_image_width"
|
||||
android:contentDescription="@string/trash"
|
||||
android:src="@drawable/ic_delete_black_24dp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
|
Loading…
Reference in New Issue