1,如何动态加载网络图
2,如何实现游戏中的语音交互
我攒了半年零花钱500元。谁能帮帮我 就只有这么多了 有没有大手愿意帮帮我
两个cocoscreator的小问题 酬谢500
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
4条回答 默认 最新
Minuw 2022-12-12 08:06关注int i=0; if (!StringUtil.isEmpty(fdProdSummary) && matcherSummary.groupCount() != 0) { fdProdSummarys = new String[matcherSummary.groupCount()]; matcherSummary.find(); for(;i<matcherSummary.groupCount();i++) { fdProdSummarys[i] = matcherSummary.group(); OOMImageView imv = new OOMImageView(context); imv.setScaleType(ScaleType.FIT_CENTER); DisplayMetrics dm = new DisplayMetrics(); ((Activity)context).getWindowManager().getDefaultDisplay().getMetrics(dm); int W = dm.widthPixels; int H = (int) (473.0 / 947.0*W); LinearLayout.LayoutParams llp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT); llp.setMargins(25, 0, 25, 70); imv.setLayoutParams(llp); BitmapManage.getInstance(context).get(fdProdSummarys[i], imv); productImgsContainer.addView(imv); // W*H 947/473 /*<ImageView android:layout_width="match_parent" android:layout_height="150dp" android:layout_marginBottom="70dp" android:layout_marginLeft="25dp" android:layout_marginRight="25dp" android:scaleType="fitXY" android:src="@drawable/logo_pgg_p" />*/ } }解决 无用评论 打赏 举报 编辑记录