Implemented also displaying BIC in remittee search result list

This commit is contained in:
dankito 2020-09-16 03:20:41 +02:00
parent bf5514f37b
commit 8f24802a55
3 changed files with 31 additions and 7 deletions

View File

@ -20,7 +20,9 @@ open class RemitteeListAdapter(protected val itemClicked: ((Remittee) -> Unit)?
viewHolder.txtvwRemitteeBankName.text = item.bankName viewHolder.txtvwRemitteeBankName.text = item.bankName
viewHolder.txtvwRemitteeBankCode.text = item.iban viewHolder.txtvwRemitteeAccountId.text = item.iban
viewHolder.txtvwRemitteeBankCode.text = item.bic
viewHolder.itemView.setOnClickListener { viewHolder.itemView.setOnClickListener {
itemClicked?.invoke(item) itemClicked?.invoke(item)

View File

@ -12,6 +12,8 @@ open class RemitteeViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView
val txtvwRemitteeBankName: TextView = itemView.txtvwRemitteeBankName val txtvwRemitteeBankName: TextView = itemView.txtvwRemitteeBankName
val txtvwRemitteeAccountId: TextView = itemView.txtvwRemitteeAccountId
val txtvwRemitteeBankCode: TextView = itemView.txtvwRemitteeBankCode val txtvwRemitteeBankCode: TextView = itemView.txtvwRemitteeBankCode
} }

View File

@ -31,15 +31,35 @@
android:textColor="@color/textColorSecondary" android:textColor="@color/textColorSecondary"
/> />
<TextView <RelativeLayout
android:id="@+id/txtvwRemitteeBankCode"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/list_item_remittee_space_between_fields" android:layout_marginTop="@dimen/list_item_remittee_space_between_fields"
android:layout_marginBottom="@dimen/list_item_remittee_bank_code_margin_bottom" android:layout_marginBottom="@dimen/list_item_remittee_bank_code_margin_bottom"
android:gravity="center_vertical" >
style="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/textColorSecondary" <TextView
/> android:id="@+id/txtvwRemitteeAccountId"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:gravity="center_vertical"
style="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/textColorSecondary"
/>
<TextView
android:id="@+id/txtvwRemitteeBankCode"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:gravity="center_vertical|end"
style="@style/TextAppearance.AppCompat.Small"
android:textColor="@color/textColorSecondary"
/>
</RelativeLayout>
</LinearLayout> </LinearLayout>