fix:修复首页-排行榜-RTL问题
This commit is contained in:
@@ -35,6 +35,7 @@ class HomeRankViewFlipperAdapter : BaseAdapter() {
|
||||
override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
|
||||
val view = convertView ?: LayoutInflater.from(parent.context)
|
||||
.inflate(R.layout.home_recommend_item_rank, parent, false)
|
||||
view.layoutDirection = View.LAYOUT_DIRECTION_LTR
|
||||
val rankView1 = view.findViewById<ImageView>(R.id.iv_rank_1)
|
||||
val rankView2 = view.findViewById<ImageView>(R.id.iv_rank_2)
|
||||
val rankView3 = view.findViewById<ImageView>(R.id.iv_rank_3)
|
||||
|
@@ -3,14 +3,12 @@ package com.chwl.app.home.fragment
|
||||
import android.view.View
|
||||
import android.widget.TextView
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.fragment.app.activityViewModels
|
||||
import com.chwl.app.R
|
||||
import com.chwl.app.application.IReportConstants
|
||||
import com.chwl.app.application.ReportManager
|
||||
import com.chwl.app.avroom.adapter.CommonVPAdapter
|
||||
import com.chwl.app.base.BaseViewBindingFragment
|
||||
import com.chwl.app.databinding.FragmentHomeBinding
|
||||
import com.chwl.app.home.HomeViewModel
|
||||
import com.chwl.app.home.adapter.HomeIndicatorAdapter
|
||||
import com.chwl.app.ui.search.SearchActivity
|
||||
import com.chwl.app.ui.widget.magicindicator.ViewPagerHelper
|
||||
@@ -22,8 +20,6 @@ import com.chwl.core.DemoCache
|
||||
*/
|
||||
class HomeFragment : BaseViewBindingFragment<FragmentHomeBinding>(), View.OnClickListener {
|
||||
|
||||
private val homeViewModel: HomeViewModel by activityViewModels()
|
||||
|
||||
override fun init() {
|
||||
initListener()
|
||||
initTab()
|
||||
@@ -76,8 +72,4 @@ class HomeFragment : BaseViewBindingFragment<FragmentHomeBinding>(), View.OnClic
|
||||
ViewPagerHelper.bind(binding.magicIndicator, binding.viewPager)
|
||||
binding.viewPager.isUserInputEnabled = false
|
||||
}
|
||||
|
||||
override fun onDestroyView() {
|
||||
super.onDestroyView()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user