Can a drawable shape have it's size set to fill_parent?
问题 Is it valid for a drawable shape in Android to use fill_parent for it's size? <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <solid android:color="#666666"/> <size android:width="fill_parent" android:height="fill_parent"/> </shape> EDIT This for the background of ImageButton views. I want the icon for the button to have a circle behind it, but I don't always know what the size of the button will be (different sizes per layout). 回答1: Not really. Not