Addy Addy - 1 year ago 123
Android Question

How to make layout with rounded corners..?

Please anyone can help me . How to make layout with

rounded corners
i want to apply rounded corners to my

Answer Source

1: Define layout_bg.xml in drawables:

<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="">
    <solid android:color="#FFFFFF"/>
    <stroke android:width="3dip" android:color="#B1BCBE" />
    <corners android:radius="10dip"/>
    <padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" />

2: Add layout_bg.xml as background to your layout

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download