fix:【光环助手】自定义页面的搜索显示问题 https://jira.shanqu.cc/browse/GHZSCY-7019

This commit is contained in:
叶子维
2024-11-27 14:07:54 +08:00
parent 5becdf2095
commit ac59158dbb
2 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,8 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.RelativeLayout
import androidx.core.view.updateLayoutParams
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.RecyclerView
@ -297,6 +299,9 @@ class CustomPageFragment : LazyFragment(), ISmartRefreshContent, IScrollable {
if (searchBarBinding == null) {
binding.reuseSearchBarStub.setOnInflateListener { _, inflated ->
searchBarBinding = LayoutSearchBarBinding.bind(inflated)
binding.gameRefresh.updateLayoutParams<RelativeLayout.LayoutParams> {
addRule(RelativeLayout.BELOW, R.id.reuseSearchBar)
}
initSearchBar(it)
}
binding.reuseSearchBarStub.inflate()