Add arrows to currency selector

This commit is contained in:
Grishka 2024-04-18 02:43:19 +03:00
parent 104896ae1b
commit b9956950b6
2 changed files with 14 additions and 0 deletions

View File

@ -78,6 +78,9 @@ public class CurrencyAmountInput extends LinearLayout implements CustomViewHelpe
currencyBtn.setMinimumWidth(0); currencyBtn.setMinimumWidth(0);
currencyBtn.setMinWidth(0); currencyBtn.setMinWidth(0);
currencyBtn.setOnClickListener(v->showCurrencySelector()); currencyBtn.setOnClickListener(v->showCurrencySelector());
currencyBtn.setCompoundDrawablesRelativeWithIntrinsicBounds(R.drawable.ic_unfold_more_wght600_15pt_8x20px, 0, 0, 0);
currencyBtn.setCompoundDrawableTintList(currencyBtn.getTextColors());
currencyBtn.setCompoundDrawablePadding(dp(4));
addView(currencyBtn, new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.MATCH_PARENT)); addView(currencyBtn, new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.MATCH_PARENT));
edit=new ActualEditText(context); edit=new ActualEditText(context);

View File

@ -0,0 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="8dp"
android:height="20dp"
android:viewportWidth="8"
android:viewportHeight="20">
<group android:translateX="-6" android:scaleX="0.75" android:scaleY="0.75" android:pivotX="10" android:pivotY="10">
<path
android:fillColor="@android:color/white"
android:pathData="M10,17.375 L6.208,13.583 7.646,12.167 10,14.5 12.354,12.167 13.792,13.583ZM7.646,7.812 L6.208,6.375 10,2.583 13.792,6.375 12.354,7.812 10,5.458Z" />
</group>
</vector>