一、概述:
1、原文地址:​​​http://square.github.io/picasso/​​​
2、API文档:​​​http://square.github.io/picasso/2.x/picasso/​​​
3、在gradle添加 compile ‘com.squareup.picasso:picasso:2.5.2’

———————————————————————

二、使用方法:

public class PicassoActivityFragment extends Fragment implements View.OnClickListener {

@InjectView(R.id.btn_down)
protected Button btnDown;
@InjectView(R.id.iv_down)
protected ImageView ivDown;

public PicassoActivityFragment() {
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_picasso, container, false);
ButterKnife.inject(getActivity());

btnDown.setOnClickListener(this);
return view;
}


@Override
public void onClick(View view) {
if (view == btnDown){
RequestCreator creator = Picasso.with(getActivity()).load("http://cdn.duitang.com/uploads/blog/201310/05/20131005152937_GGAmZ.thumb.600_0.jpeg");
//fit让图片自动适应
creator.rotate(50).fit().into(ivDown);
}
}
}