milosmns / actual-number-picker

Android: A horizontal number picker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't showing on Android 6.0 if on ListView

antoniocgrande opened this issue · comments

I did make one ListView and inflated the ActualNumberPicker on Adapter. Did works fine on Android 4.1.2, but on Android 6.0 doesn't is shown nothing.

You put the slider into a ListView as an item? It should be similar to the ViewPager in terms of touch handling, but a weird case altogether. Can you verify it happens only on 6.0 devices? I have devices with 6.0 and 7.0 and it works fine in a ViewPager - it doesn't do anything special related to a lower API level so this bug doesn't really make sense to me.

Can you try it with a RecyclerView? https://developer.android.com/training/material/lists-cards.html

Okay I think it's either the emulator or the ListView (probably emulator due to low memory footprint. You should be using the RecyclerView anyway as ListView is practically deprecated now - more information at https://developer.android.com/training/material/lists-cards.html