|
|
|
|
@ -2,6 +2,7 @@ package com.fongmi.android.tv.ui.activity; |
|
|
|
|
|
|
|
|
|
import android.app.Activity; |
|
|
|
|
import android.content.Intent; |
|
|
|
|
import android.util.Log; |
|
|
|
|
import android.view.KeyEvent; |
|
|
|
|
import android.view.View; |
|
|
|
|
import android.view.ViewGroup; |
|
|
|
|
@ -102,6 +103,7 @@ public class VodActivity extends BaseActivity implements TypePresenter.OnClickLi |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setRecyclerView() { |
|
|
|
|
mBinding.recycler.requestFocus(); |
|
|
|
|
mBinding.recycler.setHorizontalSpacing(ResUtil.dp2px(16)); |
|
|
|
|
mBinding.recycler.setRowHeight(ViewGroup.LayoutParams.WRAP_CONTENT); |
|
|
|
|
mBinding.recycler.setAdapter(new ItemBridgeAdapter(mAdapter = new ArrayObjectAdapter(new TypePresenter(this)))); |
|
|
|
|
@ -126,7 +128,12 @@ public class VodActivity extends BaseActivity implements TypePresenter.OnClickLi |
|
|
|
|
|
|
|
|
|
private void onChildSelected(@Nullable RecyclerView.ViewHolder child) { |
|
|
|
|
if (mOldView != null) mOldView.setActivated(false); |
|
|
|
|
if (child == null) return; |
|
|
|
|
if (child == null) { |
|
|
|
|
Log.e("DDD", "DDD"); |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
Log.e("DDD", "1"); |
|
|
|
|
mOldView = child.itemView; |
|
|
|
|
mOldView.setActivated(true); |
|
|
|
|
App.post(mRunnable, 100); |
|
|
|
|
|