Merge branch 'dev' of gitlab.ghzhushou.com:halo/assistant-android into dev

# Conflicts:
#	app/src/main/res/layout/game_horizontal_list.xml
This commit is contained in:
kehaoyuan
2018-06-28 15:50:01 +08:00
5 changed files with 17 additions and 9 deletions

View File

@ -1,6 +1,7 @@
package com.gh.common.view
import android.content.Context
import android.os.Build
import android.support.v4.view.NestedScrollingParent
import android.support.v7.widget.RecyclerView
import android.util.AttributeSet
@ -84,7 +85,9 @@ open class NestedRecyclerView : RecyclerView, NestedScrollingParent {
nestedScrollTargetWasUnableToScroll = false
}
super.onNestedScrollAccepted(child, target, axes)
if (Build.VERSION.SDK_INT >= 21) {
super.onNestedScrollAccepted(child, target, axes)
}
}

View File

@ -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)