微调个人主页UI

This commit is contained in:
chenjuntao
2019-10-09 17:02:15 +08:00
parent fe4dc13b84
commit a21ceabfdf
5 changed files with 15 additions and 14 deletions

View File

@ -80,7 +80,7 @@ class UserHistoryFragment : ListFragment<PersonalHistoryEntity, UserHistoryViewM
val contentList = UserHistoryViewModel.TYPE.TYPE_LIST
val inflater = LayoutInflater.from(filterBtn.context)
val layout = inflater.inflate(R.layout.game_comment_hint, null)
val layout = inflater.inflate(R.layout.layout_user_history_filter, null)
val popupWindow = PopupWindow(
layout,
LinearLayout.LayoutParams.WRAP_CONTENT,

View File

@ -1,7 +1,9 @@
package com.gh.gamecenter.personalhome.home
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.View
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.gh.common.util.DisplayUtils
@ -45,6 +47,7 @@ class UserVideoHistoryFragment : ListFragment<PersonalHistoryEntity, UserVideoHi
}
}
mListRv.layoutManager = gridLayoutManager
mListRv.background = ColorDrawable(ContextCompat.getColor(requireContext(), R.color.white))
mListRv.setPadding(DisplayUtils.dip2px(20f), 0, DisplayUtils.dip2px(20f), 0)
}