小编Mah*_*hen的帖子

当我使用fit()时Android Picasso没有加载图片

没有fit()它工作正常.
.Picasso.with(getApplicationContext())的负载(url.concat(featureImage))代入(ImageView的).

ImageView imageView = (ImageView)findViewById(R.id.featureImage);
TextView textTitle = (TextView)findViewById(R.id.title);
TextView textDetail = (TextView)findViewById(R.id.detail); 
 Picasso.with(getApplicationContext()).load(url.concat(featureImage)).fit().into(imageView);
textTitle.setText(title);
textDetail.setText(detail);
Run Code Online (Sandbox Code Playgroud)

android android-imageview picasso

2
推荐指数
1
解决办法
1464
查看次数

标签 统计

android ×1

android-imageview ×1

picasso ×1