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

Use profiler to detect memory leak and find fragment leak ![6e615158-d3cd-42b9-8e3a-8fbe27ba6ba1](https://github.com/android/views-widgets-samples/assets/10769645/e531520c-91fa-44c3-b9ac-45af36a522c5) ![image](https://github.com/android/views-widgets-samples/assets/10769645/b092f0b1-2474-488b-98f7-d84563729a92) [Uploading memory-20240412T110405.hprof.zip…]()

After migrating my ViewPager to ViewPager2 (so as the ViewHolder and Adapter), I'm facing some sliding lag problem. I've found out that onCreateViewHolder() and onBindViewHolder() runs after the sliding motion...

https://github.com/android/views-widgets-samples/blob/f22069a57d5df0b58ce0be08086c3e9db35870b8/RecyclerViewKotlin/app/src/main/java/com/example/recyclersample/flowerList/FlowersAdapter.kt#L78 According to the documentation it should be the opposite.

Hi, The scenario I have is a recycler view containing items with different view types, i.e. i audio, video, image files all in a single adapter, in order to show...

migrated googlesamples

In androidx, we use single Acitivty with multiple fragments for page transfer. When we use NavGraph to transfer A fragment (using ViewPager2) to B fragment, and then back from B...

Build: AI-191.8026.42.35.6010548, 201911150702, AI-191.8026.42.35.6010548, JRE 1.8.0_202-release-1483-b03x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1536x864 AS: 3.5.3; Android Gradle Plugin: 3.5.3; Gradle: 5.4.1; NDK: from local.properties: (not specified), latest from...

I'm a newbie to Kotlin. It seems than any sample code I import from anywhere never runs due to various errors. When I import the RecyclerSampleKotlin code into Android Studio,...

Hi, I implement a basic viewpager2 My main fragment (which contain a viewpager of 2 fragments (fragmentA and fragment B)) ``` ... override fun onViewCreated(view: View, savedInstanceState: Bundle?) { my_view_pager.adapter...

There is a very old library here https://github.com/chthai64/SwipeRevealLayout which I want to remove from my project, because it is using jetifier. How would you create behavior similar to the above...