android-nestedscrollview

Recyclerview onscrolllistener not working when setNestedScrollingEnabled to false

自闭症网瘾萝莉.ら 提交于 2019-12-03 12:48:59
I want to implement pagination with recyclerView , for this I add addOnScrollListener to the recyclerView but I am having trouble with RecyclerView.OnScrollListener not working when I set rvGridExplore.setNestedScrollingEnabled(false); But when I remove rvGridExplore.setNestedScrollingEnabled(false); it is working fine, I don't know how to handle this. Here is code: rvGridExplore = (RecyclerView) view.findViewById(R.id.rvGridExplore); final GridLayoutManager glm = new GridLayoutManager(context,2); // rvGridExplore.setNestedScrollingEnabled(false); rvGridExplore.setLayoutManager(glm); // final

List view not scrolling in fragment using view pager inside NestedScrollView

空扰寡人 提交于 2019-12-03 08:27:32
Hi there i needed to create layout like whatsapp, which scrolls the actionbar but not tabLayout. I used viewpager for loads fragment in it. In fragment i added listview but on Listview scroll that action bar not scrolling there. Using some tutorials on stackoverflow i got that for this purpose needed to use nestedScrollView and it works for me. But it stops scrolling listview. I used this code for that. activity_my.xml <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas

How to scroll to a particular position in recyclerview inside scrollview?

谁都会走 提交于 2019-12-02 23:36:44
I have searched a lot regarding my query and none of them was useful. I have a recyclerview and some static data inside a scroll view which is inside a root parentlayout as show below. I have set - scrollview.scrollto(0,0); because everytime i open the activity it jumps to the recyclerview firstitem and it skips out the static data above the recyclerview. recyclerview.setNestedScrollingEnabled(false); recyclerview.setfocusable(false); for smoothscroll. the problem is with- layoutmanager.scrollToPositionWithOffset(pos,0); it is not working. I have set the aboveline after setting adapter to

CollapsingToolbarLayout flickers while scrolling down

寵の児 提交于 2019-12-02 14:19:41
问题 I have a detail page which includes CollapsingToolbarLayout and NestedScrollView in CoordinatorLayout. When I scroll up from CollapsingToolbarLayout and scroll down from NestedScrollView very fast and immediately, it flickers and not provide me a smooth scroll. It also happens in Cheesesquare demo app. However, in Whatsapp profile page, it doesn't happen. Here is a video for better understanding: http://sendvid.com/4xsrya3w This is the layout of my page: <?xml version="1.0" encoding="utf-8"?>

RecyclerView inside NestedScrollView does not give correct visible item position

ε祈祈猫儿з 提交于 2019-12-01 11:36:44
I have a RecyclerView inside a NestedScrollView and I'm trying to get the position of the last visible list item during scroll events using. The following code allows me to reliably detect scroll events: val recyclerView = nestedScrollView.getChildAt(0) as RecyclerView nestedScrollView.setOnScrollChangeListener { v: NestedScrollView?, scrollX: Int, scrollY: Int, oldScrollX: Int, oldScrollY: Int -> val layoutManager = recyclerView?.layoutManager as? LinearLayoutManager val lastVisiblePosition = layoutManager?.findLastVisibleItemPosition() } The problem however is that here lastVisiblePosition

Collapsing AppBarLayout not scrolling with TabLayout and NestedScrollView

家住魔仙堡 提交于 2019-12-01 07:32:21
I have an issue with scrolling Collapsing AppBar, when I am trying to scroll it touching the AppBarLayout part. And also it sometimes scrolling not smoothly. Here is short (1m 30s) video of issue : https://www.youtube.com/watch?v=n32N9Z4S3SA&feature=youtu.be Here is link to simple project (only this issue on github): https://github.com/yozhik/Reviews/tree/master/app/src/main/java/com/ylet/sr/review I'm using: com.android.support:appcompat-v7:27.1.1 There is issue on offsite: https://issuetracker.google.com/issues/37050152 How it is: https://www.youtube.com/watch?v=xWadOVEaTSY&feature=youtu.be

Collapsing AppBarLayout not scrolling with TabLayout and NestedScrollView

廉价感情. 提交于 2019-12-01 04:20:12
问题 I have an issue with scrolling Collapsing AppBar, when I am trying to scroll it touching the AppBarLayout part. And also it sometimes scrolling not smoothly. Here is short (1m 30s) video of issue : https://www.youtube.com/watch?v=n32N9Z4S3SA&feature=youtu.be Here is link to simple project (only this issue on github): https://github.com/yozhik/Reviews/tree/master/app/src/main/java/com/ylet/sr/review I'm using: com.android.support:appcompat-v7:27.1.1 There is issue on offsite: https:/

Recyclerview with endless scrolling in nestedscrollview, triggers onScrolled

人走茶凉 提交于 2019-11-30 12:35:15
I have recyclerview in the nestedscrollview: <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <org.apmem.tools.layouts.FlowLayout android:id="@+id/filter_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/green_main" android:paddingLeft="@dimen/small_horizontal_margin" android:paddingRight="@dimen/small_horizontal_margin" /> <android.support.v7.widget

Smooth scroll and Fling with NestedScrollView,AppBarLayout and CoordinatorLayout

别说谁变了你拦得住时间么 提交于 2019-11-30 08:17:27
I am working on an application where I'm using AppBarLayout with CollapsingToolbarLayout and NestedScrollView. I have successfully implemented this and it is working fine. Now what i am trying to do is, that on fling(fast swipe up) on the Nestedscrollview it should scroll completely to top. Similarly, on fling(fast swipe down) towards the bottom of the screen, it must scroll all the way to the bottom smoothly. However now, it only gets stuck in between which makes it look ugly. I have tried many available solutions available here but nothing worked for me. My current setup is below. <android

CoordinatorLayout with multiple snapping points

时光怂恿深爱的人放手 提交于 2019-11-30 07:52:53
Here I've got quite a complex animation that may be resolved (I believe) in a simple way using the CoordinatorLayout . It has 3 states: Initial (left screen) - Header view is shown fully (orange background): Toolbar, grey roundrect (it's actually a photo there) plus some other views below (TextViews, RatingBar etc) Scrolling the content up (middle screen) - roundrect is zooming up with a changing green foreground alpha level over it, so it becomes green while scrolling (well, it is not obvious with these screens. Green background is actually a zoomed roundrect with a green foreground over it,