PowenKo, Android Tutorial 086-2, image process,How to BAKE rounded corners

September 1, 2011   ·   0 Comments

How to BAKE rounded corners


res\drawable\word1_word2

<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <stroke android:width="1dp" android:color="#0073bc" />
    <padding android:left="7dp" android:top="7dp"
            android:right="7dp" android:bottom="7dp" />
    <corners android:radius="5dp" />
    <solid android:color="#ffffff"/>
</shape>

 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/hello"
    />
<ImageView android:src="@drawable/word1_word2"   android:layout_height="300dip" android:layout_width="300dip" android:id="@+id/imageView1"></ImageView>
</LinearLayout>

sample code:
Tutorial_image_rounded_corners

shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
Android7

Amazon

adsbygoogle

Recent Posts

Categories

Amazon