0

I need to create the this kind of design.Help me.

enter image description here

Helps will be appreciated.

Noorul
  • 3,386
  • 3
  • 32
  • 54

3 Answers3

-1

create a xml file in drawable folder, and set this drawable file as your view's background. it will help you...

<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#ff25183d" />

    <!-- <stroke android:width="1dp"
         android:color="#ff666666"
         />-->

    <padding
        android:bottom="1dp"
        android:left="1dp"
        android:right="1dp"
        android:top="1dp" />

    <corners
        android:bottomLeftRadius="4dp"
        android:bottomRightRadius="4dp"
        android:topLeftRadius="4dp"
        android:topRightRadius="4dp" />
</shape>
  • i need not only round cornered.rounded from all side.. Read the question carefully and place the answer. – Noorul Oct 20 '15 at 06:20
-1

Create file in your Drawable folder

file name : round_corner.xml

<?xml version="1.0" encoding="utf-8"?>

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle" android:padding="10dp">
    <solid android:color="#000000"/>
    <corners
        android:bottomRightRadius="5dp"
        android:bottomLeftRadius="5dp"
        android:topLeftRadius="5dp"
        android:topRightRadius="5dp"/>
</shape>

And Apply background in xml file like this :

android:background="@drawable/round_corner"
  • Why the guys not listening the question before answering.. i need not only round cornered yar. even bent in side by side also. see the images carefully. and answer. – Noorul Oct 20 '15 at 06:33
-1

this is working for me just checked it.

<?xml version="1.0" encoding="utf-8"?>
<shape
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <corners
        android:radius="105dp" />
    <gradient
        android:angle="270"
  />
    <stroke
        android:width="1dp"
        android:color="#000" />
    <padding
        android:left="15dp"
        android:top="15dp"
        android:right="15dp"
        android:bottom="15dp" />
</shape>