-
Notifications
You must be signed in to change notification settings - Fork 73
Scroll to top when we reselect the tab once again #234
base: master
Are you sure you want to change the base?
Conversation
@lakshyagupta21 @shobhitagarwal1612 please review it |
I tested this on Lenovo Tab Android 6.0 and it didn't work for me. I attached the debugger and the method SendFormsActivity > Blank Forms > Scrolled to the bottom > Tapped on tab |
I checked it is working fine for me but I checked in filled forms as I do not have blank forms(I don't know how to increase it) can you once please check it in filled forms also |
You can create new forms and add them to |
@shobhitagarwal1612 I just now checked with Android 7, 9 it is working fine I can't test it on 6 due to I didn't have a device @lakshyagupta21 can you please check is this feature works for you as I can not understand what changes I have to make |
@Chromicle Were you able to create some dummy forms? Do you need help with that? |
Yeah, I can not create forms as you gave a link but I can not |
Here you go then (11 forms). forms.zip |
Thanks a lot, I copied all things and placed in the place of forms but the App is not recognizing the forms it is in the backward state only |
You have to open |
Yeah, It is appearing now thanks |
@Chromicle Any updates on this? |
Apologize for the late reply as I am traveling |
@Chromicle Do you need any help on this? |
Yeah, I am unable to find solution |
14256e8
to
2f015ac
Compare
@lakshyagupta21 @shobhitagarwal1612 it is now working on both fragments and I updated the PR template how it works can you please review now |
Closes #232
What has been done to verif8y that this works as intended?
Tested on my android of Samsung j8 it is working as expected
Tested is it scrolling to top or not in both filled forms and blank forms fragment
Tested in the android studio no warning are produced
Why is this the best possible solution? Were any other approaches considered?
I added the
setOnTabSelectedListener
to tab layout in that created method calledonTabReselected
to scroll up I added the smoothScrollToPosition
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
because of adding this feature if the user wants to scroll to the top without scrolling the entire recycle view he/she can instantly scroll to top by reselecting the tab
GIF
Before submitting this PR, please make sure you have:
./gradlew checkCode
and confirmed all checks still pass OR confirm CircleCI build passes