当前位置:网站首页>La vue latérale du cycle affiche cinq demi - écrans en dessous de cinq distributions moyennes
La vue latérale du cycle affiche cinq demi - écrans en dessous de cinq distributions moyennes
2022-07-05 10:11:00 【Une sculpture dans le désert.】
@Override
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View itemView = mInflater.inflate(R.layout.layout_item_hq_cn_icon, parent, false);
int columnWidth;
if (mDataSet.size() > 5) {
columnWidth = (int) (parent.getMeasuredWidth() / 5.57f);
} else {
columnWidth = (int) (parent.getMeasuredWidth() / mDataSet.size());
}
RecyclerView.LayoutParams lp = new RecyclerView.LayoutParams(columnWidth, RecyclerView.LayoutParams.WRAP_CONTENT);
itemView.setLayoutParams(lp);
return ViewHolder.createViewHolder(mContext, itemView);
}
边栏推荐
- 基于单片机步进电机控制器设计(正转反转指示灯挡位)
- 程序员如何活成自己喜欢的模样?
- 宝塔面板MySQL无法启动
- 盗版DALL·E成梗图之王?日产5万张图像,挤爆抱抱脸服务器,OpenAI勒令改名
- Baidu app's continuous integration practice based on pipeline as code
- 天龙八部TLBB系列 - 关于包裹掉落的物品
- The essence of persuasion is to remove obstacles
- Generics, generic defects and application scenarios that 90% of people don't understand
- Jupiter notebook shortcut key
- cent7安装Oracle数据库报错
猜你喜欢
Cerebral cortex: directed brain connection recognition widespread functional network abnormalities in Parkinson's disease
Energy momentum: how to achieve carbon neutralization in the power industry?
[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode
Windows uses commands to run kotlin
程序员搞开源,读什么书最合适?
【 conseils 】 obtenir les valeurs des axes X et y de la fonction cdfplot dans MATLAB
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
. Net delay queue
Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
随机推荐
Zblogphp breadcrumb navigation code
剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...
Evolution of Baidu intelligent applet patrol scheduling scheme
View Slide
To bring Euler's innovation to the world, SUSE should be the guide
Tianlong Babu TLBB series - single skill group injury
Meitu lost 300 million yuan in currency speculation for half a year. Huawei was exposed to expand its enrollment in Russia. Alphago's peers have made another breakthrough in chess. Today, more big new
Comment obtenir le temps STW du GC (collecteur d'ordures)?
Charm of code language
Understand the window query function of tdengine in one article
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
Solve the problem of no all pattern found during Navicat activation and registration
Kotlin compose multiple item scrolling
Coordinate system of view
善用兵者,藏于无形,90 分钟深度讲解最佳推广价值作品
ThreadLocal source code learning
Implementation of smart home project
硬核,你见过机器人玩“密室逃脱”吗?(附代码)
Flutter development: a way to solve the problem of blank space on the top of listview
Mobile heterogeneous computing technology GPU OpenCL programming (Advanced)