Status Update
Comments
ma...@google.com <ma...@google.com>
al...@mercari.com <al...@mercari.com> #2
Branch: androidx-main
commit cb1afd67dacbf14cd22206c6f5b543dbf18cec1f
Author: Tony Mak <tonymak@google.com>
Date: Thu Jan 06 14:52:58 2022
Deprecate all the APIs in textclassifier
Bug: 210509084
Test: Check api/current.txt and ensure all classes are deprecated
Relnote: "Deprecate all the APIs in the textclassifier module"
Change-Id: Idc18063196531c0e926162fefeadf2dc5f559da1
M textclassifier/textclassifier/src/main/java/androidx/textclassifier/TextSelection.java
M textclassifier/textclassifier/src/main/java/androidx/textclassifier/TextLinks.java
M textclassifier/textclassifier/src/main/java/androidx/textclassifier/TextClassificationSessionId.java
M textclassifier/textclassifier/api/public_plus_experimental_current.txt
M textclassifier/textclassifier/src/main/java/androidx/textclassifier/TextClassification.java
M textclassifier/textclassifier/src/main/java/androidx/textclassifier/TextClassificationManager.java
M textclassifier/textclassifier/api/current.txt
M textclassifier/textclassifier/src/main/java/androidx/textclassifier/TextClassificationContext.java
M textclassifier/textclassifier/src/main/java/androidx/textclassifier/TextLinksParams.java
M textclassifier/textclassifier/api/restricted_current.txt
M textclassifier/textclassifier/src/main/java/androidx/textclassifier/ConversationAction.java
M textclassifier/textclassifier/src/main/java/androidx/textclassifier/TextClassifier.java
M textclassifier/textclassifier/src/main/java/androidx/textclassifier/ConversationActions.java
M textclassifier/textclassifier/src/main/java/androidx/textclassifier/ExtrasUtils.java
an...@google.com <an...@google.com> #3
Is there any update when the alpha04 will be available? We need it to target api 31 because of the PendingIntent mutability flags missing in alpha03.
le...@google.com <le...@google.com>
ap...@google.com <ap...@google.com> #4
I'll schedule it for the next release. Note that alpha04
is a complete turn-down of the library where all APIs are marked as Deprecated
, so you'll also want to start removing your usages of the library.
na...@google.com <na...@google.com> #5
Branch: androidx-main
commit 19ed7e69823a09f3c63f8c8cdf339af8ca1645ab
Author: Alan Viverette <alanv@google.com>
Date: Mon Mar 14 15:18:16 2022
Bump textclassifier for final release and turn-down
Bug: 210509084
Change-Id: Ib8b2386903bb49baa3211f7de7fe1587fdda1483
Test: ./gradlew checkApi
M libraryversions.toml
ch...@gmail.com <ch...@gmail.com> #6
Bugjuggler: wait until 2022-03-23
le...@google.com <le...@google.com> #7
do...@gmail.com <do...@gmail.com> #8
Is there a replacement or should we just abandon TextClassifier for android older than API Level 26 ?
le...@google.com <le...@google.com>
fr...@gmail.com <fr...@gmail.com> #9
Abandon. The owning team had no plans to release a replacement library.
as...@google.com <as...@google.com>
aj...@physics.msu.ru <aj...@physics.msu.ru> #10
go...@umito.nl <go...@umito.nl> #11
Looking for this feature in LazyColumn.
go...@umito.nl <go...@umito.nl> #12
Any updates on this?
tp...@gmail.com <tp...@gmail.com> #13
as...@google.com <as...@google.com> #14
We are looking into creating custom prefetcher APIs to address this feature.
de...@gmail.com <de...@gmail.com> #15
an...@google.com <an...@google.com>
an...@google.com <an...@google.com> #16
We have api for that in Pager already, but we are not sure about adding the same api into lists or grids.
Do you need it in order to improve the performance only? Will it help if we instead make it easier to tweak when and what items are being prefetched? The important difference here is that prefetch is not blocking the main thread and is only trying to load next item when the main thread is free, while apis like `beyondViewportPageCount` from `HorizontalPager` are eating the main thread time while we compose the items users need to see right now, even that those extra items are not visible yet.
do...@gmail.com <do...@gmail.com> #17
go...@umito.nl <go...@umito.nl> #18
For my app, I have a list of xml lines that are heavily formatted and processed. I need to use a lazy listview with an item per line for it to render properly. However on slower devices it scrolls with hiccups because it doesn't prerender a few items in advance.
I am still a Compose newbie, but from what I understand it's not possible to do this in a non recomposing way: determine optimal linebreaking for xml formatting. So it recomposes a few times to determine optimal layout. A render ahead option would at least make this not visible.
wa...@gmail.com <wa...@gmail.com> #19
+111111111111111111111
an...@google.com <an...@google.com> #20
Writing "+1" is not helping to increase the priority for the request as we are currently collecting exact use cases for this api as mentioned in
fr...@gmail.com <fr...@gmail.com> #21
For my app I had a list/grid of videos that needed to open/close websockets while I scroll. Without offscreen loading, the loading of videos was too slow. I tried to load items offscreen using firstItemIndex, but since my list was highly customizable (multiple columns, dynamic items count on screen) it was pretty terrible.
wa...@gmail.com <wa...@gmail.com> #22
I am developing a continuous sliding interface for vertical galleries, and I hope to be able to render 2-4 pages off screen in advance, rather than having users slide to the next page and load it again
an...@google.com <an...@google.com> #23
From what we hear so far most of the use cases can be solved by prefetching adjacent items. Prefetch is our mechanism of composing and measuring extra items when the main thread is idle. Right now we only prefetch one extra item in the direction of scroll and we are considering tweaking this logic to prefetch more items by default and also make this logic configurable. We already created a simple experimental api for users to try to play with changing the logic completely (beyondViewportPageCount
from HorizontalPager
is when you really need to compose the adjacent items together with the visible items because you want the whole Paget to set its height to the height of the larger page including those extra item. As otherwise the height will be only using the heights of the currently visible items and "jump" once you scroll to the new larger page. For that use case we introduced this api into Pager, but are not seeing good reasons to add it into lazy lists for now
le...@google.com <le...@google.com>
bl...@gmail.com <bl...@gmail.com> #24
Do you need it in order to improve the performance only?
For me, yes
Will it help if we instead make it easier to tweak when and what items are being prefetched?
Yes. It would be helpful if I can just set a prefetch = 5
parameter.
The important difference here is that prefetch is not blocking the main thread and is only trying to load next item when the main thread is free
For me, that is fine.
Description
Requesting for an API to preload offscreen items in a LazyColumn. Currently I didn't find a way to do so.
Example Use case:
My request is similar to the following APIs: