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.

Thanks
Kavitha

--



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. Android emulator "FTPClient" throws exception when trying to retrieve a file from a Ftp server

I am trying to retrieve a file from my local ftp server "Note: both
the client & server are local running on the same machine". I use
"pyftpdlib" library for running my python server & "FTPClient" library
for my Android Client.

What happens is the that the client gets connected and logged in. The
client is running in Local Passive Mode. But when calling the
client.retrieveFile(.....);. I get an Exception on the emulator saying
"Exception/ip:port - Connection refused".

Here is my client code:

FTPClient client = new FTPClient();
try{
client.connect("10.0.2.2",5000);
client.enterLocalPassiveMode();
boolean login = client.login("User", "1234");
 if (login) {
    File file = new File(getExternalFilesDir(null), "test.txt");
    OutputStream fos = new BufferedOutputStream(new
FileOutputStream(file));
    client.retrieveFile("/testing/test.txt", fos);}
    else client.disconnect();
    }catch (IOException e) {
System.out.println(e.getMessage());
            e.printStackTrace();
        }

This is a screenshot of what happens on the server side: http://bit.ly/hS6BCc

When I tried deleting a file on the server through the client it
worked well. But I faced the problem mentioned when trying to download
a file or uploading a file on the server.
Any Help please, Thanks in advance.

-- 

2. Android emulator closes the connection when receiving data from server

I'm trying to retrieve a file from Ftp Server. For now I am running a
local python server & the android client runs on the same pc.
The Android client does successfully connect to the server & it login
too. But when it comes to downloading a file from the server, I get an
Exception on the emulator saying  "Exception/ip:port - Connection
refused".
I'm using FTPClient Library for the client side.

Here is android client code:
FTPClient client = new FTPClient();
try{
client.connect("10.0.2.2",5000);
client.enterLocalPassiveMode();
boolean login = client.login("User", "1234");
 if (login) {
   File file = new File(getExternalFilesDir(null), "test.txt");
   OutputStream fos = new BufferedOutputStream(new
FileOutputStream(file));
   client.retrieveFile("/testing/test.txt", fos);}
   else client.disconnect();
   }catch (IOException e) {
System.out.println(e.getMessage());
           e.printStackTrace();
       }

I get the exception when it calls "client.retrieveFile("/testing/
test.txt", fos);"

Any Help Plz, Thanks in advance

-- 

3. Need Help to Develope my first Android Project.

4. What is the permission SET_WALLPAPER_HINTS used for?

5. Important: XmlPullParserException while accessing SOAP webservice

6. ContentProvider for streaming date from one app to another

7. Connect to a specific WiFi network