Hi, all B4A devs 
How can I create a rounded corner of pressedDrawable that I get through the following code:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I tried to convert it to rounded corner color drawable by using the following code:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
But it caused the following error:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Your help is really appreciated!
			
			How can I create a rounded corner of pressedDrawable that I get through the following code:
			
				B4X:
			
		
		
		    Dim pressedDrawable As Object
    Dim r As Reflector
    Dim idPressed As Int
       idPressed = r.GetStaticField("android.R$drawable", "list_selector_background")
    r.Target = r.GetContext
    r.Target = r.RunMethod("getResources")
    pressedDrawable = r.RunMethod2("getDrawable", idPressed, "java.lang.int")I tried to convert it to rounded corner color drawable by using the following code:
			
				B4X:
			
		
		
		Dim Rounded_pressedcolor As ColorDrawable
    Rounded_pressedcolor.Initialize(pressedDrawable,40dip)But it caused the following error:
			
				B4X:
			
		
		
		java.lang.NumberFormatException: Invalid double: "android.graphics.drawable.StateListDrawable@16b4d1ec"Your help is really appreciated!
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		