custom border for gallery item

by kavitha b » Mon, 11 Oct 2010 00:05:49 GMT

Sponsored Links
 Hi all,

I want to set custom border for gallery item.

When i zoom a image which is selected in gallery,I want to change border
only for selected item.

How to do that?

It is very urgent.

Please help.



custom border for gallery item

by Kunal Kant » Thu, 14 Oct 2010 01:34:55 GMT

 in drawable... make a xml file... with selector tag...
and in its item tag.... set ur background color.


Sponsored Links

Other Threads

1. Sharing code between apps as in Eclipse

I have ten, possibly more, apps I'm developing that all share logic.
50-75% of the logic is the same - perfect for some time of library or
code sharing. However, after reading the posts here and trying to
share code in Eclipse, I'm not sure that's going to work. I tried
going to project -> properties -> build path -> link source and adding
the src and gen folders of the project with the shared code and then
importing the classes I need. That seems to work in the IDE, but gives
an error during runtime: class not found. This seems to be a common
error for people attempting this.

I am slowly deciding that shared code is not the best approach in this
scenario. Android doesn't seem to work well with this type of code
sharing. For one thing resources are not packed in libraries, but
references (R.whatever) must exist so as not to create errors. This
can be designed around, but the effort and headache is probably worse
than simply creating multiple copies.

What are you thoughts on the topic?  My experience seems typical,
based on what I've read. Is it? Have you experienced success or
failure with sharing code and/or custom libraries?  Am I off-base in
thinking that multiple code copies will be smoother sailing than
fighting the shared code approach?


2. copybit format conversion issue, for help

Hi, all,

I have encountered a format coversion issue when manage to add copybit
module for some hw 2D core.

There are a lot of blit operations from COPYBIT_FORMAT_RGBA_8888 to
COPYBIT_FORMAT_RGB_565 when do menu rendering.

It looks the layout of android COPYBIT_FORMAT_RGBA_8888 format is as figure 1.

31     ...      0
| A | B | G | R |  (1)

but unfortunately, for 8:8:8:8 image, the 2d hw in question only
supports layout as figure 2.

31     ...      0
| A | R | G | B |  (2)

So my question is there any thing I can do to work aound it, and will
not hurt performance significantly?
eg. by some way I can force ARGB src image data.

Suggestion is welcome and much appreciated. Thanks a lot.

Simon Chan


3. Unsuccessful install of successful built apk

4. Porting Information

5. JDOM in Android 2.1 or earlier

6. getPreviewSize() bad result on Froyo emulator

7. media player application which shall dump Frame Rate and CPU Utilization