views-widgets-samples icon indicating copy to clipboard operation
views-widgets-samples copied to clipboard

Multiple samples showing the best practices in views-widgets on Android.

Results 102 views-widgets-samples issues
Sort by recently updated
recently updated
newest added

Gradle: 7.3.3 Android Gradle Plugin: 7.2.1 Kotlin: 1.7.0 Other dependencies with stable version Add missing dependencies Test: build successfully

According to the [`DiffUtil.ItemCallback` documentation ](https://developer.android.com/reference/androidx/recyclerview/widget/DiffUtil.ItemCallback#areContentsTheSame(T,%20T)), and as the names suggest, `areItemsTheSame` should be checking if the IDs are the same and `areContentsTheSame` should be checking if the contents are...

The app crashs, I was using viewpager2 with adapter and when I set child Imageview item's width, height: wrap_content or certain Dp values, it crashs and throws an exception. It's...

I added my custom PageTransformer and when I am scrolling by finger everything is ok, but when I try to set current item by setCurrentItem(without smooth scroll) method in ViewPager2,...

Hi, i probably found a bug which disarranges the MotionLayout Animations. Once you open (and close) a keyboard on the same page where you have your motion animations, e.g. with...

1.第二层viewpager2中的横向recyclerview刷新自动滚到最左侧; 2.第三层viewpager2中的所有fragment页签中点击事件触发会使第三层的viewpager自动切到第一个页签。 有大佬遇到过此类问题吗?怎么解决?谢谢

Hi, When i set overScrollMode to "never" by (android:overScrollMode="never") or (viewPager2.overScrollMode = View.OVER_SCROLL_NEVER), both of them just can not work.

My application designed viewPager2 to be half the width of the screen, and when I clicked the switch I would hide the other half, so viewapger2 would be all over...

Fix DiffUtil.ItemCallback implementation The `areItemsTheSame` documentation explicitly says: "For example, if your items have unique ids, this method should check their id equality." In the current state, the `DiffUtil.ItemCallback` is...

Since we updated from viewPager2 1.1.0-alpha01 to 1.1.0-beta01 we've had issues with android 9. Views, that are siblings to a viewpager2 view in a constraintview, that are constrained to the...