Skip to content

Commit

Permalink
FIX: spinner background
Browse files Browse the repository at this point in the history
  • Loading branch information
Zdeněk Balák committed May 2, 2019
1 parent 48902e4 commit 20c5507
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class LabelSpinnerElement<T>(private val label: String,
val spinner = inflater.inflate(spinnerComponent, root, false) as NiceSpinner
spinner.attachDataSource(availableValues)
spinner.selectedIndex = availableValues.indexOf(value)
spinner.setBackgroundColor(context.resources.getColor(formStyleBundle.secondaryBackgroundColor))

spinner.setOnItemSelectedListener(object : AdapterView.OnItemSelectedListener {
override fun onNothingSelected(p0: AdapterView<*>?) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
android:minWidth="150dp"
android:padding="10dp"
android:textAlignment="textEnd"
android:backgroundTint="#BFFFFFFF"
app:arrowDrawable="@drawable/ic_arrow_down"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
Expand Down

0 comments on commit 20c5507

Please sign in to comment.