<linearlayout xmlns:android="Http://schemas.android.com/apk/res/android"xmlns:fresco="Http://schemas.android.com/apk/res-auto"Android:layout_width="Match_parent"android:layout_height="Match_parent"android:gravity="Center_horizontal"android:orientation="Vertical"> <button android:id="@+id/xml_bt_xml_loading"Android:layout_width="Match_parent"android:layout_height="45DP"android:text="Show loading"/> <com.facebook.drawee.view.simpledraweeview android:layout_width="350DP"android:layout_height="400DP" //Set Picture of loading 0Fresco:progressbarimage="@mipmap/iconfont_loading" //Set the zoom of the loading pictureFresco:progressbarimagescaletype="Center"Android:id="@+id/xml_loading_iv_show"/></linearlayout>
simpleDraweeView= (SimpleDraweeView) findViewById(R.id.xml_loading_iv_show);simpleDraweeView.setImageURI(Uri.parse(uri));
Fresco (various effects)--loading effects