Updated on 2026-08-14

This commit is contained in:
Tangem 2022-02-09 16:12:01 +03:00
parent fb37a499e3
commit 5353f810fe
3 changed files with 10 additions and 2 deletions

View file

@ -182,7 +182,10 @@ class CurrenciesAdapter : ListAdapter<CurrencyListItem, RecyclerView.ViewHolder>
Picasso.get().loadCurrenciesIcon(view.iv_currency, view.tv_token_letter, token, token.blockchain)
view.tv_currency_name.text = token.name
view.tv_currency_symbol.text = token.symbol
view.tv_currency_symbol.text = view.context.getString(
R.string.token_symbol_address_format,
token.symbol, token.contractAddress
)
view.btn_add_token.setOnClickListener {
onItemAddListener.invoke(currency)
currency.isAdded = true

View file

@ -61,13 +61,16 @@
<TextView
android:id="@+id/tv_currency_symbol"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:ellipsize="middle"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:singleLine="true"
android:textColor="@color/darkGray6"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/btn_add_token"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toEndOf="@id/iv_currency"
app:layout_constraintTop_toTopOf="@id/guideline"

View file

@ -315,4 +315,6 @@ Amount to pay: %s</string>
<string name="solana_rent_warning" translatable="false">Solana network charges a rent of %s every 2 days. Accounts that cant afford the rent are purged from the network. Deposit your account with more than %s to use it for free.</string>
<string name="token_symbol_address_format" translatable="false">%1s (%2s)</string>
</resources>