Siva Natarajan
Siva Natarajan

Reputation: 1429

Applying style EditText elements

I'm developing a an Android Application.

To make the UI more attractive i want to shrunk the EditText text and apply background color and shape.

I must also be able to remove that element from EditText.

Have a look at this Google plus App

Upvotes: 0

Views: 483

Answers (1)

Arif Nadeem
Arif Nadeem

Reputation: 8604

Use this as an Xml file to round your EditText and set the color to whatever you want...

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
    <solid android:color="#eeffffff" />
    <corners android:bottomRightRadius="8dip"
        android:bottomLeftRadius="8dip"  android:topRightRadius="8dip"
        android:topLeftRadius="8dip"/>
</shape>

Upvotes: 1

Related Questions