Status Update
Comments
kl...@google.com <kl...@google.com>
kl...@google.com <kl...@google.com> #2
possible dup
an...@google.com <an...@google.com>
va...@google.com <va...@google.com>
ap...@google.com <ap...@google.com> #3
coming back to this issue. I see this is because we just cannot really drag handle behind the screen (because the "pointer" of the handle is where we select the text, so the handle need to be out of the screen to select the last letter).
That being said, if being super careful I'm able to select the whole first word even with no padding (sometimes takes a few attempts).
Siyamed, how do you deal with this in the platform text? Frankly, I expect no text to be at the very edge of the screen in the real apps, and since it's possible to select by just raising the selection handle higher (positionning at the line above seelcted the whole line) idk how big the problem is.
Anyway, reassigning to Siyamed to investigate the selection in the platform for clues or ask someone from the text team to do it.
hi...@gmail.com <hi...@gmail.com> #4
Thanks.
Can you please elaborate on the first sentence?
I see this is because we just cannot really drag handle behind the screen (because the "pointer" of the handle is where we select the text, so the handle need to be out of the screen to select the last letter).
I did not understand dragging the handle behind the screen.
va...@google.com <va...@google.com> #5
In the Gmail app for example (see image) the selection handle will get clipped to accommodate the selection, which is unlike what is happening here (see second image).
Description
Currently
AndroidComposeView
reads a system property to determine whether the developer option "Show layout bounds" has been enabled, and if so, every layout node draws its bounds. But we only read that value from the system when the lifecycle hosing the ACV is resumed. When the setting is changed from a quick settings tile, the activity is never paused, so it won't pick up the new setting. Android Views behave as expected: When the quick setting tile is toggled, they immediately start drawing their bounds. Compose should do the same.There is an API for registering for property changes that we might be able to use:https://cs.android.com/android/platform/superproject/+/master:frameworks/base/core/java/android/os/SystemProperties.java;l=244;drc=fcdba12869220502f025217077317251155d152f