今天添加一个背景 想换一下背景左上标的位置问题,不是出现在屏幕左上角 而是换一个
没有找到vapi后来发现:
"res/drawables/my_drawable.xml"
<?xml version="1.0" encoding="utf-8"?>
<bitmap
xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/my_png_file"
android:gravity="bottom|left" />
然后将它作为背景就可以了
设置drawable xml 作为view background ("@drawables/my_drawable").