Status Update
Comments
ad...@google.com <ad...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
Author: Aurimas Liutikas <
Link:
Bump asynclayoutinflater to 1.1.0-beta01
Expand for full commit details
Bump asynclayoutinflater to 1.1.0-beta01
Bug: 399115645
Test: ./gradlew -p asynclayoutinflater updateApi
Change-Id: I4b3b530da253fc274eaf281a7c82556fcd463ebd
Files:
- A
asynclayoutinflater/asynclayoutinflater-appcompat/api/1.1.0-beta01.txt
- A
asynclayoutinflater/asynclayoutinflater-appcompat/api/res-1.1.0-beta01.txt
- A
asynclayoutinflater/asynclayoutinflater-appcompat/api/restricted_1.1.0-beta01.txt
- M
asynclayoutinflater/asynclayoutinflater-appcompat/build.gradle
- A
asynclayoutinflater/asynclayoutinflater/api/1.1.0-beta01.txt
- A
asynclayoutinflater/asynclayoutinflater/api/res-1.1.0-beta01.txt
- A
asynclayoutinflater/asynclayoutinflater/api/restricted_1.1.0-beta01.txt
- M
libraryversions.toml
Hash: 5289ee6eecef7e8e62ece97f9a0e32213562fe36
Date: Tue Feb 25 11:27:57 2025
[Deleted User] <[Deleted User]> #3
sa...@google.com <sa...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
Author: Aurimas Liutikas <
Link:
Move asynclayoutinflater to 1.1.0-rc01
Expand for full commit details
Move asynclayoutinflater to 1.1.0-rc01
Test: None
Bug: 399115645
Change-Id: I3972a338368be5dbd8d5dca93796e27473e712e2
Files:
- M
libraryversions.toml
Hash: aac73804f3a14baecefcfefafab9801966dd18e6
Date: Wed Mar 05 17:14:53 2025
cc...@google.com <cc...@google.com>
cc...@google.com <cc...@google.com>
sh...@google.com <sh...@google.com> #5
Scheduled a release of 1.1.0-rc01 for March 26, 2025
sh...@google.com <sh...@google.com> #6
One quick note is that RV doesn't behave particularly well when items "virtually removed" by means of setting the item's height to 0, so it may be best to avoid the cause of this bug anyway.
For example, when an item is "removed" via its height being set to 0, the following issues can occur:
- Scrollbar height estimation can be thrown way off.
- Views will still be created and take up space in memory even though nothing is being shown.
When feasible, removing the item from the RV is often better than virtually removing it.
Description
Version used: 27.1.1
Theme used:
Devices/Android versions reproduced on: any device
How to reproduce :
Project from the attachment when you try it,
pull to refresh will not work because recyclerview_row_header.xml content is wrap_content and view inside is gone (resulting recyclerview_row_header layout 0dp)
change visibility of the textView inside recyclerview_row_header.xml from gone to visible, or put minHeight=1dp to the root layout in the recyclerview_row_header.xml, and pull to refresh is working again
is that expected?
not working if
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp"
android:visibility="gone"/>
</LinearLayout>
```
working if
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="1dp"
android:orientation="horizontal">
<TextView
android:id="@+id/title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp"
android:visibility="gone"/>
</LinearLayout>
```
or
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp"/>
</LinearLayout>
```
- Relevant code to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).