android开发的知识点(一)

1.android中背景图的设置:

将背景图放入到项目中的res/drawable-hdpi或res/drawable-mdpi或res/drawable-xhdpi或res/drawable-xxhdpi等任一文件夹下。然后在layout的xml文件夹下使用android:background="@drawable/背景图名",其中背景图必须是png格式的图片。

原文地址:https://www.cnblogs.com/Aaronqcd/p/4724812.html