问题
本来想写个Demo用下glide,虽说之前用过,但是只是简单地使用,并没有深入研究。但是,却遇到问题: 新建好项目之后,在布局中加了ImageView.
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.kite.imageloader.MainActivity">
android:id="@+id/image"
android:src="@mipmap/ic_launcher"
android:layout_width="match_parent"
android:layout_height="match_parent" />
复制代码
然后,添加glide依赖: 最后,在MainActivity中写下如下代码,以便测试:
public class MainActivity extends AppCompatActivity {
private static final String