Made xml markup for the item.xml background, which will be a list item. Here is the code:

<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <corners android:radius="100dp" /> <gradient android:angle="45" android:startColor="#fff" android:endColor="#fff" android:type="linear" /> <padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" /> </shape> 

How to make the picture now so that there is an internal glow enter image description here

  • one
    What is the internal glow? How can you explain your details in more detail? - Barmaley
  • one
    It is simply drawn. no "inner glow" actually exists. - pavlofff
  • I understand what is drawn. I would like to know if it is possible to make a bluish same blurry frame through xml? - Jason Statham

1 answer 1

They say you can do this:

 <?xml version="1.0" encoding="UTF-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape android:shape="rectangle" > <gradient android:angle="360" android:centerColor="#e95a22" android:endColor="#ff00b5" android:gradientRadius="360" android:startColor="#006386" android:type="sweep" /> <stroke android:width="2dp" android:color="#ff207d94" /> </shape> </item> <item android:bottom="2dp" android:left="2dp" android:right="2dp" android:top="2dp"> <shape android:shape="rectangle" > <solid android:color="#fff" /> </shape> </item> </layer-list> 

Here the colors are not like you want, but this is not a problem, right?

Original here