K
K
Kirill Vlasov2019-03-13 12:17:47
Android
Kirill Vlasov, 2019-03-13 12:17:47

Why does the spinner scroll to the currently selected element?

Faced a rather strange behavior of spinners. That AppCompat, that a regular spinner behaves like in the screenshot below, pay attention to what happens to the scrollbar and the spinner itself when you tap on it. At the same time, if you quickly scroll without holding your finger in one place and immediately release it, everything is fine. With what it can be connected?5c88ca6825496456815475.gif

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Vlasov, 2019-03-25
@Neikist

In general, I found out what it was connected with, on the version of androidx.appcompat:appcompat:1.1.0-alpha01 it works fine, on more recent ones there is such a bug...

1
123 135, 2019-03-22
@Bogdan24

Try adding a ClickListener to the spinner. Maybe this is not a bug, but it was conceived by Google)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question