Applying round corners to image in a image view

by social hub » Tue, 23 Mar 2010 04:28:11 GMT


Sponsored Links
 Hi,

I am trying to find solution where I can apply round corners to an image.

1)
I have tried to set android:background
and in drawable

<layer-list xmlns:android=" http://schemas.android.com/apk/res/android" ;>
    <item  >
      <shape>
        <solid android:color="#50FFFFFF"/>
            <corners android:radius="11dp" />
      </shape>
   </item>

</layer-list>

but it applies to background of imageview but not to the image

2) are there any bitmap or drawables methods that will help me in creating a
bitmap from a given bitmap with rounded corners.


I did some google search on google as well as the developers group, nothing
came up regarding this.

Thanks in advance for your help

--



Other Threads

1. gtab 10 inch rilis 13 mei?!

Tadi liat tweet @sinyal, isinya begini...widiih....

sinyal: Resmi, Samsung Indonesia akan luncurkan Galaxy Tab 10.1" hari jumat
13 Mei 2011. Kami sudah mndapat undangan presscon-nya :)

Original Tweet: http://twitter.com/sinyal/status/67859397992394752

Sent via TweetDeck (www.tweetdeck.com)

-- 
"

2. froyo : ext4 instead of yaffs2

Hi,

I'm trying to moun /data with ext4 instead of yaffs2 on a froyo
emulator.

1- I enabled the support of ext3 and ext4 in the .config and built a
new kernel
2- I launched the emulator with the new zImage to make sure that there
was no error. No error
3- I replaced yaffs2 with ext4 in the init.rc inside froyo source and
built new system.img and ramdisk.img
mount yaffs2 mtd@userdata /data nosuid nodev --> mount ext4
mtd@userdata /data nosuid nodev
4- I launched the emulator and I got errors. Errors occur: services
always die and there is problem with the framework. Here is a sample
of the error message:

D/AudioHardwareInterface(  152): setMode(NORMAL)
I/CameraService(  152): CameraService started: pid=152
I/AudioFlinger(  152): AudioFlinger's thread 0xb3f0 ready to run
E/keystore(  158): chdir: /data/misc/keystore: No such file or
directory
D/AndroidRuntime(  157):
D/AndroidRuntime(  157): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime(  157): CheckJNI is ON
E/dalvikvm(  157): Can't open dex cache '/data/dalvik-cache/
system(at)framework(at)core.jar(at)classes.dex': No such file or
directory
I/dalvikvm(  157): Unable to open or create cache for /system/
framework/core.jar (/data/dalvik-cache/
system(at)framework(at)core.jar(at)classes.dex)
D/dalvikvm(  157): Unable to process classpath element '/system/
framework/core.jar'
E/dalvikvm(  157): Can't open dex cache '/data/dalvik-cache/
system(at)framework(at)ext.jar(at)classes.dex': No such file or
directory
I/dalvikvm(  157): Unable to open or create cache for /system/
framework/ext.jar (/data/dalvik-cache/
system(at)framework(at)ext.jar(at)classes.dex)
D/dalvikvm(  157): Unable to process classpath element '/system/
framework/ext.jar'
E/dalvikvm(  157): Can't open dex cache '/data/dalvik-cache/
system(at)framework(at)framework.jar(at)classes.dex': No such file or
directory
I/dalvikvm(  157): Unable to open or create cache for /system/
framework/framework.jar (/data/dalvik-cache/
system(at)framework(at)framework.jar(at)classes.dex)
D/dalvikvm(  157): Unable to process classpath element '/system/
framework/framework.jar'
E/dalvikvm(  157): Can't open dex cache '/data/dalvik-cache/
system(at)framework(at)android.policy.jar(at)classes.dex': No such
file or directory
I/dalvikvm(  157): Unable to open or create cache for /system/
framework/android.policy.jar (/data/dalvik-cache/
system(at)framework(at)android.policy.jar(at)classes.dex)
D/dalvikvm(  157): Unable to process classpath element '/system/
framework/android.policy.jar'
E/dalvikvm(  157): Can't open dex cache '/data/dalvik-cache/
system(at)framework(at)services.jar(at)classes.dex': No such file or
directory
I/dalvikvm(  157): Unable to open or create cache for /system/
framework/services.jar (/data/dalvik-cache/
system(at)framework(at)services.jar(at)classes.dex)
D/dalvikvm(  157): Unable to process classpath element '/system/
framework/services.jar'
E/dalvikvm(  157): ERROR: no valid entries found in bootclasspath '/
system/framework/core.jar:/system/framework/ext.jar:/system/framework/
framework.jar:/system/framework/android.policy.jar:/system/framework/
services.jar'
W/dalvikvm(  157): JNI_CreateJavaVM failed
E/AndroidRuntime(  157): JNI_CreateJavaVM failed
I/ServiceManager(   27): service 'media.audio_flinger' died
I/ServiceManager(   27): service 'media.player' died
I/ServiceManager(   27): service 'media.camera' died
I/ServiceManager(   27): service 'media.audio_policy' died
I/        (  159): ServiceManager: 0xacd0
D/AudioHardwareInterface(  159): setMode(NORMAL)
I/CameraService(  159): CameraService started: pid=159
I/AudioFlinger(  159): AudioFlinger's thread 0xb3f0 ready to run

Did I miss something to mount succesfully /data with ext4?

-- 

3. Froyo - binder_alloc_buf when using RS232

4. Video camera record error

5. why google didn't buy skype ?

6. Change GPS configuration

7. Android SDK Emulator setup