Windows 7 button like (but rounded) Android buttons

Screen Shot 2014-02-10 at 1.01.02 AM

 

On activity code:


<Button

android:id="@+id/button24"

style="?android:attr/buttonStyleSmall"

android:layout_height="match_parent"

android:text="C"

android:textStyle="bold"

android:background="@drawable/idle_crimson"/>

On res/drawable/idle_crimson.xml


<shape xmlns:android="http://schemas.android.com/apk/res/android"

android:shape="rectangle" >

<!-- you can use any color you want I used here gray color-->

<solid android:color="#a20025"/>

<corners

android:bottomRightRadius="5dp"

android:bottomLeftRadius="5dp"

android:topLeftRadius="5dp"

android:topRightRadius="5dp"/>

<stroke

android:width="2dp"

android:color="#000000" />

</shape>

I got these colours from: google(“Windows 7 color scheme codes”);

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s