material-components / material-components/material-components-android
[AppBarLayout] Does not expand when used with a nested CoordinatorLayout on version > 1.2.1
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Java
- Star
- 17.4k
- Fork
- 3.2k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**Description:** When we use a CoordinatorLayout nested inside another CoordinatorLayout and we define different scroll flags for each AppBarLayout, it doesn't work properly in 1.2.1 version (and 1.3.0-rc01). Note that it works correctly on 1.0.0 version.
The goal is to have an AppBarLayout with a CollapsingToolbar (scrollFlags scroll|exitUntilCollapsed|snap) in the main CoordinatorLayout and an AppBarLayout with a Toolbar (scrollFlags scroll|enterAlways|snap) in the nested CoordinatorLayout.
| Version 1.0.0 (Works as expected) | Version 1.2.1 and above (Not working) |
|---|---|
|  |  |
**Source code:**
Project:
https://github.com/serbelga/NestedCoordinatorLayout
Layout:
https://github.com/serbelga/NestedCoordinatorLayout/blob/24d3012553ab917df35360157c0654be4dfd638d/app/src/main/res/layout/activity_coordinator.xml#L32-L52
**Android API version:** Android API 30
**Material Library version:** 1.2.1
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với bản tái hiện NestedCoordinatorLayout được liên kết và các dòng 32-52 trong app/src/main/res/layout/activity_coordinator.xml, so sánh hành vi giữa Material Library 1.0.0 và 1.2.1 hoặc mới hơn trên Android API 30. Theo dõi tương tác giữa CoordinatorLayout lồng nhau và AppBarLayout; được xem là hoàn tất khi CollapsingToolbar bên ngoài và Toolbar bên trong tuân theo các cờ cuộn riêng biệt của chúng và mở rộng hoặc thu gọn như trong phiên bản hoạt động đúng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- mobile
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100