my question is actually exactly the same as this one: RecyclerView expandable cardView but no good solution was given, that's why I'm asking this question again.
So the problem is that when I click the last cardView, it expands but the expandable part isn't visible, I have to scroll down to see it. I tried scrollToPosition but that didn't work.
Can someone help?
Thanks in advance!
Related
I want to create a table using RecyclerView that scrolls both horizontally and vertically (without using the HorizontalScrollView)
I used this class
https://github.com/devunwired/recyclerview-playground/blob/master/app/src/main/java/com/example/android/recyclerplayground/layout/FixedGridLayoutManager.java
But unfortunately it has a bug and has not been updated since 2016.
For example, I want the page to scroll from right to left when opened activity, but it is not possible
Please help me if anyone knows.
Hello Perhaps for someone this question is considered really easy, but I have been fighting this question for 2 weeks. How is clicking on the TextView so that there is a transition to the site, or at least in which direction to go. Clicking occurs, but the transition to clicking is not and that's it. in recyclerview
I will be glad for any helpenter image description here
I have a problem. If I click on one button then it shows a little window where I need to click on another button. But it is hidden because that window is too small and needs to move with scrollbar. How should I click or move with that scrollbar and then click on the button?
If I try playground on that it takes full window.
Thank you for your answers.
Is that modal related to the width of the screen? If it is you can solve it by adding a new configuration for the viewport to cypress.json:
{
"viewportWidth": 1920,
"viewportHeight": 1280
}
And then of course to a width that is enough to solve your problem.
If that doesn't work, I believe this page can help you: https://docs.cypress.io/api/commands/scrollto.html#Scopes . The result will be something like this:
cy.get('modal_name')
.scrollTo('right')
Besides that I expected a cy.get() to still get the button you were looking for.
This is a very natural way of thinking whilst getting your element. However, imagine you are manually testing the screen above, you will have scroll in order to see and take action to the hidden element. Why should cypress be different?
It is important to transcript to your test, exactly the same actions you would do if manually executing the test. As a result, you should have a scrollIntoView action.
On Android 4, when press-holding a key with accented characters like "i", a popup menu for the accented characters is displayed. Then sliding the finger into the button of any accented character within the popup menu highlights/selects the button, and finally releasing the finger, inputs the accented character into the target textbox.
I'd like to reproduce this (with a vertical popup menu) in QML with the addition of a scrolling behaviour when finger reaches the top or bottom of the popup menu (typical application: select a temperature among a hundred of values)
I tried to use a ListView for the popup menu, but the default scrolling behavior is not the one I need.
So far I managed to make a lame hack, using a Timer to update the ListView's contentY, but the code as well as the result look wrong. I was wondering if there is a proper way to achieve that.
Thanks
Sorry for posting as an answer but dont have the 50 for commenting.
What do you mean with default scrolling behavior? Maybe the PathView is your answer, if I understood properly.
Further details will be appreciated
I have a similar problem like the one in this this question
But mine is a little different. My problem is that when I switch from the Gridview to the listview only the clicked image appears and if I scroll the listview the other images don't appear at all while there place is reserved which means if I scroll twice to the left then scroll back two times to the right the original photo(Which appeared when clicked) appears again. And if the listview is the default view when the application runs it works fine, but also when I click any image in order to switch to the gridview only the clicked image appears in the gridview and it appears in its exact place! Any Ideas? Thanks
Well I got it, I adapted the Photo viewer Example that is provided by Qt and it works just fine now.