refs #4830
This commit is contained in:
parent
88efda26d7
commit
89dca1575e
|
@ -42,6 +42,11 @@ class InventoryAdapter (
|
|||
}else{
|
||||
itemProducer.visibility = View.VISIBLE
|
||||
}
|
||||
if (item.itemColour.isNullOrEmpty()){
|
||||
itemColor.visibility = View.GONE
|
||||
}else{
|
||||
itemColor.visibility = View.VISIBLE
|
||||
}
|
||||
itemNicho.setOnClickListener {
|
||||
onInvetoryNichoClickListener.onInvetoryNichoClickListener(item)
|
||||
}
|
||||
|
|
|
@ -9,7 +9,8 @@ class ItemInventaryVO(
|
|||
var upstairs: String = "",
|
||||
var nicho: Int = 0,
|
||||
var isError: Boolean = false,
|
||||
var errorMessage: String = ""
|
||||
var errorMessage: String = "",
|
||||
var itemColour: String = ""
|
||||
)
|
||||
|
||||
class InventaryListVO(
|
||||
|
|
|
@ -56,8 +56,26 @@
|
|||
android:gravity="left"
|
||||
tool:text="Alstromeria Blanca"/>
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/verdnatura_black_5"
|
||||
android:paddingLeft="@dimen/pasilleros_margin_main_menu"
|
||||
android:paddingRight="@dimen/pasilleros_margin_main_menu">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/itemColor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{item.itemColour}"
|
||||
android:textSize="@dimen/body2"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/verdnatura_white"
|
||||
android:layout_weight="2"
|
||||
android:gravity="left"
|
||||
tool:text="Amarillo" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
|
@ -78,9 +96,8 @@
|
|||
android:layout_weight="2"
|
||||
android:gravity="left"
|
||||
tool:text="80" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
|
|
Loading…
Reference in New Issue