-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad focus on certain device / screen #193
Comments
Can you share the code that you show the FancyShowCaseView? |
here it is :
|
Thanks @Happeal which view are you trying to focus? Can you also share the layout.xml file please? |
ofc the view is the following
on the xml I provide you in my first post |
you welcome :) |
I will try this 😄 and I will return to you for the result but why this work well on another device and fail on the nexus 4 ? |
Unfortunately the problem is the same with a Delayed ( I put it to 1000ms by range of 100 ) 😞 |
|
|
Okay,
a basic one too 😛 Yeah I hesitate between my implementation and a device problem because on other screen with nexus 4 it work well sooo its very weird .. but like you say I will try the sample |
the sample run well on the nexus 4 |
Interesting. |
Yep I will try :) |
I'll try but still same problem , My others screen are also ConstraintLayout but it work well on them |
The only diff is that view is construct bottom to Top not top to bottom |
Can you provide me a sample project? I need to debug it. |
Unfortunately I can't for now 😞 |
Ofc the red rectangle is the one :) I can explain more the code here : Here is the full view :
then in this code the constraintLayout block is inflated dynamically by the view I give you on my first post |
Thanks :) Dynamic inflation may cause this but I will debug it. |
I change the constraint layout by a Linear btw ( the empty layout ) but same problem :/ |
Hi @faruktoptas did you succeed ? 😄 |
Not yet :) |
Okay let me know because I don't succeed to fix it 😞 |
The process will be faster if you provide me a sample with the steps to reproduce the bug. |
When I use the fitSystemWindow it may fix some trouble on little device but cause damage on bigger device :/ |
Okay I think there is a problem in your lib with constraint layout ... ( when we don't set bottom or top and the height is on wrap content ) the showcase can figure out the limit of the top and the limit of the bottom |
You have no vertical constraint at all? |
I get the position with FancyShowCaseView/fancyshowcaseview/src/main/java/me/toptas/fancyshowcase/internal/Presenter.kt Line 138 in 916271f
|
( Nice issue template btw ;) ) and sorry for having comment multiple issue I mean it's better that I open my own issue
Used FancyShowCaseView version
1.3.0
Screenshot if there is something wrong with ui
How you show/hide FancyShowCaseView (in Activity or Fragment, in which method)
In init method i use the code below :
this work fine on PIXEL 3 emulator but I try a run into Nexus 4 API 27 emulator and the focus change only on this screen ( work fine in another screen )
Your layout.xml file if the focus is wrong
I try multiple thing like :
put the height view in match parent
set fitSystemWindow = true
But nothing work... if you can help me it will be very niice 😄
The text was updated successfully, but these errors were encountered: