Rounded corner support and crash fix

Added rounded corner support and fixed infinite loop when using rippleInAdapter