views-widgets-samples
views-widgets-samples copied to clipboard
Multiple samples showing the best practices in views-widgets on Android.
hello!! Sir I have problem for currentItem of ViewPager2. currently, I have connected the viewPager2 and the tabLayout through tablayoutMediator. and I attached OnTabSelectedListener to the tabLayout. also I made...
Error: ViewHolder (android.widget.TextView) in viewHolder cannot be applied to (android.view.View)
https://github.com/googlesamples/android-RecyclerView/blob/99704c04692a5bda5b24a61db7b2213534976041/Application/src/main/java/com/example/android/recyclerview/CustomAdapter.java Line 77 has an error for me: return new ViewHolder(v); Fixed it with: return new ViewHolder((TextView) )v); Just in case anyone runs into the same problem.
I have a recyclerview which has some textview and a edittext in a single row..when i enter data in the edittext and scroll the list...the data from that edittext gets...
Subheaders (aka section headers) in lists and grids very common and indeed part of the material design spec (http://www.google.fr/design/spec/components/subheaders.html). On the implementation side, there appear to be two primary strategies...
just install sample project. Run on an emulator. Open Memory Monitor. Scroll up and down with several times. Memory is growing. Sometimes GC start, but cannot release more memory. Always...
Use CostomViewHolder instead of ViewHolder for custom View Holder. https://github.com/googlesamples/android-RecyclerView/blob/master/Application/src/main/java/com/example/android/recyclerview/CustomAdapter.java#L39
I have found a weird issue in CardView. When I try to add a programmatically created CardView to an xml inflated View, _shadow is rendered on Lollipop devices_. However if...
I had to make the fast-scroller myself, but it's probably not the best way to do it: https://github.com/AndroidDeveloperLB/LollipopContactsRecyclerViewFastScroller It could be nice to have it customizable/extensible like the LayoutManager. Or...