我使用Glide库将图像加载到imageView中,但我不知道如何使图像捏合到可缩放
2022-09-03 18:24:53
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//Variables
ImageView imageView;
imageView = (ImageView) findViewById(R.id.imageView);
//Loading into ImageView
Glide.with(this)
.load("http://vrijeme.hr/bradar.gif")
.into(imageView);
}
我也尝试使用毕加索,然后将其与PhotoView库连接,但它没有做任何事情,当我尝试捏合缩放时,它根本没有缩放,这是该代码的一部分:
ImageView imageView;
PhotoViewAttacher photoView;
imageView = (ImageView) findViewById(R.id.imageView);
photoView = new PhotoViewAttacher(imageView);
Picasso.with(this)
.load("link")
.resize(1080,80)
.into(imageView);