Skip to content

Commit

Permalink
🔖 发布 6.5.0
Browse files Browse the repository at this point in the history
本版本更新如下功能:
1、体育打卡
2、消息中心
3、新版校车
  • Loading branch information
985892345 committed Aug 30, 2022
1 parent 5a0666b commit 861c1ad
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import android.content.Context
import android.content.res.TypedArray
import android.graphics.*
import android.util.AttributeSet
import android.util.Log
import android.util.TypedValue
import android.view.Gravity
import android.view.View
Expand Down Expand Up @@ -173,12 +172,10 @@ open class JCardViewPlus(context: Context, attrs: AttributeSet?, defStyleAttr: I
}
val parentLeft = paddingLeft + contentPaddingLeft
val parentTop = paddingTop + contentPaddingTop
Log.d("ggg", "(JCardViewPlus.kt:175) -> parentTop = $parentTop paddingTop = $paddingTop contentPaddingTop = $contentPaddingTop")
val child = getChildAt(0)
val lp = child.layoutParams as LayoutParams
val childLeft = parentLeft + lp.leftMargin
val childTop = parentTop + lp.topMargin
Log.d("ggg", "(JCardViewPlus.kt:181) -> childTop = $childTop")
child.layout(childLeft, childTop, childLeft + child.measuredWidth, childTop + child.measuredHeight)
// layoutChildren(left, top, right, bottom)
}
Expand Down

0 comments on commit 861c1ad

Please sign in to comment.