style(content): 주석 오디오 너비 계산 줄바꿈을 정리한다
This commit is contained in:
@@ -26,7 +26,8 @@ class ContentCommentedAudioAdapter(
|
|||||||
|
|
||||||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
|
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
|
||||||
val binding = ItemContentCommentedAudioBinding.inflate(LayoutInflater.from(parent.context), parent, false).apply {
|
val binding = ItemContentCommentedAudioBinding.inflate(LayoutInflater.from(parent.context), parent, false).apply {
|
||||||
root.layoutParams.width = parent.resources.displayMetrics.widthPixels - (CONTENT_HORIZONTAL_MARGIN_DP * 2).dpToPx().toInt()
|
root.layoutParams.width =
|
||||||
|
parent.resources.displayMetrics.widthPixels - (CONTENT_HORIZONTAL_MARGIN_DP * 2).dpToPx().toInt()
|
||||||
}
|
}
|
||||||
return ViewHolder(
|
return ViewHolder(
|
||||||
binding,
|
binding,
|
||||||
|
|||||||
Reference in New Issue
Block a user