分类页适配高 DPI 设备
This commit is contained in:
@ -55,7 +55,7 @@ class CategoryDirectoryAdapter(context: Context, var categoryTitle: String) : Li
|
||||
unexpandableCategoryList.forEachIndexed({ index, c ->
|
||||
when (index % 3) {
|
||||
0 -> {
|
||||
val params = LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.MATCH_PARENT)
|
||||
val params = LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT)
|
||||
if (subCategoryView != null) params.setMargins(0, marginTop, 0, 0)
|
||||
|
||||
subCategoryView = SubCategoryView(binding.root.context)
|
||||
|
||||
Reference in New Issue
Block a user