feat: refs#6413 refactorUbicador

This commit is contained in:
Sergio De la torre 2025-01-31 08:18:31 +01:00
parent 136d2de399
commit 884d6abdd9
2 changed files with 18 additions and 19 deletions

View File

@ -11,6 +11,7 @@ import es.verdnatura.presentation.common.OnOutQuantityHistoricItemClickListener
import es.verdnatura.presentation.view.feature.historicoarticulo.model.ItemHistoricoVO import es.verdnatura.presentation.view.feature.historicoarticulo.model.ItemHistoricoVO
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.Date import java.util.Date
import java.util.Locale
class HistoricoAdapter( class HistoricoAdapter(
private val items: List<ItemHistoricoVO>, private val items: List<ItemHistoricoVO>,
@ -38,7 +39,7 @@ class HistoricoAdapter(
binding.apply { binding.apply {
this.item = item 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()) val currentDate = sdf.format(Date())
historicoDate.setBackgroundColor( historicoDate.setBackgroundColor(

View File

@ -26,25 +26,23 @@
android:paddingBottom="@dimen/pasilleros_margin_main_menu"> 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" />
<ImageView
<TextView android:id="@+id/deleteItem"
android:id="@+id/itemfk_text" android:layout_width="@dimen/item_image_width"
android:layout_width="0dp" android:layout_height="@dimen/item_image_width"
android:layout_height="match_parent" android:contentDescription="@string/trash"
android:layout_weight="1" android:src="@drawable/ic_delete_black_24dp" />
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" />
</LinearLayout> </LinearLayout>