作者:_Vision_破晓 | 来源:互联网 | 2023-09-05 17:07
本文整理了Java中android.support.v7.widget.RecyclerView.setEnabled
方法的一些代码示例,展示了RecyclerView.setEnabled
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RecyclerView.setEnabled
方法的具体详情如下:
包路径:android.support.v7.widget.RecyclerView
类名称:RecyclerView
方法名:setEnabled
RecyclerView.setEnabled介绍
暂无
代码示例
代码示例来源:origin: naman14/Timber
collapsingToolbarLayout = (CollapsingToolbarLayout) rootView.findViewById(R.id.collapsing_toolbar);
appBarLayout = (AppBarLayout) rootView.findViewById(R.id.app_bar);
recyclerView.setEnabled(false);
recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
代码示例来源:origin: enricocid/iven-feed-reader
public void onClick(DialogInterface dialog, int which) {
//enable ListView clicks
customFeedsRecyclerView.setEnabled(true);
}
})
代码示例来源:origin: enricocid/iven-feed-reader
customFeedsRecyclerView.setEnabled(false);
customFeedsRecyclerView.setEnabled(true);
public void onCancel(DialogInterface dialog) {
customFeedsRecyclerView.setEnabled(true);
代码示例来源:origin: brainysoon/cyberCar
collapsingToolbarLayout = (CollapsingToolbarLayout) rootView.findViewById(R.id.collapsing_toolbar);
appBarLayout = (AppBarLayout) rootView.findViewById(R.id.app_bar);
recyclerView.setEnabled(false);
recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
代码示例来源:origin: rohanoid5/Muzesto
collapsingToolbarLayout = (CollapsingToolbarLayout) rootView.findViewById(R.id.collapsing_toolbar);
appBarLayout = (AppBarLayout) rootView.findViewById(R.id.app_bar);
recyclerView.setEnabled(false);
recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
代码示例来源:origin: mengzhidaren/RecyclerViewVideoDemo
public void setFullVideo(boolean fullVideo) {
AppCompatActivity activity = (AppCompatActivity) getContext();
if (fullVideo) {
saveOldParams();//保存全屏之前的参数
activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
} else {
activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
isFullState = fullVideo;
if (fullVideo) {
//hide actionbar
if (activity.getSupportActionBar() != null)
activity.getSupportActionBar().hide();
recyclerRoot.setEnabled(false);
changeMaxState();
setScaleRecoverView();
} else {
//show actionbar
if (activity.getSupportActionBar() != null)
activity.getSupportActionBar().show();
recyclerRoot.setEnabled(true);
setScaleVideo();
}
}