florent37/ExpansionPanel là một trong những repo tập trung di động mà TopGit theo dõi, hiện có 2.0k sao, viết chủ yếu bằng Java. Android - Expansion panels contain creation flows and allow lightweight editing of an element.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
You can setup multiple expansions layout to enable only 1 opened at time
final ExpansionLayoutCollection expansionLayoutCollection = new ExpansionLayoutCollection();
expansionLayoutCollection.add(ex1);
expansionLayoutCollection.add(ex2);
expansionLayoutCollection.openOnlyOne(true);
public class MyRecyclerAdapter extends RecyclerView.Adapter<MyRecyclerHolder> {
...
//add an ExpansionLayoutCollection to your recycler adapter
private final ExpansionLayoutCollection expansionsCollection = new ExpansionLayoutCollection();
@Override
public void onBindViewHolder(MyRecyclerHolder holder, int position) {
//bind your elements
//just add the ExpansionLayout (with findViewById) to the expansionsCollection
expansionsCollection.add(holder.getExpansionLayout());
}
}
Single Listener
Update gradle, add ability to have only one listener at time
For what? If you tried to debug ViewHolders with this layout,
then you might notice that over time addListener continues to add a listener,
which causes a lot of unnecessary listeners and, moreover,
there can be many listeners to one layouts in different ViewHolders due to which it may cause logic breakdown
var isExpanded = false
expandableLayout.run {
//expandableLayout.singleListener = true
singleListener = true
expandableLayout.addListener { expansionLayout, expanded ->
isExpanded = expanded
}
//do not toggle (expand/collapse, etc) before add listener
if (isExpanded)
expand(false)
else
collapse(false)
}
Copyright 2017 Florent37, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
florent37/ExpansionPanel có 2.0k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/florent37/ExpansionPanel. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
florent37/ExpansionPanel có những chủ đề gì?
GitHub topics của florent37/ExpansionPanel: "android", "androidx", "close", "expansion", "expansion-panels", "layout", "material", "open", "toggle", "view". TopGit xếp repo vào nhóm Mobile.
florent37/ExpansionPanel còn đang phát triển không?
Commit gần nhất trên florent37/ExpansionPanel là 6.4 năm trước (theo timestamp GitHub). Repo có 236 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
florent37/ExpansionPanel là gì?
florent37/ExpansionPanel (florent37/ExpansionPanel) là dự án Java trên GitHub. Theo mô tả gốc: Android - Expansion panels contain creation flows and allow lightweight editing of an element.
florent37/ExpansionPanel so với các dự án Mobile khác thế nào?
florent37/ExpansionPanel được TopGit xếp vào nhóm Mobile, với 2.0k sao GitHub và viết bằng Java. Xem trang chủ đề Mobile trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
florent37/ExpansionPanel viết bằng ngôn ngữ gì?
florent37/ExpansionPanel chủ yếu viết bằng Java. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Vì sao florent37/ExpansionPanel được xếp vào nhóm Mobile?
TopGit xếp florent37/ExpansionPanel vào nhóm Mobile dựa trên GitHub topics và mô tả của repo (gắn thẻ: "android", "androidx", "close"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
ExpansionPanel có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về ExpansionPanel.