Create shape for drawable
问题 I have ListView , and i have a background for the list items: Is there any way to recreate this background as a shape in drawable XML? The most outer grey is not part of the item background, it is actually the ListView . 回答1: You can try following with the values of your choice. It will make the bottom two corners rounded. rounded_rectangle.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape> <gradient android:angle=