How can I make a layout with rounded corners? I want to apply rounded corners to my LinearLayout.
LinearLayout
I have done this way:
Check Screenshot:
Create drawable file named with custom_rectangle.xml in drawable folder:
custom_rectangle.xml
Now apply Rectangle background on View:
mView.setBackground(R.drawlable.custom_rectangle);
Done