当前位置:网站首页>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);
}
边栏推荐
- 如何獲取GC(垃圾回收器)的STW(暫停)時間?
- 《剑来》语句摘录(七)
- Kotlin Compose 多个条目滚动
- .Net之延迟队列
- MySQL character type learning notes
- 盗版DALL·E成梗图之王?日产5万张图像,挤爆抱抱脸服务器,OpenAI勒令改名
- (1) Complete the new construction of station in Niagara vykon N4 supervisor 4.8 software
- Comparison of batch merge between Oracle and MySQL
- Kotlin compose and native nesting
- How to implement complex SQL such as distributed database sub query and join?
猜你喜欢
mysql80服务不启动
TDengine × Intel edge insight software package accelerates the digital transformation of traditional industries
Why don't you recommend using products like mongodb to replace time series databases?
[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode
From "chemist" to developer, from Oracle to tdengine, two important choices in my life
Common fault analysis and Countermeasures of using MySQL in go language
Mysql80 service does not start
Application of data modeling based on wide table
[tips] get the x-axis and y-axis values of cdfplot function in MATLAB
Tdengine connector goes online Google Data Studio app store
随机推荐
[200 opencv routines] 219 Add digital watermark (blind watermark)
Six simple cases of QT
能源势动:电力行业的碳中和该如何实现?
MySQL字符类型学习笔记
Node-RED系列(二九):使用slider与chart节点来实现双折线时间序列图
Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
How to correctly evaluate video image quality
单片机原理与接口技术(ESP8266/ESP32)机器人类草稿
Android SQLite database encryption
From "chemist" to developer, from Oracle to tdengine, two important choices in my life
卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程
Apache DolphinScheduler 入门(一篇就够了)
How Windows bat script automatically executes sqlcipher command
The essence of persuasion is to remove obstacles
Flutter development: use safearea
Cross process communication Aidl
把欧拉的创新带向世界 SUSE 要做那个引路人
驱动制造业产业升级新思路的领域知识网络,什么来头?
cent7安装Oracle数据库报错