File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
java/id/co/edtslib/swipebottomview Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,12 @@ class SwipeBottomView: FrameLayout {
103103 TextViewCompat .setTextAppearance(tvTitle, textStyle)
104104 }
105105
106+ val backgroundColor = a.getColor(R .styleable.SwipeBottomView_backgroundColor , 0 )
107+ if (backgroundColor != 0 ) {
108+ val slidingUpPanel = findViewById<View >(R .id.slidingUpPanel)
109+ slidingUpPanel.setBackgroundColor(backgroundColor)
110+ }
111+
106112 val contentPadding = a.getDimension(R .styleable.SwipeBottomView_contentPadding , - 1f )
107113 if (contentPadding >= 0 ) {
108114 val clContent = findViewById<ConstraintLayout >(R .id.clContent)
Original file line number Diff line number Diff line change 88 <attr name =" bottom" format =" reference" />
99 <attr name =" initialHeightPct" format =" float" />
1010 <attr name =" contentPadding" format =" dimension" />
11+ <attr name =" backgroundColor" format =" color" />
1112 </declare-styleable >
1213</resources >
You can’t perform that action at this time.
0 commit comments