I am working on a project, in which I have a list of items, I have a banner on top and list of items in ScrollView below this banner, I want when a scroll up, my ScrollView move up and overlaps the banner and when I scroll down scroll view come back to the first Position.
Related
I have a RecyclerView where each item is a linear layout (orientation vertical) with a text view and another horizontal RecyclerView. The expected behaviour would be that the user would be able to seamless change from vertical to horizontal scroll, but it appears if user tries to swipe horizontally while the vertical scroll is not entirely stopped (yet not visible move, just to swipe fast) or if the horizontal swipe starts somehow from a diagonal motion, the app keeps the vertical scroll and ignores the horizontal one.
Is there a best practice on how to use a vertical recyclerview with horizontal recyclerview items? Tried to search for this a lot, but nothing seems to work.
I have developed an app which contains a horizontal RecyclerView with two Buttons (back/forward) when clicked on the button the child view scroll to the respective position ( for forward it scrolls to position+1 and back is scrolled to position-1).
But the user can also drag the screen to left or right the view the next or previous view. I just want to disable that the user can't drag the screen left or right to view the next or previous child views.
But when clicked on the button it will scroll forward or backwards according to the selection.
I have a NestedScrollView with a RecyclerView inside.
Each item within the RecyclerView has an EditText.
If the user LongClicks an EditText I want the screen to scroll such that the position of the editetext within the recyclerview scrolls to the top of the screen....
tried a lot of methods but think the nestedscrollview combined with recycler might be hindering this...
The reason i want this behaviour is that suppose an item in the recyclerview is near the bottom of the screen, if i click this the keyboard enters and it will be hidden, hence i want it to shift to the top, that way the edittext is visible
There is a horizontal recyclerview in my app and I want the sideways swipe to just bring next item to the centre. So when user swipes on the screen, the list should not scroll on for several items but just scroll to next item regardless of the swipe distance. Would it be possible to achieve this effect?
I try to implement following behavior of my app:
I've got list of views and show them in scrollview partly.
If user scroll and reaches bottom of scrollview, I add one more view below last view;
If user scroll up and reaches top of scrollview, I add view above the first view.
My problem is that when I add view above the first view it shift all views in layout down.
My question is: how to add view above view in hidden area, so user could have a look by scrolling up?