views-widgets-samples
views-widgets-samples copied to clipboard
Multiple samples showing the best practices in views-widgets on Android.
I have found an issue when dragging an item that doesn't trigger a move on a GridLayoutManager with 2 columns. When dragging one item from the first column to the...
The predecessor class ```ViewPager``` allowed us to extend and make modifications to the behaviour of the Pager. But ```ViewPager2``` has been made as ```final class```, thus restricting us from extending...
## Description I am inflating some data in Favorites Fragment (RecyclerView) with the help of Favorites Recycler Adapter and when I am running my app it is not showing anything...
I have a RecyclerView inside MotionLayout, and the MotionLayout is a child of NestedScrollView https://gist.github.com/maozgal/8edc8d1ac9e215279a21b262b9a00449 The NestedScrollView blocks the dragging events from getting to my RecyclerView. When I'm changing MotionLayout...
if ViewPager2 itemCount > 3 , such as 4 , ViewPager2 childs is SwipeRefreshView + RecyclerView , position 0 , pull refresh network data(before request SwipeRefreshView.isRefreshing = true , after...
Hi, I have a `MotionLayout` inside a `ScrollView` where I'm hiding and showing `Views` during the `Transition` from one `ConstraintSet` to the next. I'm having a couple of problems when...
Having these two Ui elements in the same view, calling onCreate(bundle) for the mapView, then navigating away and returning will cause: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received...
两个viewpager2相互嵌套,同一方向无法滑动,有解决办法么
I am implementing ViewPager2 with FragmentStateAdapter since FragmentPagerAdapter is already deprecated but `createFragment()` is being called 1 time only regardless of how many item count is in `getItemCount`. Full issue...
The savedInstanceState in this sample doesn't seem to be used.