Skip to content

Commit e7bfd51

Browse files
committed
修改ExpandableLinearLayout
1 parent a91d266 commit e7bfd51

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

viewlib/src/main/java/com/chaychan/viewlib/ExpandableLinearLayout.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ public ExpandableLinearLayout(Context context, AttributeSet attrs, int defStyleA
6969

7070

7171
public void addItem(View view) {
72-
llContainer.addView(view);
72+
LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
73+
llContainer.addView(view,params);
7374
refreshUI();
7475
}
7576

0 commit comments

Comments
 (0)